Are the criteria for Unix and PC compilers different?

Ralf.Brown at B.GP.CS.CMU.EDU Ralf.Brown at B.GP.CS.CMU.EDU
Mon Mar 7 23:55:03 AEST 1988


In article <7451 at oberon.USC.EDU>, blarson at skat.usc.edu (Bob Larson) writes:
}In article <22314ad9 at ralf.home> Ralf.Brown at B.GP.CS.CMU.EDU writes:
}>#define int long
}
}* Does not work on compilers that don't allow #define of a keyword.
}--
}Bob Larson      Arpa: Blarson at Ecla.Usc.Edu      blarson at skat.usc.edu
}Uucp: {sdcrdcf,cit-vax}!oberon!skat!blarson

I wasn't aware of any preprocessors smart enough to disallow #defines of
keywords.  The preprocessor's knowledge of C is limited to recognizing tokens;
it doesn't "know" C, it just does the textual substitution.

--
{harvard,ucbvax}!b.gp.cs.cmu.edu!ralf -=-=- TalkNet: (412)268-3053 (school)
ARPA: RALF at B.GP.CS.CMU.EDU |"Tolerance means excusing the mistakes others make.
FIDO: Ralf Brown at 129/31 | Tact means not noticing them." --Arthur Schnitzler
BITnet: RALF%B.GP.CS.CMU.EDU at CMUCCVMA -=-=- DISCLAIMER? I claimed something?



More information about the Comp.lang.c mailing list