* src/output.c (prepare): Use MUSCLE_INSERT_STRING.

* src/muscle_tab.c (muscle_pair_list_grow): Rename `val as
`pair'.
(muscle_init): Move the `b4_ltype', `b4_maxdepth', `b4_initdepth',
`name' to...
* data/glr.c, data/lalr1.cc, data/yacc.c (b4_location_type)
(b4_stack_depth_init, b4_stack_depth_max, b4_parser_class_name):
These.
This commit is contained in:
Akim Demaille
2002-10-20 11:16:01 +00:00
parent 95f2c9fe7d
commit 66d30cd4eb
6 changed files with 125 additions and 67 deletions

View File

@@ -20,6 +20,27 @@ m4_include([c.m4])
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
# 02111-1307 USA
## ---------------- ##
## Default values. ##
## ---------------- ##
# Stack parameters.
m4_define_default([b4_stack_depth_max], [10000])
m4_define_default([b4_stack_depth_init], [200])
# Location type.
m4_define_default([b4_location_type], [yyltype])
## ----------------- ##
## Semantic Values. ##
## ----------------- ##
# b4_lhs_value([TYPE])
# --------------------
# Expansion of $<TYPE>$.
@@ -203,7 +224,7 @@ typedef struct yyltype
int last_line;
int last_column;
} yyltype;
# define YYLTYPE b4_ltype
# define YYLTYPE b4_location_type
# define YYLTYPE_IS_TRIVIAL 1
#endif
@@ -543,7 +564,7 @@ int yydebug;
/* YYINITDEPTH -- initial size of the parser's stacks. */
#ifndef YYINITDEPTH
# define YYINITDEPTH b4_initdepth
# define YYINITDEPTH b4_stack_depth_init
#endif
/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
@@ -558,7 +579,7 @@ int yydebug;
#endif
#ifndef YYMAXDEPTH
# define YYMAXDEPTH b4_maxdepth
# define YYMAXDEPTH b4_stack_depth_max
#endif