ruby-changes:25724
From: tadf <ko1@a...>
Date: Wed, 21 Nov 2012 21:42:28 +0900 (JST)
Subject: [ruby-changes:25724] tadf:r37781 (trunk): * include/ruby/util.h: removed extra semicolon in definition of
tadf 2012-11-21 21:42:11 +0900 (Wed, 21 Nov 2012) New Revision: 37781 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37781 Log: * 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. Modified files: trunk/ChangeLog trunk/compile.c trunk/cont.c trunk/include/ruby/util.h trunk/math.c trunk/node.c trunk/parse.y Index: math.c =================================================================== --- math.c (revision 37780) +++ math.c (revision 37781) @@ -31,7 +31,7 @@ } 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: Index: include/ruby/util.h =================================================================== --- include/ruby/util.h (revision 37780) +++ include/ruby/util.h (revision 37781) @@ -62,7 +62,7 @@ #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 Index: ChangeLog =================================================================== --- ChangeLog (revision 37780) +++ ChangeLog (revision 37781) @@ -1,3 +1,13 @@ +Wed Nov 21 21:35:38 2012 Tadayoshi Funaba <tadf@d...> + + * 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 <tadf@d...> * rational.c (read_digits): due to a bit tighter rb_cstr_to_inum(). Index: compile.c =================================================================== --- compile.c (revision 37780) +++ compile.c (revision 37781) @@ -128,7 +128,7 @@ (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 Index: parse.y =================================================================== --- parse.y (revision 37780) +++ parse.y (revision 37781) @@ -491,7 +491,7 @@ 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); Index: cont.c =================================================================== --- cont.c (revision 37780) +++ cont.c (revision 37781) @@ -793,7 +793,7 @@ 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 /* Index: node.c =================================================================== --- node.c (revision 37780) +++ node.c (revision 37781) @@ -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)) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/