mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* cont.c (fiber_status), template/insns.inc.tmpl (ruby_vminsn_type),
vm_insnhelper.h (BOP): ISO C forbids comma at end of enumerator list. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
47c2b02f2b
commit
fe867f47ac
4 changed files with 8 additions and 5 deletions
|
@ -1,4 +1,8 @@
|
||||||
Tue Dec 9 13:23:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Tue Dec 9 13:25:51 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* cont.c (fiber_status), template/insns.inc.tmpl (ruby_vminsn_type),
|
||||||
|
vm_insnhelper.h (BOP): ISO C forbids comma at end of enumerator
|
||||||
|
list.
|
||||||
|
|
||||||
* vm_insnhelper.c (check_cfunc): use function pointer.
|
* vm_insnhelper.c (check_cfunc): use function pointer.
|
||||||
|
|
||||||
|
|
2
cont.c
2
cont.c
|
@ -47,7 +47,7 @@ typedef struct rb_context_struct {
|
||||||
enum fiber_status {
|
enum fiber_status {
|
||||||
CREATED,
|
CREATED,
|
||||||
RUNNING,
|
RUNNING,
|
||||||
TERMINATED,
|
TERMINATED
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct rb_fiber_struct {
|
typedef struct rb_fiber_struct {
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
|
|
||||||
enum ruby_vminsn_type {
|
enum ruby_vminsn_type {
|
||||||
<%= insns %>
|
<%= insns %>
|
||||||
|
VM_INSTRUCTION_SIZE = <%= @insns.size %>
|
||||||
};
|
};
|
||||||
|
|
||||||
#define VM_INSTRUCTION_SIZE <%= @insns.size %>
|
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ enum {
|
||||||
BOP_NOT,
|
BOP_NOT,
|
||||||
BOP_NEQ,
|
BOP_NEQ,
|
||||||
|
|
||||||
BOP_LAST_,
|
BOP_LAST_
|
||||||
};
|
};
|
||||||
|
|
||||||
extern char ruby_vm_redefined_flag[BOP_LAST_];
|
extern char ruby_vm_redefined_flag[BOP_LAST_];
|
||||||
|
|
Loading…
Reference in a new issue