summaryrefslogtreecommitdiffstats
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
commit999be5f5fd879b582955689487598ea3f825e229 (patch)
tree0616bde20da78986dc91bcbc8b4150998f9e8e55 /method.h
parent29db76b3a8c4764d737a181bf5c7f56ae9541bd9 (diff)
downloadruby-999be5f5fd879b582955689487598ea3f825e229.tar.gz
ruby-999be5f5fd879b582955689487598ea3f825e229.tar.xz
ruby-999be5f5fd879b582955689487598ea3f825e229.zip
* 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: http://svn.ruby-lang.org/repos/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 49eefade2..6032d572d 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;