summaryrefslogtreecommitdiffstats
path: root/dln.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-04 13:57:06 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-04 13:57:06 +0000
commit10f8ee308b43dcf4e42d3e9ab6bc701c578e74bc (patch)
treefed14f02c23978b6d2edd58b011c1329b9eb99d8 /dln.c
parentbffac137b66af3f0686df363fb01ff2a563d1298 (diff)
downloadruby-10f8ee308b43dcf4e42d3e9ab6bc701c578e74bc.tar.gz
ruby-10f8ee308b43dcf4e42d3e9ab6bc701c578e74bc.tar.xz
ruby-10f8ee308b43dcf4e42d3e9ab6bc701c578e74bc.zip
* dln.c: Ruby no longer supports VMS.
* error.c: ditto. * eval.c: ditto. * eval_intern.h: ditto. * include/ruby/defines.h: ditto. * include/ruby/ruby.h: ditto. * io.c: ditto. * process.c: ditto. * ruby.c: ditto. * vms/config.h: removed. * vms/vms.h: ditto. * vms/vmsruby_private.c: ditto. * vms/vmsruby_private.h: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dln.c')
-rw-r--r--dln.c36
1 files changed, 1 insertions, 35 deletions
diff --git a/dln.c b/dln.c
index dae0aa9c1..69f44a7ad 100644
--- a/dln.c
+++ b/dln.c
@@ -45,7 +45,7 @@ void *xrealloc();
#define free(x) xfree(x)
#include <stdio.h>
-#if defined(_WIN32) || defined(__VMS)
+#if defined(_WIN32)
#include "missing/file.h"
#endif
#include <sys/types.h>
@@ -70,11 +70,6 @@ void *xrealloc();
char *getenv();
#endif
-#if defined(__VMS)
-#pragma builtins
-#include <dlfcn.h>
-#endif
-
#if defined(__APPLE__) && defined(__MACH__) /* Mac OS X */
# if defined(HAVE_DLOPEN)
/* Mac OS X with dlopen (10.3 or later) */
@@ -1460,35 +1455,6 @@ dln_load(const char *file)
}
#endif /* __BEOS__*/
-#if defined(__VMS)
-#define DLN_DEFINED
- {
- void *handle, (*init_fct)();
- char *fname, *p1, *p2;
-
- fname = (char *)__alloca(strlen(file)+1);
- strcpy(fname,file);
- if (p1 = strrchr(fname,'/'))
- fname = p1 + 1;
- if (p2 = strrchr(fname,'.'))
- *p2 = '\0';
-
- if ((handle = (void*)dlopen(fname, 0)) == NULL) {
- error = dln_strerror();
- goto failed;
- }
-
- if ((init_fct = (void (*)())dlsym(handle, buf)) == NULL) {
- error = DLN_ERROR();
- dlclose(handle);
- goto failed;
- }
- /* Call the init code */
- (*init_fct)();
- return handle;
- }
-#endif /* __VMS */
-
#ifndef DLN_DEFINED
rb_notimplement();
#endif