include files -- help needed

der Mouse mouse at thunder.mcrcim.mcgill.edu
Wed Jun 26 19:14:08 AEST 1991


In article <1991Jun20.170144.1109 at keinstr.uucp>, chaplin at keinstr.uucp (chaplin) writes:

> One technique I have used to make the defines unique is to use the
> name of the header file.  Eg, in my header file foobar.h you will
> find:

> #ifndef FOOBAR_H
> #define FOOBAR_H
> ...
> #endif

I used to do that too, until I found I had two time.h files, both using
TIME_H.  So now I tack on a 32-bit hash of the file contents (computed
by wraphfile, the program that throws the construct around the file in
the first place).  Now the time.hs use different defines.

					der Mouse

			old: mcgill-vision!mouse
			new: mouse at larry.mcrcim.mcgill.edu



More information about the Comp.lang.c mailing list