1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2016-08-06 00:35:33 +00:00
parent b46a8a5476
commit a62dcd947c
3 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Sat Aug 6 09:35:30 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
* 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@ruby-lang.org>
* hash.c (env_enc_str_new): make string for an environment

View file

@ -720,6 +720,7 @@ list_id_table_delete(struct list_id_table *tbl, ID id)
#define FOREACH_LAST() do { \
switch (ret) { \
case ID_TABLE_ITERATOR_RESULT_END: \
case ID_TABLE_CONTINUE: \
case ID_TABLE_STOP: \
break; \

View file

@ -9,6 +9,7 @@ enum rb_id_table_iterator_result {
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);