summaryrefslogtreecommitdiff
path: root/method.h
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-22 13:27:26 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-22 13:27:26 +0000
commit506a9821ce44db2b02bf3da99bef8b2e55f46562 (patch)
tree0616bde20da78986dc91bcbc8b4150998f9e8e55 /method.h
parent9d43aefe922a432a5f0accfa3599976ee9de7734 (diff)
* method.h : Commas at end of enum list not allowed as of C89
* vm_method.c (rb_add_method): avoid C++ comment * vm_insnhelper.c (vm_call_cfunc): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'method.h')
-rw-r--r--method.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/method.h b/method.h
index 49eefade2d..6032d572d7 100644
--- a/method.h
+++ b/method.h
@@ -21,7 +21,7 @@ typedef enum {
NOEX_UNDEF = NOEX_NOSUPER,
NOEX_MODFUNC = 0x12,
NOEX_SUPER = 0x20,
- NOEX_VCALL = 0x40,
+ NOEX_VCALL = 0x40
} rb_method_flag_t;
#define NOEX_SAFE(n) ((int)((n) >> 8) & 0x0F)
@@ -39,7 +39,7 @@ typedef enum {
VM_METHOD_TYPE_ZSUPER,
VM_METHOD_TYPE_UNDEF,
VM_METHOD_TYPE_NOTIMPLEMENTED,
- VM_METHOD_TYPE_OPTIMIZED, /* Kernel#send, Proc#call, etc */
+ VM_METHOD_TYPE_OPTIMIZED /* Kernel#send, Proc#call, etc */
} rb_method_type_t;
typedef struct rb_method_cfunc_struct {
@@ -62,7 +62,7 @@ typedef struct rb_method_entry_struct {
VALUE proc;
enum method_optimized_type {
OPTIMIZED_METHOD_TYPE_SEND,
- OPTIMIZED_METHOD_TYPE_CALL,
+ OPTIMIZED_METHOD_TYPE_CALL
} optimize_type;
} body;
int alias_count;