diff options
| author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-01 07:59:21 +0000 |
|---|---|---|
| committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-01 07:59:21 +0000 |
| commit | 442211a6239c3801c3dcf9a904a156f93ffaf166 (patch) | |
| tree | 6d1a8422361f2e00edbd09aae7c8dfb12bad4966 /include/ruby | |
| parent | 8b7408610e66ea8394d46fd0b3f3959ed59f051d (diff) | |
| download | ruby-442211a6239c3801c3dcf9a904a156f93ffaf166.tar.gz ruby-442211a6239c3801c3dcf9a904a156f93ffaf166.tar.xz ruby-442211a6239c3801c3dcf9a904a156f93ffaf166.zip | |
* include/ruby/st.h (struct st_table): type of bit-field
'num_entries' is a GCC extension
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
| -rw-r--r-- | include/ruby/st.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ruby/st.h b/include/ruby/st.h index 199d67e41..d23f761e7 100644 --- a/include/ruby/st.h +++ b/include/ruby/st.h @@ -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; |
