summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-03 09:25:19 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-03 09:25:19 +0000
commit17a2be29b91b971d28f4d0f2381973ee65fc13c4 (patch)
tree71602eb3cf21c1793d7d15bb29f59e193a6d92b6 /template
parent1d193d9251fb5cc58f1b4ac3346ac63529d63097 (diff)
id.h.tmpl: move empty?
* template/id.h.tmpl (preserved_ids): "empty?" is not an attribute name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template')
-rw-r--r--template/id.h.tmpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/template/id.h.tmpl b/template/id.h.tmpl
index d5e82a9..43a8023 100644
--- a/template/id.h.tmpl
+++ b/template/id.h.tmpl
@@ -15,12 +15,11 @@ require 'optparse'
op_id_offset = 128
-method_ids = %w[
+attr_ids = %w[
Intern
MethodMissing
Length
Size
- EmptyP
Gets
Succ
Each
@@ -44,6 +43,7 @@ token_op_ids = %w[
preserved_ids = %w[
NULL
+ EmptyP
Respond_to
Respond_to_missing
IFUNC
@@ -113,11 +113,11 @@ enum ruby_method_ids {
id<%=token%>,
% end
tPRESERVED_ID_END,
-% method_ids.each do |token|
+% attr_ids.each do |token|
t<%=token%>,
% end
#define TOKEN2ID(n) id##n = ((t##n<<ID_SCOPE_SHIFT)|ID_LOCAL)
-% method_ids.each do |token|
+% attr_ids.each do |token|
TOKEN2ID(<%=token%>),
% end
tLAST_OP_ID = tPRESERVED_ID_END-1,