ruby-changes:7095
From: nobu <ko1@a...>
Date: Thu, 14 Aug 2008 17:46:47 +0900 (JST)
Subject: [ruby-changes:7095] Ruby:r18613 (trunk): * parse.y (union tmpyystype): no longer needed, since YYSTYPE is
nobu 2008-08-14 17:46:23 +0900 (Thu, 14 Aug 2008) New Revision: 18613 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18613 Log: * parse.y (union tmpyystype): no longer needed, since YYSTYPE is defined in parse.h now. Modified files: trunk/ChangeLog trunk/parse.y Index: ChangeLog =================================================================== --- ChangeLog (revision 18612) +++ ChangeLog (revision 18613) @@ -1,3 +1,8 @@ +Thu Aug 14 17:46:21 2008 Nobuyoshi Nakada <nobu@r...> + + * parse.y (union tmpyystype): no longer needed, since YYSTYPE is + defined in parse.h now. + Thu Aug 14 17:27:07 2008 Yukihiro Matsumoto <matz@r...> * version.c (Init_version): add RUBY_ENGINE constant. Index: parse.y =================================================================== --- parse.y (revision 18612) +++ parse.y (revision 18613) @@ -94,15 +94,6 @@ #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 @@ 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 @@ int t; #if YYPURE - parser->parser_yylval = (union tmpyystype*)lval; + parser->parser_yylval = lval; parser->parser_yylval->val = Qundef; #endif t = parser_yylex(parser); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/