From 20ae79b0c26e2b9ee9441728353f27c571507a4d Mon Sep 17 00:00:00 2001 From: kosaki Date: Mon, 26 Sep 2011 00:19:03 +0000 Subject: * include/ruby/defines.h: remove NextStep, OpenStep, Rhapsody support. Last activity of their OSs are 7 years ago. * configure.in: ditto. * dir.c: ditto. * ext/tk/extconf.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- dln.c | 40 +--------------------------------------- 1 file changed, 1 insertion(+), 39 deletions(-) (limited to 'dln.c') diff --git a/dln.c b/dln.c index 961592d7b0..7d5d6b8543 100644 --- a/dln.c +++ b/dln.c @@ -1383,7 +1383,7 @@ dln_load(const char *file) } #endif /* _AIX */ -#if defined(NeXT) || defined(MACOSX_DYLD) +#if defined(MACOSX_DYLD) #define DLN_DEFINED /*---------------------------------------------------- By SHIROYAMA Takayuki Psi@fortune.nest.or.jp @@ -1394,43 +1394,6 @@ dln_load(const char *file) sunshine@sunshineco.com, and... Miss ARAI Akino(^^;) ----------------------------------------------------*/ -#if defined(NeXT) && (NS_TARGET_MAJOR < 4)/* NeXTSTEP rld functions */ - - { - NXStream* s; - unsigned long init_address; - char *object_files[2] = {NULL, NULL}; - - void (*init_fct)(); - - object_files[0] = (char*)file; - - s = NXOpenFile(2,NX_WRITEONLY); - - /* Load object file, if return value ==0 , load failed*/ - if(rld_load(s, NULL, object_files, NULL) == 0) { - NXFlush(s); - NXClose(s); - dln_loaderror("Failed to load %.200s", file); - } - - /* lookup the initial function */ - if(rld_lookup(s, buf, &init_address) == 0) { - NXFlush(s); - NXClose(s); - dln_loaderror("Failed to lookup Init function %.200s", file); - } - - NXFlush(s); - NXClose(s); - - /* Cannot call *init_address directory, so copy this value to - function pointer */ - init_fct = (void(*)())init_address; - (*init_fct)(); - return (void*)init_address; - } -#else/* OPENSTEP dyld functions */ { int dyld_result; NSObjectFileImage obj_file; /* handle, but not use it */ @@ -1457,7 +1420,6 @@ dln_load(const char *file) return (void*)init_fct; } -#endif /* rld or dyld */ #endif #if defined(__BEOS__) || defined(__HAIKU__) -- cgit v1.2.3