summaryrefslogtreecommitdiff
path: root/dln.h
diff options
context:
space:
mode:
Diffstat (limited to 'dln.h')
-rw-r--r--dln.h37
1 files changed, 20 insertions, 17 deletions
diff --git a/dln.h b/dln.h
index 7af1f63a9d..711abf592c 100644
--- a/dln.h
+++ b/dln.h
@@ -1,30 +1,33 @@
-/************************************************
+#ifndef DLN_H
+#define DLN_H
+/**********************************************************************
dln.h -
$Author$
- $Revision$
- $Date$
created at: Wed Jan 19 16:53:09 JST 1994
-************************************************/
-#ifndef DLN_H
-#define DLN_H
+ Copyright (C) 1993-2007 Yukihiro Matsumoto
-#ifndef _
-#ifndef __STDC__
-# define _(args) ()
-#else
-# define _(args) args
+**********************************************************************/
+
+#include "ruby/defines.h" /* for RUBY_SYMBOL_EXPORT_BEGIN */
+
+RUBY_SYMBOL_EXPORT_BEGIN
+
+#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 _((char*,char*));
-char *dln_find_file _((char*,char*));
+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);
+void *dln_load(const char*);
+void *dln_load_feature(const char*, const char*);
+void *dln_symbol(void*,const char*);
-#ifdef USE_DLN_A_OUT
-extern char *dln_argv0;
-#endif
+RUBY_SYMBOL_EXPORT_END
-void dln_load _((char*));
#endif