diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-21 07:38:07 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-21 07:38:07 +0000 |
commit | 2edcf87c1c30c29562fc52075896935ebf398367 (patch) | |
tree | ebe3d9efe134d0da8799fa2bc46b304879684526 /template | |
parent | 298694a2fdf4451163299d61a49a15fe49ab598a (diff) | |
download | ruby-2edcf87c1c30c29562fc52075896935ebf398367.tar.gz |
id.def: check duplication
* defs/id.def (KeywordError): check duplication.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template')
-rw-r--r-- | template/id.c.tmpl | 2 | ||||
-rw-r--r-- | template/id.h.tmpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/template/id.c.tmpl b/template/id.c.tmpl index 4a272a98ba..cac213a8fb 100644 --- a/template/id.c.tmpl +++ b/template/id.c.tmpl @@ -11,7 +11,7 @@ **********************************************************************/ <% -defs = File.join(File.dirname(erb.filename), "../defs/id.def") +defs = File.join(File.dirname(File.dirname(erb.filename)), "defs/id.def") ids = eval(File.read(defs), binding, defs) %> static void diff --git a/template/id.h.tmpl b/template/id.h.tmpl index 8df17b398b..1573247c86 100644 --- a/template/id.h.tmpl +++ b/template/id.h.tmpl @@ -21,7 +21,7 @@ token_op_ids = %w[ tCOLON2 tCOLON3 ] -defs = File.join(File.dirname(erb.filename), "../defs/id.def") +defs = File.join(File.dirname(File.dirname(erb.filename)), "defs/id.def") ids = eval(File.read(defs), binding, defs) types = ids.keys.grep(/^[A-Z]/) %> |