Let ME try for a new topic... (multiple includes)

Matt Crawford matt at oddjob.UChicago.UUCP
Wed Jun 6 06:51:02 AEST 1984


A better solution than bracketing the contents of every include file with:
	#ifndef unique_symbol
	#define unique_symbol
	   :
	   :
	#endif unique_symbol

seems to be used for certain 4.2 distribution files.  When one file, say
foo.h, requires definitions in another, say bar.h, it begins with:
	#ifndef bar_unique_symbol
	#include <bar.h>
	#endif bar_unique_symbol
	   :
	   :
This can, of course, be coupled with the above.  It does nothing for
the extern problem, however.
___________________________________________________________
Matt		University	ARPA: crawford at anl-mcs.arpa
Crawford	of Chicago	UUCP: ihnp4!oddjob!matt



More information about the Comp.unix.wizards mailing list