home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / program / c / yaccsrc2 / system.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-05-18  |  3.7 KB  |  117 lines

  1. /*                             *********************
  2.  *                             *  S Y S T E M . H  *
  3.  *                             *********************
  4.  *
  5.  * This file replaces the original "files." header file. It defines, for
  6.  * the IBM PC/XT version, the target parser function source file, overriding
  7.  * file name string defines, and other system-specific definitions and
  8.  * parameters. 
  9.  *
  10.  * Bob Denny    06-Dec-80
  11.  *
  12.  * Edits:
  13.  *              18-Dec-80  ZAPFILE no longer used in Decus Yacc.
  14.  *                         Parser file renamed yypars.c
  15.  *
  16.  *              28-Aug-81  Temp files for RSX have specific version
  17.  *                         numbers of 1 to avoid multi-versions. Rename
  18.  *                         parser info file ".i".
  19.  *
  20.  *              12-Apr-83  Add FNAMESIZE & EX_xxx parameters.
  21.  *
  22.  *Scott Guthery 23-Dec-83  Adapt for the IBM PC/XT & DeSmet C compiler.
  23.  *
  24.  *Michiel van Loon
  25.  *                              24-Nov-89  Adapt for ATARI-ST & TURBO-C compiler
  26.  *
  27.  */
  28.  
  29. /* Define WORD32 if target machine is a 32 bitter */
  30.  
  31. /*
  32.  * Target parser source file
  33.  */
  34. # define PARSER    "yypars.c"
  35.  
  36. /*
  37.  * basic size of the Yacc implementation
  38.  */
  39. # define HUGE      
  40.  
  41. /*
  42.  * Table size for this Yacc
  43.  */
  44. # define HUGETAB   YES
  45.  
  46. /*
  47.  * Filespec definitions
  48.  */
  49. # define ACTNAME   "yacc2.tmp"
  50. # define TEMPNAME  "yacc1.tmp"
  51. # define FNAMESIZE 24
  52.  
  53. /*
  54.  * Exit status values
  55.  */
  56. # define EX_SUC    0
  57. # define EX_WAR    1
  58. # define EX_ERR    2
  59. # define EX_SEV    4
  60.  
  61. /*
  62.                 Prototypes for all YACC routines
  63. */
  64.  
  65. void              aoutput  ( void );
  66. int               apack    ( int * p, int n );
  67. void              arout    ( char * s, int * v, int n );
  68. void              aryfil   ( int * v, int n, int c );
  69. void              cempty   ( void );
  70. char            * chcopy   ( char * p, char * q );
  71. int               chfind   ( int t, char * s );
  72. void              callopt  ( void );
  73. void              closure  ( int i );
  74. void              cpyact   ( int offset );
  75. void              cpfir    ( void );
  76. void              cpres    ( void );
  77. void              cpyunion ( void );
  78. void              cpycode  ( void );
  79. char            * cstash   ( char * s );
  80. int               defin    ( int t, char * s );
  81. void              defout   ( void );
  82. void              error    ( char * s, ... );
  83. int               fdtype   ( int t );
  84. struct looksets * flset    ( struct looksets * p );
  85. void              finact   ( void );
  86. int               gettok   ( void );
  87. void              gin      ( int i );
  88. void              go2gen   ( int c );
  89. void              go2out   ( void );
  90. int               gtnm     ( void );
  91. void              hideprod ( void );
  92. int               nxti     ( void );
  93. void              osummary ( void );
  94. void              others   ( void );
  95. void              output   ( void );
  96. void              precftn  ( int r, int t, int s );
  97. void              prlook   ( struct looksets * p );
  98. void              putitem  ( int * ptr, struct looksets * lptr );
  99. int               setunion ( int * a, int * b );
  100. void              setup    ( int argc, char * * argv );
  101. int               skipcom  ( void );
  102. void              stagen   ( void );
  103. int               state    ( int c );
  104. void              stin     ( int i );
  105. void              summary  ( void );
  106. char            * symnam   ( int i );
  107. int               unix_getc( FILE * iop );
  108. int               yacc_ungetc( int c );
  109. void              warray   ( char * s, int * v, int n );
  110. void              wdef     ( char * s, int i );
  111. void              wract    ( int i );
  112. char            * writem   ( int * pp );
  113. void              wrstate  ( int i );
  114.  
  115.  
  116. /*#define debug */
  117.