mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-13 14:23:04 +00:00
* 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:
25
data/glr.c
25
data/glr.c
@@ -19,6 +19,25 @@ 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>$.
|
||||
@@ -174,7 +193,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
|
||||
|
||||
@@ -462,7 +481,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
|
||||
@@ -477,7 +496,7 @@ int yydebug;
|
||||
#endif
|
||||
|
||||
#ifndef YYMAXDEPTH
|
||||
# define YYMAXDEPTH ]b4_maxdepth[
|
||||
# define YYMAXDEPTH ]b4_stack_depth_max[
|
||||
#endif
|
||||
|
||||
/* Minimum number of free items on the stack allowed after an
|
||||
|
||||
Reference in New Issue
Block a user