summaryrefslogtreecommitdiff
path: root/dln.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-30 01:58:51 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-30 01:58:51 (GMT)
commit1f500f03685c9e6de1d44e0fef858b066b3cdf8b (patch)
tree03cfdbdc013bf5ea68d2b8a8aa03dd346f8e54be /dln.h
parent69bbcbe4c1401f98b5de299c872828d6aeae2f8e (diff)
dln.c: extra arguments
* dln.h (DLN_FIND_EXTRA_ARG, DLN_FIND_EXTRA_ARG_DECL): allow extra arguments to dln_find_{exe,file}_r(). * dln_find.c (dln_find_exe_r, dln_find_file_r): add extract arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dln.h')
-rw-r--r--dln.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/dln.h b/dln.h
index 7625171..d98b260 100644
--- a/dln.h
+++ b/dln.h
@@ -30,8 +30,15 @@
RUBY_SYMBOL_EXPORT_BEGIN
-char *dln_find_exe_r(const char*,const char*,char*,size_t);
-char *dln_find_file_r(const char*,const char*,char*,size_t);
+#ifndef DLN_FIND_EXTRA_ARG
+#define DLN_FIND_EXTRA_ARG
+#endif
+#ifndef DLN_FIND_EXTRA_ARG_DECL
+#define DLN_FIND_EXTRA_ARG_DECL
+#endif
+
+char *dln_find_exe_r(const char*,const char*,char*,size_t DLN_FIND_EXTRA_ARG_DECL);
+char *dln_find_file_r(const char*,const char*,char*,size_t DLN_FIND_EXTRA_ARG_DECL);
#ifdef USE_DLN_A_OUT
extern char *dln_argv0;