Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!mouse From: mouse@thunder.mcrcim.mcgill.edu (der Mouse) Newsgroups: comp.lang.c Subject: Re: include files -- help needed Message-ID: <1991Jun26.091408.5023@thunder.mcrcim.mcgill.edu> Date: 26 Jun 91 09:14:08 GMT References: <1991Jun7.233854.11170@arcturus.uucp> <1966@nixsin.UUCP> <1991Jun20.170144.1109@keinstr.uucp> Organization: McGill Research Centre for Intelligent Machines Lines: 21 In article <1991Jun20.170144.1109@keinstr.uucp>, chaplin@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@larry.mcrcim.mcgill.edu