summaryrefslogtreecommitdiffstats
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
commit4614a125cca9aa314ecccb34589b69aa762721d6 (patch)
treea254794a8cd36c4f85f6aca7a555455cecc85203 /include/ruby/st.h
parente54f12b8d237fd6706b48af8b3f99a17ccfb1481 (diff)
downloadruby-4614a125cca9aa314ecccb34589b69aa762721d6.tar.gz
ruby-4614a125cca9aa314ecccb34589b69aa762721d6.tar.xz
ruby-4614a125cca9aa314ecccb34589b69aa762721d6.zip
* include/ruby/st.h, st.c (st_init_table, st_init_table_with_size):
constified. git-svn-id: http://svn.ruby-lang.org/repos/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 d6d4479b3..2742f8fd9 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);