Magic Mailing List |
|
From: R. Timothy Edwards (tim AT stravinsky DOT jhuapl.edu) Date: Thu Oct 25 2001 - 13:32:28 EDT
Dear Rich, database.h gets generated from database.h.in by the file scripts/ makedbh. The purpose is to automatically generate the bitmask vectors for tile types. In the past, changes to the maximum number of tile types would require hand-editing a slew of macros in the database.h file. Mike Godfrey alleviated this somewhat by reducing it to a couple of #defines, but I decided to get rid of the problem entirely by generating all the macros based on the TT_MAXTYPES value, using a script. I was aware at the time that this would probabaly create all sorts of bad fallout, though so far I have not had much problem with it. "makedbh" is run from scripts/config, though I suppose technically it ought to be in a Makefile somewhere. Just about every file in the magic source uses database.h, so it has to be run before everything else. The XHelper7 and database/database.h files were *supposed* to be ignored by CVS, but I can't say I really understand the CVS ignore stuff. There doesn't seem to be any way I can specify that these files be ignored on my end. I have to send email to Rajit and ask him to do it at the CVS root. If you know something I don't, please clue me in. Regards, Tim
|
|