cechew@bruce.OZ (Earl Chew) (11/17/89)
From article <2153@papaya.bbn.com>, by rsalz@bbn.com (Rich Salz): > cppmake is pretty neat, but this is small and does something very similar. > It was posted to comp.sources.misc about one to two years ago: Although this program is smaller, it is trusts the actions of cpp with regard to white space. This is not a good idea since white space in this context *is* sometimes important. Some cpp's will leave whitespace alone, others will collapse sequences of whitespace into a single space, some do it one way at times, and the other way at other times, etc... Note also that there appears to be a problem with: > #define ENDOF(x) (sizeof x / sizeof x[0]) > typedef struct { > char Value[8]; > int Length; > } ALIST; > > ALIST Directives[] = { etc > for (D = Directives; D < ENDOF(Directives); D++) ENDOF returns an integral type, whereas D is definitely a pointer. Earl -- Earl Chew, Dept of Computer Science, Monash University, Australia 3168 ARPA: cechew%bruce.cs.monash.oz.au@uunet.uu.net ACS : cechew@bruce.oz ----------------------------------------------------------------------