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

* include/ruby/st.h (struct st_table): type of bit-field

'num_entries' is a GCC extension


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shyouhei 2008-07-01 07:59:21 +00:00
parent a739f59359
commit 6f88631baa
2 changed files with 7 additions and 1 deletions

View file

@ -1,4 +1,7 @@
Tue Jul 1 16:51:35 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
Tue Jul 1 16:57:44 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
* include/ruby/st.h (struct st_table): type of bit-field
'num_entries' is a GCC extension
* include/ruby/ruby.h (rb_intern): prefix __extnsion__ for
braced-groups within expressions.

View file

@ -56,6 +56,9 @@ struct st_table {
const struct st_hash_type *type;
st_index_t num_bins;
unsigned int entries_packed : 1;
#ifdef __GNUC__
__extension__
#endif
st_index_t num_entries : ST_INDEX_BITS - 1;
struct st_table_entry **bins;
struct st_table_entry *head;