Standardized predefined CPP symbols, down with folklore

Dave Sherman dave at utcsrgv.UUCP
Mon Jul 9 16:52:23 AEST 1984


In article <297 at watdcsu.UUCP> geo at watdcsu.UUCP (Geo Swan) writes:
~|\I agree with the need for standards.
~|\Further, these standards should be properly documented.
~|\I learned that cpp automatically sharp defined "unix",
~|\when I tried to declare a variable named "unix".  (Try it sometime.)

Actually, it wouldn't matter if the implementors had had the sense
to have cpp implcitly "#define unix unix", instead of "#define unix 1".
The first would still permit all "#ifdef unix" work, while the actual
implementation caused me grief one day when I tried to create a
function called unix()

Dave Sherman
Toronto
-- 
 {allegra,cornell,decvax,ihnp4,linus,utzoo}!utcsrgv!dave
or
 David_Sherman%Wayne-MTS%UMich-MTS.Mailnet at MIT-Multics.ARPA



More information about the Comp.unix mailing list