A solution to the multiple inclusion problem

Rich Salz rsalz at bbn.com
Tue Oct 24 04:59:56 AEST 1989


Gee, if
	#ifndef _HAVE_FOO_H_
	... contents of foo.h ...
	#define _HAVE_FOO_H_
	#endif	/* _HAVE_FOO_H_ */

is too slow, then do this:
	#ifndef _HAVE_FOO_H_
	#include <hidden_real_name_of_foo.h>
	#define _HAVE_FOO_H_
	#endif	/* _HAVE_FOO_H_ */

John's rules about the first #ifndef after the first comment sound much
too complicated for me -- I have enough problem with election day...
	/r$
-- 
Please send comp.sources.unix-related mail to rsalz at uunet.uu.net.
Use a domain-based address or give alternate paths, or you may lose out.



More information about the Comp.lang.c mailing list