diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-14 08:46:23 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-14 08:46:23 +0000 |
| commit | 3898f740990f359fafe930dc9c93f19003b936a0 (patch) | |
| tree | 989852ffc9553f724953cc02054cf00ca5c1f832 /parse.y | |
| parent | 01009fdb7cdd3f7477c511d5077e32498ee03e69 (diff) | |
| download | ruby-3898f740990f359fafe930dc9c93f19003b936a0.tar.gz ruby-3898f740990f359fafe930dc9c93f19003b936a0.tar.xz ruby-3898f740990f359fafe930dc9c93f19003b936a0.zip | |
* parse.y (union tmpyystype): no longer needed, since YYSTYPE is
defined in parse.h now.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
| -rw-r--r-- | parse.y | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -94,15 +94,6 @@ typedef unsigned long stack_type; #define CMDARG_LEXPOP() BITSTACK_LEXPOP(cmdarg_stack) #define CMDARG_P() BITSTACK_SET_P(cmdarg_stack) -/* must sync with real YYSTYPE */ -union tmpyystype { - VALUE val; - NODE *node; - unsigned long id; - int num; - struct RVarmap *vars; -}; - struct vtable { ID *tbl; int pos; @@ -203,7 +194,7 @@ struct parser_params { int is_ripper; NODE *heap; - union tmpyystype *parser_yylval; /* YYSTYPE not defined yet */ + YYSTYPE *parser_yylval; VALUE eofp; NODE *parser_lex_strterm; @@ -7310,7 +7301,7 @@ yylex(void *p) int t; #if YYPURE - parser->parser_yylval = (union tmpyystype*)lval; + parser->parser_yylval = lval; parser->parser_yylval->val = Qundef; #endif t = parser_yylex(parser); |
