summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/awk/parse2.xc
blob: f98658d89ab477209d89a1cf51814931c40d793b (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
47
48
49
50
51
52
53
54

/********************************************
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.
********************************************/

/* $Log: parse2.xc,v $
/* Revision 1.1.1.1  1993/03/21 09:45:37  cgd
/* initial import of 386bsd-0.1 sources
/*
Revision 5.1  91/12/05  07:52:38  brennan
1.1 pre-release

*/

/* 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 ;