Source code of Windows XP (NT5)
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.

53 lines
2.1 KiB

  1. /********************************************************************************/
  2. /* Copyright (c) 1993-1999 Microsoft Corporation */
  3. /* ************* */
  4. /* * Y 2 . H * */
  5. /* ************* */
  6. /* */
  7. /* This file contains the external declarations needed to hook Yacc modules */
  8. /* which were originally in Y2.C to their impure data in Y2IMP.2C. Also does */
  9. /* the include of the original data/external file DTXTRN.H. */
  10. /* */
  11. /********************************************************************************/
  12. # include "dtxtrn.h"
  13. # define IDENTIFIER 257
  14. # define MARK 258
  15. # define TERM 259
  16. # define LEFT 260
  17. # define RIGHT 261
  18. # define BINARY 262
  19. # define PREC 263
  20. # define LCURLY 264
  21. # define C_IDENTIFIER 265 /* name followed by colon */
  22. # define NUMBER 266
  23. # define START 267
  24. # define TYPEDEF 268
  25. # define TYPENAME 269
  26. # define UNION 270
  27. # define ENDFILE 0
  28. /* communication variables between various I/O routines */
  29. extern char *infile; /* input file name */
  30. extern SSIZE_T numbval; /* value of an input number */
  31. extern char tokname[ ]; /* input token name */
  32. /* storage of names */
  33. extern char cnames[ ]; /* place where token and nonterminal names are stored */
  34. extern int cnamsz; /* size of cnames */
  35. extern char * cnamp; /* place where next name is to be put in */
  36. extern int ndefout; /* number of defined symbols output */
  37. /* storage of types */
  38. extern int ntypes; /* number of types defined */
  39. extern char * typeset[ ]; /* pointers to type tags */
  40. /* symbol tables for tokens and nonterminals */
  41. extern int start; /* start symbol */
  42. /* assigned token type values */
  43. extern int extval;