declarations in include files: how do YOU feel?

Henry Spencer henry at utzoo.uucp
Tue May 16 03:09:26 AEST 1989


In article <2337 at mit-caf.MIT.EDU> vlcek at mit-caf.UUCP (Jim Vlcek) writes:
>If what was once a function is turned into a macro, programs which
>passed arguments with side effects to the function may not work
>correctly with the macro...

Normally it's necessary for such macros to be written carefully so that
they invoke each argument exactly once.  Given that, and the constraints
it puts on what can be done in a macro, though, the transformation doesn't
usually cause trouble.
-- 
Subversion, n:  a superset     |     Henry Spencer at U of Toronto Zoology
of a subset.    --J.J. Horning | uunet!attcan!utzoo!henry henry at zoo.toronto.edu



More information about the Comp.lang.c mailing list