30 |
m4_define_default([b4_stack_depth_max], [10000]) |
m4_define_default([b4_stack_depth_max], [10000]) |
31 |
m4_define_default([b4_stack_depth_init], [200]) |
m4_define_default([b4_stack_depth_init], [200]) |
32 |
|
|
|
# Location type. |
|
|
m4_define_default([b4_location_type], [yyltype]) |
|
|
|
|
33 |
|
|
34 |
## ------------------------ ## |
## ------------------------ ## |
35 |
## Pure/impure interfaces. ## |
## Pure/impure interfaces. ## |
183 |
# define YYERROR_VERBOSE ]b4_error_verbose[ |
# define YYERROR_VERBOSE ]b4_error_verbose[ |
184 |
#endif |
#endif |
185 |
|
|
186 |
#ifndef YYSTYPE |
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) |
187 |
]m4_ifdef([b4_stype], |
]m4_ifdef([b4_stype], |
188 |
[b4_syncline([b4_stype_line], [b4_filename]) |
[b4_syncline([b4_stype_line], [b4_filename]) |
189 |
typedef union b4_stype yystype; |
typedef union m4_bregexp(b4_stype, [^{], [YYSTYPE ])b4_stype YYSTYPE; |
190 |
/* Line __line__ of yacc.c. */ |
/* Line __line__ of yacc.c. */ |
191 |
b4_syncline([@oline@], [@ofile@])], |
b4_syncline([@oline@], [@ofile@])], |
192 |
[typedef int yystype;])[ |
[typedef int YYSTYPE;])[ |
193 |
# define YYSTYPE yystype |
# define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
194 |
|
# define YYSTYPE_IS_DECLARED 1 |
195 |
# define YYSTYPE_IS_TRIVIAL 1 |
# define YYSTYPE_IS_TRIVIAL 1 |
196 |
#endif |
#endif |
197 |
|
|
198 |
]b4_location_if([#ifndef YYLTYPE |
]b4_location_if([#if ! defined (YYLTYPE) && ! defined (YYLTYPE_IS_DECLARED) |
199 |
typedef struct yyltype |
typedef struct YYLTYPE |
200 |
{ |
{ |
201 |
int first_line; |
int first_line; |
202 |
int first_column; |
int first_column; |
203 |
int last_line; |
int last_line; |
204 |
int last_column; |
int last_column; |
205 |
} yyltype; |
} YYLTYPE; |
206 |
# define YYLTYPE ]b4_location_type[ |
# define yyltype YYLTYPE /* obsolescent; will be withdrawn */ |
207 |
|
# define YYLTYPE_IS_DECLARED 1 |
208 |
# define YYLTYPE_IS_TRIVIAL 1 |
# define YYLTYPE_IS_TRIVIAL 1 |
209 |
#endif |
#endif |
210 |
])[ |
])[ |
1193 |
|
|
1194 |
b4_token_defines(b4_tokens) |
b4_token_defines(b4_tokens) |
1195 |
|
|
1196 |
#ifndef YYSTYPE |
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) |
1197 |
m4_ifdef([b4_stype], |
m4_ifdef([b4_stype], |
1198 |
[b4_syncline([b4_stype_line], [b4_filename]) |
[b4_syncline([b4_stype_line], [b4_filename]) |
1199 |
typedef union b4_stype yystype; |
typedef union m4_bregexp(b4_stype, [^{], [YYSTYPE ])b4_stype YYSTYPE; |
1200 |
/* Line __line__ of yacc.c. */ |
/* Line __line__ of yacc.c. */ |
1201 |
b4_syncline([@oline@], [@ofile@])], |
b4_syncline([@oline@], [@ofile@])], |
1202 |
[typedef int yystype;]) |
[typedef int YYSTYPE;]) |
1203 |
# define YYSTYPE yystype |
# define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
1204 |
|
# define YYSTYPE_IS_DECLARED 1 |
1205 |
# define YYSTYPE_IS_TRIVIAL 1 |
# define YYSTYPE_IS_TRIVIAL 1 |
1206 |
#endif |
#endif |
1207 |
|
|
1209 |
[extern YYSTYPE b4_prefix[]lval;]) |
[extern YYSTYPE b4_prefix[]lval;]) |
1210 |
|
|
1211 |
b4_location_if( |
b4_location_if( |
1212 |
[#ifndef YYLTYPE |
[#if ! defined (YYLTYPE) && ! defined (YYLTYPE_IS_DECLARED) |
1213 |
typedef struct yyltype |
typedef struct YYLTYPE |
1214 |
{ |
{ |
1215 |
int first_line; |
int first_line; |
1216 |
int first_column; |
int first_column; |
1217 |
int last_line; |
int last_line; |
1218 |
int last_column; |
int last_column; |
1219 |
} yyltype; |
} YYLTYPE; |
1220 |
# define YYLTYPE yyltype |
# define yyltype YYLTYPE /* obsolescent; will be withdrawn */ |
1221 |
|
# define YYLTYPE_IS_DECLARED 1 |
1222 |
|
# define YYLTYPE_IS_TRIVIAL 1 |
1223 |
#endif |
#endif |
1224 |
|
|
1225 |
m4_if(b4_pure, [0], |
m4_if(b4_pure, [0], |