Skip to content

Commit

Permalink
* include/ruby/util.h: removed extra semicolon in definition of
Browse files Browse the repository at this point in the history
	  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
  • Loading branch information
tadf committed Nov 21, 2012
1 parent 1ac4e6d commit c07d295
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 7 deletions.
10 changes: 10 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
Wed Nov 21 21:35:38 2012 Tadayoshi Funaba <tadf@dotrb.org>

* 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@dotrb.org>

* rational.c (read_digits): due to a bit tighter rb_cstr_to_inum().
Expand Down
2 changes: 1 addition & 1 deletion compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion cont.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

/*
Expand Down
2 changes: 1 addition & 1 deletion include/ruby/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion math.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions node.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion parse.y
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c07d295

Please sign in to comment.