diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-12-27 13:04:30 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-12-27 13:04:30 +0000 |
commit | 2f6d8bdc94926a625f769f72b890ed78553c928f (patch) | |
tree | 1fa4e037a9a8ed2601142ef2150e5c613ada59ca /include | |
parent | 7f649d10ed8055214e0062800b2d117453b2304f (diff) | |
download | ruby-2f6d8bdc94926a625f769f72b890ed78553c928f.tar.gz |
* st.c (st_update): new function to lookup the given key and
update the value. [ruby-dev:44998]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/st.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/st.h b/include/ruby/st.h index 50f2a75328..ff3da2a9c2 100644 --- a/include/ruby/st.h +++ b/include/ruby/st.h @@ -113,6 +113,7 @@ int st_insert(st_table *, st_data_t, st_data_t); int st_insert2(st_table *, st_data_t, st_data_t, st_data_t (*)(st_data_t)); int st_lookup(st_table *, st_data_t, st_data_t *); int st_get_key(st_table *, st_data_t, st_data_t *); +int st_update(st_table *table, st_data_t key, int (*func)(st_data_t key, st_data_t *value, st_data_t arg), st_data_t arg); int st_foreach(st_table *, int (*)(ANYARGS), st_data_t); int st_reverse_foreach(st_table *, int (*)(ANYARGS), st_data_t); void st_add_direct(st_table *, st_data_t, st_data_t); |