Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site umcp-cs.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!decwrl!amdcad!lll-crg!gymble!umcp-cs!chris From: chris@umcp-cs.UUCP (Chris Torek) Newsgroups: net.lang.c Subject: Re: Quirk in assignment of pointers to functions .. Message-ID: <2949@umcp-cs.UUCP> Date: Thu, 30-Jan-86 13:41:56 EST Article-I.D.: umcp-cs.2949 Posted: Thu Jan 30 13:41:56 1986 Date-Received: Sat, 1-Feb-86 05:52:17 EST References: <437@ur-helheim.UUCP> Organization: U of Maryland, Computer Science Dept., College Park, MD Lines: 21 In article <437@ur-helheim.UUCP> badri@ur-helheim.UUCP writes: > void abc(), (*f)(); > ... > f = abc; > > was not accepted by our preprocessor (we run BSD4.2). [This] > leads me to believe that the 4.3 preprocessor handles things slightly > differently. The bug in not in the preprocessor. Remember: the C preprocessor knows no C. It does not care what you feed it. It is used for assembly code in the 4BSD kernell, for example. Anyway, to answer the question, the 4.2 compiler mishandles `void'; the 4.3 compiler does not. Donn Seeley (of F77 compiler fame) fixed it. (Thanks, Donn.) -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 1415) UUCP: seismo!umcp-cs!chris CSNet: chris@umcp-cs ARPA: chris@mimsy.umd.edu