Assorted C Questions

Wm E Davidsen Jr davidsen at crdos1.crd.ge.COM
Thu Sep 7 05:01:59 AEST 1989


In article <1989Sep6.160004.19253 at utzoo.uucp>, henry at utzoo.uucp (Henry Spencer) writes:

|  >#define min(x,y)	(((x) < (y)) ? (x) : (y))
|  >foobar(min,max)
|  >Sometype min,max;
|  >{}
|  >
|  >   Will this foul up the preprocessor...
|  
|  No; parameterized macro names are recognized as such *only* when followed
|  immediately by "(".

  My standard isn't handy, but all of the preprocessors I use allow
whitespace between the name and the ( because the local indent does it
that way.
-- 
bill davidsen	(davidsen at crdos1.crd.GE.COM -or- uunet!crdgw1!crdos1!davidsen)
"The world is filled with fools. They blindly follow their so-called
'reason' in the face of the church and common sense. Any fool can see
that the world is flat!" - anon



More information about the Comp.lang.c mailing list