summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-12 14:54:57 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-12 14:54:57 +0000
commitb1d964358477d252e88481e1f1df683cfe8499f3 (patch)
treee505322ccf3084da0ffc20d1b1b6a5b1a3d9731a
parentd8359a45d95a6fa5d770b1ab37bf6ff82dd77594 (diff)
merges r20591 from trunk into ruby_1_9_1.
* 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/branches/ruby_1_9_1@20679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog8
-rw-r--r--cont.c2
-rw-r--r--template/insns.inc.tmpl3
-rw-r--r--vm_insnhelper.h2
4 files changed, 11 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 9632192f27..cc2b461a6a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+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.
+
Tue Dec 9 12:08:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* .gdbinit (rp): fixed typo for T_STRUCT.
diff --git a/cont.c b/cont.c
index 0f805881dc..10912e4c35 100644
--- a/cont.c
+++ b/cont.c
@@ -47,7 +47,7 @@ typedef struct rb_context_struct {
enum fiber_status {
CREATED,
RUNNING,
- TERMINATED,
+ TERMINATED
};
typedef struct rb_fiber_struct {
diff --git a/template/insns.inc.tmpl b/template/insns.inc.tmpl
index 97c20ef9ad..a64b39ccd2 100644
--- a/template/insns.inc.tmpl
+++ b/template/insns.inc.tmpl
@@ -15,7 +15,6 @@
enum ruby_vminsn_type {
<%= insns %>
+ VM_INSTRUCTION_SIZE = <%= @insns.size %>
};
-#define VM_INSTRUCTION_SIZE <%= @insns.size %>
-
diff --git a/vm_insnhelper.h b/vm_insnhelper.h
index 83efeda4ba..613d997a4c 100644
--- a/vm_insnhelper.h
+++ b/vm_insnhelper.h
@@ -53,7 +53,7 @@ enum {
BOP_NOT,
BOP_NEQ,
- BOP_LAST_,
+ BOP_LAST_
};
extern char ruby_vm_redefined_flag[BOP_LAST_];