1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
shyouhei 2008-07-01 08:27:58 +00:00
parent 4f572663c8
commit 3e69e83a62
10 changed files with 32 additions and 11 deletions

View file

@ -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.

View file

@ -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;

2
cont.c
View file

@ -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 {

View file

@ -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;

View file

@ -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);

View file

@ -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

View file

@ -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

View file

@ -1261,7 +1261,7 @@ enum {
EXEC_OPTION_DUP2,
EXEC_OPTION_CLOSE,
EXEC_OPTION_OPEN,
EXEC_OPTION_CLOSE_OTHERS,
EXEC_OPTION_CLOSE_OTHERS
};
static VALUE

2
ruby.c
View file

@ -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)

View file

@ -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;