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

ruby-changes:43748

From: nobu <ko1@a...>
Date: Sat, 6 Aug 2016 09:35:42 +0900 (JST)
Subject: [ruby-changes:43748] nobu:r55821 (trunk): id_table.h: dummy sentinel

nobu	2016-08-06 09:35:33 +0900 (Sat, 06 Aug 2016)

  New Revision: 55821

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55821

  Log:
    id_table.h: dummy sentinel
    
    * id_table.h (rb_id_table_iterator_result): add dummy sentinel
      member because C standard prohibits a trailing comma.

  Modified files:
    trunk/ChangeLog
    trunk/id_table.c
    trunk/id_table.h
Index: id_table.c
===================================================================
--- id_table.c	(revision 55820)
+++ id_table.c	(revision 55821)
@@ -720,6 +720,7 @@ list_id_table_delete(struct list_id_tabl https://github.com/ruby/ruby/blob/trunk/id_table.c#L720
 
 #define FOREACH_LAST() do {   \
     switch (ret) {            \
+      case ID_TABLE_ITERATOR_RESULT_END: \
       case ID_TABLE_CONTINUE: \
       case ID_TABLE_STOP:     \
 	break;                \
Index: id_table.h
===================================================================
--- id_table.h	(revision 55820)
+++ id_table.h	(revision 55821)
@@ -9,6 +9,7 @@ enum rb_id_table_iterator_result { https://github.com/ruby/ruby/blob/trunk/id_table.h#L9
     ID_TABLE_CONTINUE = ST_CONTINUE,
     ID_TABLE_STOP     = ST_STOP,
     ID_TABLE_DELETE   = ST_DELETE,
+    ID_TABLE_ITERATOR_RESULT_END
 };
 
 struct rb_id_table *rb_id_table_create(size_t size);
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 55820)
+++ ChangeLog	(revision 55821)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Aug  6 09:35:30 2016  Nobuyoshi Nakada  <nobu@r...>
+
+	* id_table.h (rb_id_table_iterator_result): add dummy sentinel
+	  member because C standard prohibits a trailing comma.
+
 Sat Aug  6 00:39:44 2016  Nobuyoshi Nakada  <nobu@r...>
 
 	* hash.c (env_enc_str_new): make string for an environment

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

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