From 3e69e83a62be745e1ace41cb0293ec0692baaeb6 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Tue, 1 Jul 2008 08:27:58 +0000 Subject: * 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 --- ChangeLog | 21 +++++++++++++++++++++ compile.c | 2 +- cont.c | 2 +- debug.c | 2 +- eval_intern.h | 2 +- include/ruby/ruby.h | 4 ++-- parse.y | 4 ++-- process.c | 2 +- ruby.c | 2 +- vm_core.h | 2 +- 10 files changed, 32 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index 765b49eef1..a5735ec98e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,24 @@ +Tue Jul 1 17:14:59 2008 URABE Shyouhei + + * 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 * regexec.c (stack_double): use MatchStackLimitSize atomically. diff --git a/compile.c b/compile.c index e1e9b3b88f..ecae60d236 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 10f418db57..ad2c358264 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 3699359193..44b95118c8 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 7bc42f8de3..19275d911c 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 1c8e44e67b..fe10e4aef3 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 0970cc43e9..4b42870a0c 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 1735df827d..981ea8b2da 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 26ed3f4917..f031ee3474 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 12f5e36384..0614e660dc 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; -- cgit v1.2.3