[前][次][番号順一覧][スレッド一覧]

ruby-changes:13065

From: nobu <ko1@a...>
Date: Wed, 9 Sep 2009 13:11:23 +0900 (JST)
Subject: [ruby-changes:13065] Ruby:r24813 (trunk): * st.c (st_free_table): constified.

nobu	2009-09-09 13:10:42 +0900 (Wed, 09 Sep 2009)

  New Revision: 24813

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24813

  Log:
    * st.c (st_free_table): constified.

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/st.h
    trunk/st.c

Index: include/ruby/st.h
===================================================================
--- include/ruby/st.h	(revision 24812)
+++ include/ruby/st.h	(revision 24813)
@@ -107,7 +107,7 @@
 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
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 24812)
+++ ChangeLog	(revision 24813)
@@ -1,3 +1,7 @@
+Wed Sep  9 13:10:41 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* st.c (st_free_table): constified.
+
 Wed Sep  9 13:09:07 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* dir.c (dir_data_type): typed.
Index: st.c
===================================================================
--- st.c	(revision 24812)
+++ st.c	(revision 24813)
@@ -256,7 +256,7 @@
 }
 
 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);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]