diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-09 04:10:42 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-09 04:10:42 +0000 |
| commit | ac4f9724a87a8ee1c423b6349ec344a906fd7e53 (patch) | |
| tree | beb726ffa5258cb4a223dcc1fe98c26b7ace5fcc | |
| parent | a34ecb202826aaba1b39b3b6e0a5a2b9122cec16 (diff) | |
| download | ruby-ac4f9724a87a8ee1c423b6349ec344a906fd7e53.tar.gz ruby-ac4f9724a87a8ee1c423b6349ec344a906fd7e53.tar.xz ruby-ac4f9724a87a8ee1c423b6349ec344a906fd7e53.zip | |
* st.c (st_free_table): constified.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | include/ruby/st.h | 2 | ||||
| -rw-r--r-- | st.c | 2 |
3 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Wed Sep 9 13:10:41 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * st.c (st_free_table): constified. + Wed Sep 9 13:09:07 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> * dir.c (dir_data_type): typed. diff --git a/include/ruby/st.h b/include/ruby/st.h index f9c572e10..412a0129c 100644 --- a/include/ruby/st.h +++ b/include/ruby/st.h @@ -107,7 +107,7 @@ int st_numcmp(st_data_t, st_data_t); st_index_t st_numhash(st_data_t); int st_strcasecmp(const char *s1, const char *s2); int st_strncasecmp(const char *s1, const char *s2, size_t n); -size_t st_memsize(st_table *); +size_t st_memsize(const st_table *); #if defined(__cplusplus) #if 0 @@ -256,7 +256,7 @@ st_free_table(st_table *table) } size_t -st_memsize(st_table *table) +st_memsize(const st_table *table) { if (table->entries_packed) { return table->num_bins * sizeof (void *) + sizeof(st_table); |
