47 lines
1.3 KiB
Plaintext
47 lines
1.3 KiB
Plaintext
|
|
/********************************************
|
|
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 ;
|
|
|