summaryrefslogtreecommitdiffhomepage
path: root/src/st.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2012-05-20 06:09:31 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2012-05-20 06:09:31 -0700
commitac31b58fe85363e6848cbbbdb6125cce1a2f6152 (patch)
tree7dbd5269aa3694ae69da7774a9be5cbd0aef09eb /src/st.c
parent89865740e4bc7f496d1abb306cb8d8d5effefa39 (diff)
parent606a1665c5cfff42622687d693b9362b6c1b663a (diff)
downloadmruby-ac31b58fe85363e6848cbbbdb6125cce1a2f6152.tar.gz
mruby-ac31b58fe85363e6848cbbbdb6125cce1a2f6152.zip
Merge pull request #169 from mitchblank/cplusplus
Part 1 of C++ compilability
Diffstat (limited to 'src/st.c')
-rw-r--r--src/st.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/st.c b/src/st.c
index 777a03bd2..c0597395d 100644
--- a/src/st.c
+++ b/src/st.c
@@ -404,7 +404,7 @@ st_delete(register st_table *table, register st_data_t *key, st_data_t *value)
}
int
-st_foreach(st_table *table, int (*func)(ANYARGS), st_data_t arg)
+st_foreach(st_table *table, enum st_retval (*func)(ANYARGS), st_data_t arg)
{
st_table_entry *ptr, **last, *tmp;
enum st_retval retval;
@@ -572,7 +572,7 @@ numhash(long n)
}
#if 0
-static int
+static enum st_retval
f(st_data_t key, st_data_t val, st_data_t a)
{
printf("tbl=%p key=%s val=%s\n", (st_table*)a, (char*)key, (char*)val);