Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.7 KiB

  1. // Copyright (c) 1993-1999 Microsoft Corporation
  2. /* Impure data needed by routines pulled from Y2.C */
  3. #define y2imp YES
  4. #include "dtxtrn.h"
  5. /* communication variables between various I/O routines */
  6. char *infile; /* input file name */
  7. SSIZE_T numbval; /* value of an input number */
  8. char tokname[NAMESIZE]; /* input token name */
  9. /* storage of names */
  10. char cnames[CNAMSZ]; /* place where token and nonterminal names are stored */
  11. int cnamsz = CNAMSZ; /* size of cnames */
  12. char * cnamp = cnames; /* place where next name is to be put in */
  13. int ndefout = 3; /* number of defined symbols output */
  14. /* storage of types */
  15. int ntypes; /* number of types defined */
  16. char * typeset[NTYPES]; /* pointers to type tags */
  17. /* symbol tables for tokens and nonterminals */
  18. int ntokens = 0;
  19. struct toksymb tokset[NTERMS];
  20. int toklev[NTERMS];
  21. int nnonter = -1;
  22. struct ntsymb nontrst[NNONTERM];
  23. int start; /* start symbol */
  24. /* assigned token type values */
  25. int extval = 0;
  26. /* input and output file descriptors */
  27. FILE * finput = NULL; /* yacc input file */
  28. FILE * faction = NULL; /* file for saving actions */
  29. FILE * fdefine = NULL; /* file for # defines */
  30. FILE * ftable = NULL; /* y.tab.c file */
  31. FILE * ftemp = NULL; /* tempfile to pass 2 */
  32. FILE * foutput = NULL; /* y.output file */
  33. /* storage for grammar rules */
  34. SSIZE_T mem0[MEMSIZE] ; /* production storage */
  35. SSIZE_T *mem = mem0;
  36. int nprod= 1; /* number of productions */
  37. SSIZE_T *prdptr[NPROD]; /* pointers to descriptions of productions */
  38. SSIZE_T levprd[NPROD] ; /* precedence levels for the productions */
  39. /* Statics pulled from modules */
  40. int peekline; /* from gettok() */