Skip to content

Commit a62dcd9

Browse files
committed
id_table.h: dummy sentinel
* id_table.h (rb_id_table_iterator_result): add dummy sentinel member because C standard prohibits a trailing comma. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent b46a8a5 commit a62dcd9

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

ChangeLog

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Sat Aug 6 09:35:30 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
2+
3+
* id_table.h (rb_id_table_iterator_result): add dummy sentinel
4+
member because C standard prohibits a trailing comma.
5+
16
Sat Aug 6 00:39:44 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
27

38
* hash.c (env_enc_str_new): make string for an environment

id_table.c

+1
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,7 @@ list_id_table_delete(struct list_id_table *tbl, ID id)
720720

721721
#define FOREACH_LAST() do { \
722722
switch (ret) { \
723+
case ID_TABLE_ITERATOR_RESULT_END: \
723724
case ID_TABLE_CONTINUE: \
724725
case ID_TABLE_STOP: \
725726
break; \

id_table.h

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ enum rb_id_table_iterator_result {
99
ID_TABLE_CONTINUE = ST_CONTINUE,
1010
ID_TABLE_STOP = ST_STOP,
1111
ID_TABLE_DELETE = ST_DELETE,
12+
ID_TABLE_ITERATOR_RESULT_END
1213
};
1314

1415
struct rb_id_table *rb_id_table_create(size_t size);

0 commit comments

Comments
 (0)