Print this page
cpp: allow vastly more #defines
<inet/tcp.h> requires considerably more defines to preprocess than the
4,000 we previously allowed.  Allow an (equally arbitrary) 16,000
symbols instead.


 248 static  char            *unfill(char *);
 249 static  char            *doincl(char *);
 250 static  int             equfrm(char *, char *, char *);
 251 static  char            *dodef(char *);
 252 static  char            *control(char *);
 253 static  struct symtab   *stsym(char *);
 254 static  struct symtab   *ppsym(char *);
 255 void            pperror(char *fmt, ...);
 256 void            yyerror(char *fmt, ...);
 257 static  void            ppwarn(char *fmt, ...);
 258 struct symtab   *lookup(char *, int);
 259 static  struct symtab   *slookup(char *, char *, int);
 260 static  char            *subst(char *, struct symtab *);
 261 static  char            *trmdir(char *);
 262 static  char            *copy(char *);
 263 static  char            *strdex(char *, int);
 264 int             yywrap(void);
 265 int             main(int argc, char **argav);
 266 
 267 
 268 #define symsiz 4000
 269 static  struct symtab stab[symsiz];
 270 
 271 static  struct symtab *defloc;
 272 static  struct symtab *udfloc;
 273 static  struct symtab *incloc;
 274 static  struct symtab *ifloc;
 275 static  struct symtab *elsloc;
 276 static  struct symtab *eifloc;
 277 static  struct symtab *elifloc;
 278 static  struct symtab *ifdloc;
 279 static  struct symtab *ifnloc;
 280 static  struct symtab *ysysloc;
 281 static  struct symtab *varloc;
 282 static  struct symtab *lneloc;
 283 static  struct symtab *ulnloc;
 284 static  struct symtab *uflloc;
 285 static  struct symtab *idtloc;
 286 static  struct symtab *pragmaloc;
 287 static  struct symtab *errorloc;
 288 static  int     trulvl;




 248 static  char            *unfill(char *);
 249 static  char            *doincl(char *);
 250 static  int             equfrm(char *, char *, char *);
 251 static  char            *dodef(char *);
 252 static  char            *control(char *);
 253 static  struct symtab   *stsym(char *);
 254 static  struct symtab   *ppsym(char *);
 255 void            pperror(char *fmt, ...);
 256 void            yyerror(char *fmt, ...);
 257 static  void            ppwarn(char *fmt, ...);
 258 struct symtab   *lookup(char *, int);
 259 static  struct symtab   *slookup(char *, char *, int);
 260 static  char            *subst(char *, struct symtab *);
 261 static  char            *trmdir(char *);
 262 static  char            *copy(char *);
 263 static  char            *strdex(char *, int);
 264 int             yywrap(void);
 265 int             main(int argc, char **argav);
 266 
 267 
 268 #define symsiz 16000
 269 static  struct symtab stab[symsiz];
 270 
 271 static  struct symtab *defloc;
 272 static  struct symtab *udfloc;
 273 static  struct symtab *incloc;
 274 static  struct symtab *ifloc;
 275 static  struct symtab *elsloc;
 276 static  struct symtab *eifloc;
 277 static  struct symtab *elifloc;
 278 static  struct symtab *ifdloc;
 279 static  struct symtab *ifnloc;
 280 static  struct symtab *ysysloc;
 281 static  struct symtab *varloc;
 282 static  struct symtab *lneloc;
 283 static  struct symtab *ulnloc;
 284 static  struct symtab *uflloc;
 285 static  struct symtab *idtloc;
 286 static  struct symtab *pragmaloc;
 287 static  struct symtab *errorloc;
 288 static  int     trulvl;