summaryrefslogtreecommitdiffstats
path: root/id.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-24 20:53:06 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-24 20:53:06 +0000
commitb38e583c46222f2d44c2233e62eaa77c4ba32a99 (patch)
tree43853d683e5270c346a213108e6a0582896b95ff /id.h
parent2a4825fa02b4643650bc44021c0c5b3836f2e43d (diff)
downloadruby-b38e583c46222f2d44c2233e62eaa77c4ba32a99.tar.gz
ruby-b38e583c46222f2d44c2233e62eaa77c4ba32a99.tar.xz
ruby-b38e583c46222f2d44c2233e62eaa77c4ba32a99.zip
* template/id.h.tmpl, id.h (ruby_method_ids_check): enclosed in a
struct. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'id.h')
-rw-r--r--id.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/id.h b/id.h
index 67f1eeadf..97faaf4f6 100644
--- a/id.h
+++ b/id.h
@@ -122,8 +122,9 @@ enum ruby_method_ids {
};
#ifdef tLAST_TOKEN
+struct ruby_method_ids_check {
#define ruby_method_id_check_for(name, value) \
- typedef int ruby_method_id_check_for_##name[name == value ? 1 : -1]
+ int checking_for_##name[name == value ? 1 : -1]
ruby_method_id_check_for(tUPLUS, 321);
ruby_method_id_check_for(tUMINUS, 322);
ruby_method_id_check_for(tPOW, 323);
@@ -156,6 +157,7 @@ ruby_method_id_check_for(id_core_define_method, 373);
ruby_method_id_check_for(id_core_define_singleton_method, 374);
ruby_method_id_check_for(id_core_set_postexe, 375);
ruby_method_id_check_for(tLAST_TOKEN, 376);
+};
#endif
#endif /* RUBY_ID_H */