Quote without comment on char constant expansion
Michael I. Bushnell
mike at turing.UNM.EDU
Tue Apr 12 17:09:06 AEST 1988
In article <4418 at hoptoad.uucp> gnu at 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 at turing.unm.edu Albuquerque, NM 87131
{ucbvax,gatech}!unmvax!turing.unm.edu!mike
More information about the Comp.lang.c
mailing list