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
This commit is contained in:
parent
1d193d9251
commit
17a2be29b9
@ -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>
|
Mon Dec 3 16:23:09 2012 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* vm_backtrace.c (vm_backtrace_to_ary): check negative size (2nd arg).
|
* vm_backtrace.c (vm_backtrace_to_ary): check negative size (2nd arg).
|
||||||
|
@ -15,12 +15,11 @@ require 'optparse'
|
|||||||
|
|
||||||
op_id_offset = 128
|
op_id_offset = 128
|
||||||
|
|
||||||
method_ids = %w[
|
attr_ids = %w[
|
||||||
Intern
|
Intern
|
||||||
MethodMissing
|
MethodMissing
|
||||||
Length
|
Length
|
||||||
Size
|
Size
|
||||||
EmptyP
|
|
||||||
Gets
|
Gets
|
||||||
Succ
|
Succ
|
||||||
Each
|
Each
|
||||||
@ -44,6 +43,7 @@ token_op_ids = %w[
|
|||||||
|
|
||||||
preserved_ids = %w[
|
preserved_ids = %w[
|
||||||
NULL
|
NULL
|
||||||
|
EmptyP
|
||||||
Respond_to
|
Respond_to
|
||||||
Respond_to_missing
|
Respond_to_missing
|
||||||
IFUNC
|
IFUNC
|
||||||
@ -113,11 +113,11 @@ enum ruby_method_ids {
|
|||||||
id<%=token%>,
|
id<%=token%>,
|
||||||
% end
|
% end
|
||||||
tPRESERVED_ID_END,
|
tPRESERVED_ID_END,
|
||||||
% method_ids.each do |token|
|
% attr_ids.each do |token|
|
||||||
t<%=token%>,
|
t<%=token%>,
|
||||||
% end
|
% end
|
||||||
#define TOKEN2ID(n) id##n = ((t##n<<ID_SCOPE_SHIFT)|ID_LOCAL)
|
#define TOKEN2ID(n) id##n = ((t##n<<ID_SCOPE_SHIFT)|ID_LOCAL)
|
||||||
% method_ids.each do |token|
|
% attr_ids.each do |token|
|
||||||
TOKEN2ID(<%=token%>),
|
TOKEN2ID(<%=token%>),
|
||||||
% end
|
% end
|
||||||
tLAST_OP_ID = tPRESERVED_ID_END-1,
|
tLAST_OP_ID = tPRESERVED_ID_END-1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user