aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-14 08:46:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-14 08:46:23 +0000
commitc710140216e3fde8130d8a583a1e1c9582be20e9 (patch)
tree989852ffc9553f724953cc02054cf00ca5c1f832
parentf677aae7bc778df3cb1a63ca9313ddb51481d274 (diff)
downloadruby-c710140216e3fde8130d8a583a1e1c9582be20e9.tar.gz
* parse.y (union tmpyystype): no longer needed, since YYSTYPE is
defined in parse.h now. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--parse.y13
2 files changed, 7 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index 4e8bec7f2d..8dc23520be 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Aug 14 17:46:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * 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@ruby-lang.org>
* version.c (Init_version): add RUBY_ENGINE constant.
diff --git a/parse.y b/parse.y
index 9debf69e9b..f08bb85d89 100644
--- a/parse.y
+++ b/parse.y
@@ -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);