~ubuntu-branches/ubuntu/quantal/ruby1.9.1/quantal

« back to all changes in this revision

Viewing changes to template/id.h.tmpl

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2011-09-24 19:16:17 UTC
  • mfrom: (1.1.8 upstream) (13.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20110924191617-o1qz4rcmqjot8zuy
Tags: 1.9.3~rc1-1
* New upstream release: 1.9.3 RC1.
  + Includes load.c fixes. Closes: #639959.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
#include "parse.h"
51
51
#endif
52
52
 
 
53
#include "vm_opts.h" /* for SUPPORT_JOKE */
 
54
 
53
55
#define symIFUNC ID2SYM(idIFUNC)
54
56
#define symCFUNC ID2SYM(idCFUNC)
55
57
 
100
102
    tSend,
101
103
    t__send__,
102
104
    tInitialize,
 
105
    tUScore,
103
106
#if SUPPORT_JOKE
104
107
    tBitblt,
105
108
    tAnswer,
120
123
    TOKEN2ID(Lambda),
121
124
    TOKEN2ID(Send),
122
125
    TOKEN2ID(__send__),
123
 
    TOKEN2ID(Initialize)
 
126
    TOKEN2ID(Initialize),
 
127
    TOKEN2ID(UScore),
 
128
    TOKEN2ID(LAST_ID)
124
129
};
125
130
 
126
131
#ifdef tLAST_TOKEN
127
132
struct ruby_method_ids_check {
128
133
#define ruby_method_id_check_for(name, value) \
129
 
    int checking_for_##name[name == value ? 1 : -1]
 
134
    int checking_for_##name[name == (value) ? 1 : -1]
130
135
% tokens.map do |token, value|
131
136
ruby_method_id_check_for(<%=token%>, <%=value%>);
132
137
% end