diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-15 06:13:24 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-15 06:13:24 +0000 |
commit | 13aaff3e9f471e2ecdca968476c34d66778730f4 (patch) | |
tree | ccab0a60906b67005b3e4d569d751776eb02bb82 | |
parent | 465bad4147f014a406083831552b95317c019841 (diff) | |
download | bundler-13aaff3e9f471e2ecdca968476c34d66778730f4.tar.gz |
* id.h, template/id.h.tmpl (ruby_method_ids): sees YYTOKENTYPE too.
[ruby-dev:37436]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | id.h | 2 | ||||
-rw-r--r-- | template/id.h.tmpl | 2 |
3 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Mon Dec 15 15:13:22 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * id.h, template/id.h.tmpl (ruby_method_ids): sees YYTOKENTYPE too. + [ruby-dev:37436] + Mon Dec 15 15:02:24 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> * common.mk (EXTMK_ARGS): needs MINIRUBY for cross-compile. @@ -32,7 +32,7 @@ #define symCFUNC ID2SYM(idCFUNC) enum ruby_method_ids { -#ifndef tLAST_TOKEN +#if !defined tLAST_TOKEN && !defined YYTOKENTYPE tUPLUS = 321, tUMINUS = 322, tPOW = 323, diff --git a/template/id.h.tmpl b/template/id.h.tmpl index 1be4bad997..c16137cb5a 100644 --- a/template/id.h.tmpl +++ b/template/id.h.tmpl @@ -54,7 +54,7 @@ end #define symCFUNC ID2SYM(idCFUNC) enum ruby_method_ids { -#ifndef tLAST_TOKEN +#if !defined tLAST_TOKEN && !defined YYTOKENTYPE % tokens.each do |token, value| <%=token%> = <%=value%>, % end |