summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/awk/parse2.xc
blob: 95bc446b4bcb2ceacd9158479a883970bd907d22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46

/********************************************
parse2.xc
copyright 1991, Michael D. Brennan

This is a source file for mawk, an implementation of
the AWK programming language.

Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
********************************************/


/* If using Berkeley yacc, we can put the parser table 
   memory to the zmalloc pool.  This is kind of ugly and
   with paged vm probably a nop, but for DOS and MINIX and ??
   it frees a considerably amount of memory.

   This file is part of parse.c via
      cat  y.tab.c  parse2.xc  > parse.c
*/

static struct yacc_mem   yacc_mem[] = 
{
0 , 0 ,  /* don't remove this */

#ifdef   YYBYACC
(PTR) yycheck, sizeof(yycheck)/ZBLOCKSZ,
(PTR) yytable, sizeof(yytable)/ZBLOCKSZ,
#ifndef  YYXBYACC  /* with xbyacc these are storage auto */
(PTR) yyvs , sizeof(yyvs)/ZBLOCKSZ,
(PTR) yyss, sizeof(yyss)/ZBLOCKSZ,
#endif
(PTR) yydefred, sizeof(yydefred)/ZBLOCKSZ,
(PTR) yydgoto, sizeof(yydgoto)/ZBLOCKSZ,
(PTR) yygindex, sizeof(yygindex)/ZBLOCKSZ,
(PTR) yylen, sizeof(yylen)/ZBLOCKSZ,
(PTR) yylhs, sizeof(yylhs)/ZBLOCKSZ,
(PTR) yyrindex, sizeof(yyrindex)/ZBLOCKSZ,
(PTR) yysindex, sizeof(yysindex)/ZBLOCKSZ,
#endif

0,0 } ;

struct yacc_mem  *yacc_memp = yacc_mem ;