summaryrefslogtreecommitdiffstats
path: root/st.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-03 03:25:29 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-03 03:25:29 +0000
commita9278637aac2aaaaa1eb57e594402f36e3382bbb (patch)
tree8cfe9e2994fc4905952182a49981bbdf2165aac4 /st.h
parentc19718bd9891968c84733ac259d1498ea36c4bf2 (diff)
downloadruby-a9278637aac2aaaaa1eb57e594402f36e3382bbb.tar.gz
ruby-a9278637aac2aaaaa1eb57e594402f36e3382bbb.tar.xz
ruby-a9278637aac2aaaaa1eb57e594402f36e3382bbb.zip
* st.h: fix prototype for C++.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'st.h')
-rw-r--r--st.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/st.h b/st.h
index 5f6cf991c..bc12624b9 100644
--- a/st.h
+++ b/st.h
@@ -30,6 +30,13 @@ enum st_retval {ST_CONTINUE, ST_STOP, ST_DELETE, ST_CHECK};
#ifndef _
# define _(args) args
#endif
+#ifndef ANYARGS
+# ifdef __cplusplus
+# define ANYARGS ...
+# else
+# define ANYARGS
+# endif
+#endif
st_table *st_init_table _((struct st_hash_type *));
st_table *st_init_table_with_size _((struct st_hash_type *, int));
@@ -41,7 +48,7 @@ int st_delete _((st_table *, st_data_t *, st_data_t *));
int st_delete_safe _((st_table *, st_data_t *, st_data_t *, st_data_t));
int st_insert _((st_table *, st_data_t, st_data_t));
int st_lookup _((st_table *, st_data_t, st_data_t *));
-void st_foreach _((st_table *, int (*)(), st_data_t));
+void st_foreach _((st_table *, int (*)(ANYARGS), st_data_t));
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));