/[bison]/bison/data/glr.c
ViewVC logotype

Diff of /bison/data/glr.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.44 by eggert, Mon Dec 9 04:48:38 2002 UTC revision 1.45 by eggert, Tue Dec 24 07:40:58 2002 UTC
# Line 28  m4_include([c.m4]) Line 28  m4_include([c.m4])
28  m4_define_default([b4_stack_depth_max], [10000])  m4_define_default([b4_stack_depth_max], [10000])
29  m4_define_default([b4_stack_depth_init],  [200])  m4_define_default([b4_stack_depth_init],  [200])
30    
 # Location type.  
 m4_define_default([b4_location_type], [yyltype])  
   
31    
32    
33  ## ------------------------ ##  ## ------------------------ ##
# Line 183  b4_pre_prologue[ Line 180  b4_pre_prologue[
180  # define YYERROR_VERBOSE ]b4_error_verbose[  # define YYERROR_VERBOSE ]b4_error_verbose[
181  #endif  #endif
182    
183  #ifndef YYSTYPE  #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
184  ]m4_ifdef([b4_stype],  ]m4_ifdef([b4_stype],
185  [b4_syncline([b4_stype_line], [b4_filename])  [b4_syncline([b4_stype_line], [b4_filename])
186  typedef union b4_stype yystype;  typedef union m4_bregexp(b4_stype, [^{], [YYSTYPE ])b4_stype YYSTYPE;
187  /* Line __line__ of glr.c.  */  /* Line __line__ of glr.c.  */
188  b4_syncline([@oline@], [@ofile@])],  b4_syncline([@oline@], [@ofile@])],
189  [typedef int yystype;])[  [typedef int YYSTYPE;])[
190  # define YYSTYPE yystype  # define YYSTYPE_IS_DECLARED 1
191  # define YYSTYPE_IS_TRIVIAL 1  # define YYSTYPE_IS_TRIVIAL 1
192  #endif  #endif
193    
194  #ifndef YYLTYPE  #if ! defined (YYLTYPE) && ! defined (YYLTYPE_IS_DECLARED)
195  typedef struct yyltype  typedef struct YYLTYPE
196  {  {
197    int first_line;    int first_line;
198    int first_column;    int first_column;
199    int last_line;    int last_line;
200    int last_column;    int last_column;
201  } yyltype;  } YYLTYPE;
202  # define YYLTYPE ]b4_location_type[  # define YYLTYPE_IS_DECLARED 1
203  # define YYLTYPE_IS_TRIVIAL 1  # define YYLTYPE_IS_TRIVIAL 1
204  #endif  #endif
205    
# Line 513  int yydebug; Line 510  int yydebug;
510     properly redirected to new data. */     properly redirected to new data. */
511  #define YYHEADROOM 2  #define YYHEADROOM 2
512    
513  #if ! defined (YYSTACKEXPANDABLE) \  #if (! defined (YYSTACKEXPANDABLE) \
514      && (! defined (__cplusplus) || (YYLTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))       && (! defined (__cplusplus) \
515             || (]b4_location_if([YYLTYPE_IS_TRIVIAL && ])[YYSTYPE_IS_TRIVIAL)))
516  #define YYSTACKEXPANDABLE 1  #define YYSTACKEXPANDABLE 1
517  #else  #else
518  #define YYSTACKEXPANDABLE 0  #define YYSTACKEXPANDABLE 0
# Line 1955  b4_copyright([Skeleton parser for GLR pa Line 1953  b4_copyright([Skeleton parser for GLR pa
1953    
1954  b4_token_defines(b4_tokens)  b4_token_defines(b4_tokens)
1955    
1956  #ifndef YYSTYPE  #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
1957  m4_ifdef([b4_stype],  m4_ifdef([b4_stype],
1958  [b4_syncline([b4_stype_line], [b4_filename])  [b4_syncline([b4_stype_line], [b4_filename])
1959  typedef union b4_stype yystype;  typedef union m4_bregexp(b4_stype, [^{], [YYSTYPE ])b4_stype YYSTYPE;
1960  /* Line __line__ of glr.c.  */  /* Line __line__ of glr.c.  */
1961  b4_syncline([@oline@], [@ofile@])],  b4_syncline([@oline@], [@ofile@])],
1962  [typedef int yystype;])  [typedef int YYSTYPE;])
1963  # define YYSTYPE yystype  # define YYSTYPE_IS_DECLARED 1
1964  # define YYSTYPE_IS_TRIVIAL 1  # define YYSTYPE_IS_TRIVIAL 1
1965  #endif  #endif
1966    
# Line 1970  b4_pure_if([], Line 1968  b4_pure_if([],
1968  [extern YYSTYPE b4_prefix[]lval;])  [extern YYSTYPE b4_prefix[]lval;])
1969    
1970  b4_location_if(  b4_location_if(
1971  [#ifndef YYLTYPE  [#if ! defined (YYLTYPE) && ! defined (YYLTYPE_IS_DECLARED)
1972  typedef struct yyltype  typedef struct YYLTYPE
1973  {  {
1974    int first_line;    int first_line;
1975    int first_column;    int first_column;
1976    int last_line;    int last_line;
1977    int last_column;    int last_column;
1978  } yyltype;  } YYLTYPE;
1979  # define YYLTYPE yyltype  # define YYLTYPE_IS_DECLARED 1
1980    # define YYLTYPE_IS_TRIVIAL 1
1981  #endif  #endif
1982    
1983  m4_if(b4_pure, [0],  m4_if(b4_pure, [0],

Legend:
Removed from v.1.44  
changed lines
  Added in v.1.45

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26