Path: utzoo!mnetor!uunet!husc6!cmcl2!beta!unm-la!unmvax!turing.UNM.EDU!mike From: mike@turing.UNM.EDU (Michael I. Bushnell) Newsgroups: comp.lang.c Subject: Re: Quote without comment on char constant expansion Message-ID: <940@unmvax.unm.edu> Date: 12 Apr 88 07:09:06 GMT References: <4418@hoptoad.uucp> Sender: news@unmvax.unm.edu Reply-To: mike@turing.UNM.EDU (Michael I. Bushnell) Organization: University of New Mexico, Albuquerque Lines: 22 In article <4418@hoptoad.uucp> gnu@hoptoad.uucp (John Gilmore) writes: He says that cccp (the GNU C Compatable Compiler Preprocessor) doesn't expand macros when the expeted invocation occurs inside ' or ". This is quite correct, and documented behavior. In fact, gcc comes with directions on how to make an ioctl.h file that works. The reason for this behavior is the ANSI Proposed standard. It dictates that macro expansion NOT occur within quote marks. Instead, strinification and concatenation preprocessor operators are provided. Take a look at the info file that comes with gcc. N u m q u a m G l o r i a D e o Michael I. Bushnell HASA - "A" division 14308 Skyline Rd NE Computer Science Dept. Albuquerque, NM 87123 OR Farris Engineering Ctr. OR University of New Mexico mike@turing.unm.edu Albuquerque, NM 87131 {ucbvax,gatech}!unmvax!turing.unm.edu!mike