From ba563e4a410eb8f01709cc2f37a42361f5998311 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 5 Jul 2007 01:06:49 +0000 Subject: * 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 --- include/ruby/st.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/ruby') 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); -- cgit v1.2.3