summaryrefslogtreecommitdiffhomepage
path: root/src/st.c
diff options
context:
space:
mode:
authorMitchell Blank Jr <[email protected]>2012-05-19 23:16:54 -0700
committerMitchell Blank Jr <[email protected]>2012-05-19 23:16:54 -0700
commit4ebd0361e4cc6edb0483f3280db50fa56621f0fc (patch)
tree5c06dbb9150f0bcbbfcdd01ca026dbe96bde6279 /src/st.c
parent3471e2b1340cb84504272da26051f149f350ee94 (diff)
downloadmruby-4ebd0361e4cc6edb0483f3280db50fa56621f0fc.tar.gz
mruby-4ebd0361e4cc6edb0483f3280db50fa56621f0fc.zip
Helper functions for st_foreach() return "enum st_retval" not "int"
Just making this a bit more consistent throughout the code
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);