summaryrefslogtreecommitdiff
path: root/include/ruby/st.h
diff options
context:
space:
mode:
authorglass <glass@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-10 12:06:01 +0000
committerglass <glass@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-10 12:06:01 +0000
commit026955e37517d07679ea8044d939400d6e9beaaf (patch)
tree0892965fb6152241df67902c60b6918a1f7cac13 /include/ruby/st.h
parent4599d3efd7bfda591fd29e5647af2d5aa8be486c (diff)
downloadruby-026955e37517d07679ea8044d939400d6e9beaaf.tar.gz
* st.c (st_keys): define st_keys() for performance improvement of
Hash#keys and Array#uniq. * st.h: ditto. * hash.c (rb_hash_keys): use st_keys(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/st.h')
-rw-r--r--include/ruby/st.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/st.h b/include/ruby/st.h
index e71301b519..5968a1fc22 100644
--- a/include/ruby/st.h
+++ b/include/ruby/st.h
@@ -112,6 +112,7 @@ int st_update(st_table *table, st_data_t key, st_update_callback_func *func, st_
int st_foreach(st_table *, int (*)(ANYARGS), st_data_t);
int st_foreach_check(st_table *, int (*)(ANYARGS), st_data_t, st_data_t);
int st_reverse_foreach(st_table *, int (*)(ANYARGS), st_data_t);
+VALUE st_keys(st_table *table);
void st_add_direct(st_table *, st_data_t, st_data_t);
void st_free_table(st_table *);
void st_cleanup_safe(st_table *, st_data_t);