From e8ee99ff1ae054c4edefb60083b11db5fe1c7429 Mon Sep 17 00:00:00 2001 From: yugui Date: Sat, 4 Oct 2008 13:57:06 +0000 Subject: * 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@19682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- dln.c | 36 +----------------------------------- 1 file changed, 1 insertion(+), 35 deletions(-) (limited to 'dln.c') diff --git a/dln.c b/dln.c index dae0aa9c13..69f44a7add 100644 --- a/dln.c +++ b/dln.c @@ -45,7 +45,7 @@ void *xrealloc(); #define free(x) xfree(x) #include -#if defined(_WIN32) || defined(__VMS) +#if defined(_WIN32) #include "missing/file.h" #endif #include @@ -70,11 +70,6 @@ void *xrealloc(); char *getenv(); #endif -#if defined(__VMS) -#pragma builtins -#include -#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 -- cgit v1.2.3