[前][次][番号順一覧][スレッド一覧]

ruby-changes:23978

From: shyouhei <ko1@a...>
Date: Mon, 11 Jun 2012 11:57:12 +0900 (JST)
Subject: [ruby-changes:23978] shyouhei:r36029 (trunk): * compile.c (iseq_set_sequence): nonstatic initializer of an

shyouhei	2012-06-11 11:57:02 +0900 (Mon, 11 Jun 2012)

  New Revision: 36029

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36029

  Log:
    * compile.c (iseq_set_sequence): nonstatic initializer of an
      aggregate type is a C99ism.
    
    * compile.c (enum compile_array_type_t): comma at the end of enum
      list is a C99ism.
    
    * vm_backtrace.c (enum LOCATION_TYPE): ditto.

  Modified files:
    trunk/ChangeLog
    trunk/compile.c
    trunk/vm_backtrace.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 36028)
+++ ChangeLog	(revision 36029)
@@ -1,3 +1,13 @@
+Mon Jun 11 11:52:18 2012  URABE Shyouhei  <shyouhei@r...>
+
+	* compile.c (iseq_set_sequence): nonstatic initializer of an
+	  aggregate type is a C99ism.
+
+	* compile.c (enum compile_array_type_t): comma at the end of enum
+	  list is a C99ism.
+
+	* vm_backtrace.c (enum LOCATION_TYPE): ditto.
+
 Mon Jun 11 06:31:33 2012  Tanaka Akira  <akr@f...>
 
 	* process.c (rb_proc_exec_n): revert the function removed at r35889.
Index: compile.c
===================================================================
--- compile.c	(revision 36028)
+++ compile.c	(revision 36029)
@@ -1449,9 +1449,10 @@
 		      case TS_CDHASH:
 			{
 			    VALUE map = operands[j];
-			    struct cdhash_set_label_struct data = {
-				map, pos, len,
-			    };
+			    struct cdhash_set_label_struct data;
+                            data.hash = map;
+                            data.pos = pos;
+                            data.len = len;
 			    rb_hash_foreach(map, cdhash_set_label_i, (VALUE)&data);
 
 			    hide_obj(map);
@@ -2271,7 +2272,7 @@
 enum compile_array_type_t {
     COMPILE_ARRAY_TYPE_ARRAY,
     COMPILE_ARRAY_TYPE_HASH,
-    COMPILE_ARRAY_TYPE_ARGS,
+    COMPILE_ARRAY_TYPE_ARGS
 };
 
 static int
Index: vm_backtrace.c
===================================================================
--- vm_backtrace.c	(revision 36028)
+++ vm_backtrace.c	(revision 36029)
@@ -44,7 +44,7 @@
 	LOCATION_TYPE_ISEQ = 1,
 	LOCATION_TYPE_ISEQ_CALCED,
 	LOCATION_TYPE_CFUNC,
-	LOCATION_TYPE_IFUNC,
+	LOCATION_TYPE_IFUNC
     } type;
 
     union {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]