A Modest Extension to the C Preprocessor
Dave Brownell
brownell at harvard.ARPA
Fri Aug 3 14:52:54 AEST 1984
>=<
Better and simpler is to make the #include files safe for multiple
inclusions. It's so simple I'm amazed that neither Berkeley nor
Bell have done it:
#ifndef FOO_H_INCLUDED
#define FOO_H_INCLUDED
/* contents of "foo.h" */
#endif FOO_H_INCLUDED
This is compatible with any standard CPP.
Dave Brownell
Sequoia Systems Inc.
{allegra,floyd,ihnp4,seismo}!harvard!sequoia!brownell
More information about the Comp.lang.c
mailing list