Navigation Menu

Skip to content

Commit

Permalink
* include/ruby/ruby.h (enum ruby_special_consts): ISO C forbids
Browse files Browse the repository at this point in the history
	  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
  • Loading branch information
shyouhei committed Jul 1, 2008
1 parent 4f57266 commit 3e69e83
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 11 deletions.
21 changes: 21 additions & 0 deletions 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.
Expand Down
2 changes: 1 addition & 1 deletion compile.c
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion cont.c
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion debug.c
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion eval_intern.h
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions include/ruby/ruby.h
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions parse.y
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion process.c
Expand Up @@ -1261,7 +1261,7 @@ enum {
EXEC_OPTION_DUP2,
EXEC_OPTION_CLOSE,
EXEC_OPTION_OPEN,
EXEC_OPTION_CLOSE_OTHERS,
EXEC_OPTION_CLOSE_OTHERS
};

static VALUE
Expand Down
2 changes: 1 addition & 1 deletion ruby.c
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion vm_core.h
Expand Up @@ -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;
Expand Down

0 comments on commit 3e69e83

Please sign in to comment.