summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-21 12:42:11 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-21 12:42:11 +0000
commitc07d295204de26a8926b5c58c2b849022e5db02b (patch)
tree11d612240ca1cccba0fde282e7e971de9a986a93
parent1ac4e6d2746144598404487b67630b31288db8ae (diff)
* 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
-rw-r--r--ChangeLog10
-rw-r--r--compile.c2
-rw-r--r--cont.c2
-rw-r--r--include/ruby/util.h2
-rw-r--r--math.c2
-rw-r--r--node.c4
-rw-r--r--parse.y2
7 files changed, 17 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 3899a25..ce4e4dc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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().
diff --git a/compile.c b/compile.c
index 5e79427..ebb58bb 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 9cac268..084ea3e 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 e82f537..02aa643 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 2eb95dc..96bd1e9 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 b3936da..472a959 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 5741eb9..7645951 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);