summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-01 08:27:58 (GMT)
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-01 08:27:58 (GMT)
commit3e69e83a62be745e1ace41cb0293ec0692baaeb6 (patch)
tree08a2eaccc276bc216f2f0fbec60d28216f435091
parent4f572663c8ef0dd4274bf935e3385c454e0ddaf5 (diff)
* include/ruby/ruby.h (enum ruby_special_consts): ISO C forbids
comma at end of enumerator list * include/ruby/ruby.h (enum ruby_value_type): ditto. * eval_intern.h (enum): ditto. * vm_core.h (enum rb_thread_status): ditto. * parse.y (enum lex_state_e): ditto. * parse.y (enum string_type): ditto. * process.c (enum): ditto. * ruby.c (enum dump_flag_bits): ditto. * ruby.c (enum disable_flag_bits): ditto. * compile.c (iseq_link_element): ditto * debug.c (union): ditto. * cont.c (enum context_type): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog21
-rw-r--r--compile.c2
-rw-r--r--cont.c2
-rw-r--r--debug.c2
-rw-r--r--eval_intern.h2
-rw-r--r--include/ruby/ruby.h4
-rw-r--r--parse.y4
-rw-r--r--process.c2
-rw-r--r--ruby.c2
-rw-r--r--vm_core.h2
10 files changed, 32 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index 765b49e..a5735ec 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,24 @@
+Tue Jul 1 17:14:59 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * include/ruby/ruby.h (enum ruby_special_consts): ISO C forbids
+ comma at end of enumerator list
+
+ * include/ruby/ruby.h (enum ruby_value_type): ditto.
+
+ * eval_intern.h (enum): ditto.
+
+ * vm_core.h (enum rb_thread_status): ditto.
+
+ * parse.y (enum lex_state_e): ditto.
+
+ * parse.y (enum string_type): ditto.
+
+ * process.c (enum): ditto.
+
+ * ruby.c (enum dump_flag_bits): ditto.
+
+ * ruby.c (enum disable_flag_bits): ditto.
+
Tue Jul 1 17:21:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* regexec.c (stack_double): use MatchStackLimitSize atomically.
diff --git a/compile.c b/compile.c
index e1e9b3b..ecae60d 100644
--- a/compile.c
+++ b/compile.c
@@ -35,7 +35,7 @@ typedef struct iseq_link_element {
ISEQ_ELEMENT_NONE = INT2FIX(0x00),
ISEQ_ELEMENT_LABEL = INT2FIX(0x01),
ISEQ_ELEMENT_INSN = INT2FIX(0x02),
- ISEQ_ELEMENT_ADJUST = INT2FIX(0x03),
+ ISEQ_ELEMENT_ADJUST = INT2FIX(0x03)
} type;
struct iseq_link_element *next;
struct iseq_link_element *prev;
diff --git a/cont.c b/cont.c
index 10f418d..ad2c358 100644
--- a/cont.c
+++ b/cont.c
@@ -17,7 +17,7 @@
enum context_type {
CONTINUATION_CONTEXT = 0,
FIBER_CONTEXT = 1,
- ROOT_FIBER_CONTEXT = 2,
+ ROOT_FIBER_CONTEXT = 2
};
typedef struct rb_context_struct {
diff --git a/debug.c b/debug.c
index 3699359..44b9511 100644
--- a/debug.c
+++ b/debug.c
@@ -63,7 +63,7 @@ static const union {
RUBY_NODE_TYPEMASK = NODE_TYPEMASK,
RUBY_NODE_LSHIFT = NODE_LSHIFT,
RUBY_NODE_LMASK = NODE_LMASK,
- RUBY_NODE_FL_NEWLINE = NODE_FL_NEWLINE,
+ RUBY_NODE_FL_NEWLINE = NODE_FL_NEWLINE
} various;
} dummy_gdb_enums;
diff --git a/eval_intern.h b/eval_intern.h
index 7bc42f8..19275d9 100644
--- a/eval_intern.h
+++ b/eval_intern.h
@@ -205,7 +205,7 @@ void rb_thread_wait_other_threads(void);
enum {
RAISED_EXCEPTION = 1,
RAISED_STACKOVERFLOW = 2,
- RAISED_NOMEMORY = 4,
+ RAISED_NOMEMORY = 4
};
int rb_thread_set_raised(rb_thread_t *th);
int rb_thread_reset_raised(rb_thread_t *th);
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index 1c8e44e..fe10e4a 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -235,7 +235,7 @@ enum ruby_special_consts {
RUBY_IMMEDIATE_MASK = 0x03,
RUBY_FIXNUM_FLAG = 0x01,
RUBY_SYMBOL_FLAG = 0x0e,
- RUBY_SPECIAL_SHIFT = 8,
+ RUBY_SPECIAL_SHIFT = 8
};
#define Qfalse ((VALUE)RUBY_Qfalse)
@@ -280,7 +280,7 @@ enum ruby_value_type {
RUBY_T_NODE = 0x1c,
RUBY_T_ICLASS = 0x1d,
- RUBY_T_MASK = 0x1f,
+ RUBY_T_MASK = 0x1f
};
#define T_NONE RUBY_T_NONE
diff --git a/parse.y b/parse.y
index 0970cc4..4b42870 100644
--- a/parse.y
+++ b/parse.y
@@ -70,7 +70,7 @@ enum lex_state_e {
EXPR_FNAME, /* ignore newline, no reserved words. */
EXPR_DOT, /* right after `.' or `::', no reserved words. */
EXPR_CLASS, /* immediate after `class', no here document. */
- EXPR_VALUE, /* alike EXPR_BEG but label is disallowed. */
+ EXPR_VALUE /* alike EXPR_BEG but label is disallowed. */
};
# ifdef HAVE_LONG_LONG
@@ -4843,7 +4843,7 @@ enum string_type {
str_sword = (STR_FUNC_QWORDS),
str_dword = (STR_FUNC_QWORDS|STR_FUNC_EXPAND),
str_ssym = (STR_FUNC_SYMBOL),
- str_dsym = (STR_FUNC_SYMBOL|STR_FUNC_EXPAND),
+ str_dsym = (STR_FUNC_SYMBOL|STR_FUNC_EXPAND)
};
static VALUE
diff --git a/process.c b/process.c
index 1735df8..981ea8b 100644
--- a/process.c
+++ b/process.c
@@ -1261,7 +1261,7 @@ enum {
EXEC_OPTION_DUP2,
EXEC_OPTION_CLOSE,
EXEC_OPTION_OPEN,
- EXEC_OPTION_CLOSE_OTHERS,
+ EXEC_OPTION_CLOSE_OTHERS
};
static VALUE
diff --git a/ruby.c b/ruby.c
index 26ed3f4..f031ee3 100644
--- a/ruby.c
+++ b/ruby.c
@@ -66,7 +66,7 @@ void ruby_set_inplace_mode(const char *);
#define DISABLE_BIT(bit) (1U << disable_##bit)
enum disable_flag_bits {
disable_gems,
- disable_rubyopt,
+ disable_rubyopt
};
#define DUMP_BIT(bit) (1U << dump_##bit)
diff --git a/vm_core.h b/vm_core.h
index 12f5e36..0614e66 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -371,7 +371,7 @@ enum rb_thread_status {
THREAD_RUNNABLE,
THREAD_STOPPED,
THREAD_STOPPED_FOREVER,
- THREAD_KILLED,
+ THREAD_KILLED
};
typedef RUBY_JMP_BUF rb_jmpbuf_t;