summaryrefslogtreecommitdiff
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
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
-rw-r--r--ChangeLog4
-rw-r--r--template/id.h.tmpl8
2 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index c35417a37e..4059630cd6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon Dec 3 18:25:16 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * template/id.h.tmpl (preserved_ids): "empty?" is not an attribute name.
+
Mon Dec 3 16:23:09 2012 Koichi Sasada <ko1@atdot.net>
* vm_backtrace.c (vm_backtrace_to_ary): check negative size (2nd arg).
diff --git a/template/id.h.tmpl b/template/id.h.tmpl
index d5e82a989e..43a802324e 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,