From c07d295204de26a8926b5c58c2b849022e5db02b Mon Sep 17 00:00:00 2001 From: tadf Date: Wed, 21 Nov 2012 12:42:11 +0000 Subject: * include/ruby/util.h: removed extra semicolon in definition of macro. * compile.c: ditto. * cont.c: ditto. * math.c: ditto. * node.c: ditto. * parse.y: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 10 ++++++++++ compile.c | 2 +- cont.c | 2 +- include/ruby/util.h | 2 +- math.c | 2 +- node.c | 4 ++-- parse.y | 2 +- 7 files changed, 17 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3899a25828..ce4e4dc8b3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +Wed Nov 21 21:35:38 2012 Tadayoshi Funaba + + * include/ruby/util.h: removed extra semicolon in definition of + macro. + * compile.c: ditto. + * cont.c: ditto. + * math.c: ditto. + * node.c: ditto. + * parse.y: ditto. + Wed Nov 21 18:46:37 2012 Tadayoshi Funaba * rational.c (read_digits): due to a bit tighter rb_cstr_to_inum(). diff --git a/compile.c b/compile.c index 5e79427893..ebb58bba8d 100644 --- a/compile.c +++ b/compile.c @@ -128,7 +128,7 @@ struct iseq_compile_data_ensure_node_stack { (ruby_debug_print_node(1, CPDEBUG, "", (NODE *)(node)), gl_node_level)), \ gl_node_level++) -#define debug_node_end() gl_node_level --; +#define debug_node_end() gl_node_level -- #else diff --git a/cont.c b/cont.c index 9cac2682df..084ea3edc6 100644 --- a/cont.c +++ b/cont.c @@ -793,7 +793,7 @@ cont_restore_0(rb_context_t *cont, VALUE *addr_in_prev_frame) cont_restore_1(cont); } #ifdef __ia64 -#define cont_restore_0(cont, vp) register_stack_extend((cont), (vp), (VALUE*)rb_ia64_bsp()); +#define cont_restore_0(cont, vp) register_stack_extend((cont), (vp), (VALUE*)rb_ia64_bsp()) #endif /* diff --git a/include/ruby/util.h b/include/ruby/util.h index e82f537728..02aa643916 100644 --- a/include/ruby/util.h +++ b/include/ruby/util.h @@ -62,7 +62,7 @@ void ruby_unsetenv(const char *); #undef setenv #undef unsetenv #define setenv(name,val) ruby_setenv((name),(val)) -#define unsetenv(name,val) ruby_unsetenv(name); +#define unsetenv(name,val) ruby_unsetenv(name) char *ruby_strdup(const char *); #undef strdup diff --git a/math.c b/math.c index 2eb95dcd10..96bd1e9f73 100644 --- a/math.c +++ b/math.c @@ -31,7 +31,7 @@ VALUE rb_eMathDomainError; } while (0) #define domain_error(msg) \ - rb_raise(rb_eMathDomainError, "Numerical argument is out of domain - " #msg); + rb_raise(rb_eMathDomainError, "Numerical argument is out of domain - " #msg) /* * call-seq: diff --git a/node.c b/node.c index b3936dad07..472a959ef9 100644 --- a/node.c +++ b/node.c @@ -17,8 +17,8 @@ #define A_INDENT add_indent(buf, indent) #define A_ID(id) add_id(buf, (id)) -#define A_INT(val) rb_str_catf(buf, "%d", (val)); -#define A_LONG(val) rb_str_catf(buf, "%ld", (val)); +#define A_INT(val) rb_str_catf(buf, "%d", (val)) +#define A_LONG(val) rb_str_catf(buf, "%ld", (val)) #define A_LIT(lit) AR(rb_inspect(lit)) #define A_NODE_HEADER(node) \ rb_str_catf(buf, "@ %s (line: %d)", ruby_node_name(nd_type(node)), nd_line(node)) diff --git a/parse.y b/parse.y index 5741eb9ff6..7645951bf2 100644 --- a/parse.y +++ b/parse.y @@ -491,7 +491,7 @@ static void local_push_gen(struct parser_params*,int); static void local_pop_gen(struct parser_params*); #define local_pop() local_pop_gen(parser) static int local_var_gen(struct parser_params*, ID); -#define local_var(id) local_var_gen(parser, (id)); +#define local_var(id) local_var_gen(parser, (id)) static int arg_var_gen(struct parser_params*, ID); #define arg_var(id) arg_var_gen(parser, (id)) static int local_id_gen(struct parser_params*, ID); -- cgit v1.2.3