summaryrefslogtreecommitdiff
path: root/include/ruby/st.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-05 01:06:49 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-05 01:06:49 +0000
commitba563e4a410eb8f01709cc2f37a42361f5998311 (patch)
treea254794a8cd36c4f85f6aca7a555455cecc85203 /include/ruby/st.h
parent151d11b5b12b0dc9222e93c8e1c668ccd15d931d (diff)
* include/ruby/st.h, st.c (st_init_table, st_init_table_with_size):
constified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/st.h')
-rw-r--r--include/ruby/st.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/ruby/st.h b/include/ruby/st.h
index d6d4479b3e..2742f8fd97 100644
--- a/include/ruby/st.h
+++ b/include/ruby/st.h
@@ -30,7 +30,7 @@ struct st_hash_type {
};
struct st_table {
- struct st_hash_type *type;
+ const struct st_hash_type *type;
int num_bins;
int num_entries;
struct st_table_entry **bins;
@@ -51,8 +51,8 @@ enum st_retval {ST_CONTINUE, ST_STOP, ST_DELETE, ST_CHECK};
# endif
#endif
-st_table *st_init_table(struct st_hash_type *);
-st_table *st_init_table_with_size(struct st_hash_type *, int);
+st_table *st_init_table(const struct st_hash_type *);
+st_table *st_init_table_with_size(const struct st_hash_type *, int);
st_table *st_init_numtable(void);
st_table *st_init_numtable_with_size(int);
st_table *st_init_strtable(void);