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

ruby-changes:7734

From: nobu <ko1@a...>
Date: Tue, 9 Sep 2008 00:31:26 +0900 (JST)
Subject: [ruby-changes:7734] Ruby:r19254 (mvm): * st.c (st_init_table_with_size, ADD_DIRECT): fixed typo.

nobu	2008-09-09 00:30:36 +0900 (Tue, 09 Sep 2008)

  New Revision: 19254

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

  Log:
    * st.c (st_init_table_with_size, ADD_DIRECT): fixed typo.

  Modified files:
    branches/mvm/ChangeLog
    branches/mvm/st.c

Index: mvm/ChangeLog
===================================================================
--- mvm/ChangeLog	(revision 19253)
+++ mvm/ChangeLog	(revision 19254)
@@ -1,3 +1,7 @@
+Tue Sep  9 00:30:28 2008  Nobuyoshi Nakada  <nobu@r...>
+
+	* st.c (st_init_table_with_size, ADD_DIRECT): fixed typo.
+
 Mon Sep  8 20:10:12 2008  Nobuyoshi Nakada  <nobu@r...>
 
 	* bignum.c (power_cache_get_power0): no need to register address.
Index: mvm/st.c
===================================================================
--- mvm/st.c	(revision 19253)
+++ mvm/st.c	(revision 19254)
@@ -61,6 +61,7 @@
 static void rehash(st_table *);
 
 #ifdef RUBY
+int rb_garbage_collect(void);
 #define garbage_collect() rb_garbage_collect()
 #else
 #define garbage_collect() 0
@@ -173,7 +174,7 @@
     if (!tbl) {
       nomem:
 	if (garbage_collect()) goto retry;
-	retry 0;
+	return 0;
     }
     tbl->type = type;
     tbl->num_entries = 0;
@@ -352,7 +353,7 @@
     }\
     \
     entry = alloc(st_table_entry);\
-    if (!entry) break;
+    if (!entry) break;\
     \
     entry->hash = hash_val;\
     entry->key = key;\

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

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