From 506a9821ce44db2b02bf3da99bef8b2e55f46562 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Wed, 22 Jul 2009 13:27:26 +0000 Subject: * 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 --- vm_method.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vm_method.c') diff --git a/vm_method.c b/vm_method.c index 9ebeeb4a4b..407b5b7254 100644 --- a/vm_method.c +++ b/vm_method.c @@ -203,8 +203,9 @@ rb_add_method(VALUE klass, ID mid, rb_method_type_t type, void *opts, rb_method_ old_me->type != VM_METHOD_TYPE_UNDEF) { rb_warning("method redefined; discarding old %s", rb_id2name(mid)); } - +#if defined(__cplusplus) || (__STDC_VERSION__ >= 199901L) // TODO: free old_me +#endif } /* check mid */ -- cgit v1.2.3