3B2 cpp #ifdef + #include

William E. Davidsen Jr davidsen at steinmetz.steinmetz.ge.com
Wed Mar 30 23:38:44 AEST 1988


In article <3210 at haddock.ISC.COM> karl at haddock.ima.isc.com (Karl Heuer) writes:
| [...]
| should be legal.  This is indeed a bug in certain preprocessors.  Similarly, I
| believe that the warning produced by
|   #ifdef vms
|   #ifdef foo$bar /* a valid name, in VMS */
|   #endif
|   #endif
| on non-VMS systems is inappropriate, though I haven't yet determined what the
| latest dpANS says about this.

My notes from the Seattle X3J11 meeting at which identifiers were
defined states that "upper and lower case alphabetics, digits, and the
underscore character" may be used, and that "the first character may not
be a digit." Unless that idea has been changed the $ is not a legal
character for an identifier. I believe that anything goes in a quoted
filename."

As a historical note that section was written on the monorail in Seattle
after a working lunch...
-- 
	bill davidsen		(wedu at ge-crd.arpa)
  {uunet | philabs | seismo}!steinmetz!crdos1!davidsen
"Stupidity, like virtue, is its own reward" -me



More information about the Comp.lang.c mailing list