QUERY: Coding convention
Henry Spencer
henry at utzoo.UUCP
Sat Jul 7 07:32:06 AEST 1984
I can think of one other thing that would be useful to have around,
so that #ifdefs could test it. As we all know, there is an ANSI C
standard in our future somewhere. The standard specifies some bits
of very useful syntax that most existing compilers barf on at the
moment. It would be real nice to have a predefined symbol along the
lines of "pre_ansi" so that one could write code like:
#ifndef pre_ansi
... do it right ...
#else
... kludge needed for old compiler ...
#endif
This would permit gradual transition to the new standard. (I suggest
"pre_ansi" rather than "ansi" on the theory that the standard should
be the default from the beginning.)
--
Henry Spencer @ U of Toronto Zoology
{allegra,ihnp4,linus,decvax}!utzoo!henry
More information about the Comp.lang.c
mailing list