Skip to content

Commit

Permalink
id.h.tmpl: joke method names
Browse files Browse the repository at this point in the history
* template/id.h.tmpl (method_ids): create also joke method names
  non-separatedly.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Aug 17, 2012
1 parent 9e1b74f commit 200cea6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions template/id.h.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ method_ids = %w[
__send__
Initialize
UScore
Bitblt
Answer
]
%>
#ifndef RUBY_ID_H
Expand Down Expand Up @@ -107,12 +109,8 @@ enum ruby_method_ids {
% method_ids.each do |token|
t<%=token%>,
% end
tBitblt,
tAnswer,
tLAST_ID,
#define TOKEN2ID(n) id##n = ((t##n<<ID_SCOPE_SHIFT)|ID_LOCAL)
TOKEN2ID(Bitblt),
TOKEN2ID(Answer),
% method_ids.each do |token|
TOKEN2ID(<%=token%>),
% end
Expand Down

0 comments on commit 200cea6

Please sign in to comment.