diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-09-26 00:19:03 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-09-26 00:19:03 +0000 |
commit | 20ae79b0c26e2b9ee9441728353f27c571507a4d (patch) | |
tree | dbf12b33d1bcf6e65a9e01f98a2fc9dff4231de8 | |
parent | 6823334c214d9b83ea71de67ab6c5ce1c4fbdfab (diff) | |
download | ruby-20ae79b0c26e2b9ee9441728353f27c571507a4d.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | configure.in | 23 | ||||
-rw-r--r-- | dir.c | 7 | ||||
-rw-r--r-- | dln.c | 40 | ||||
-rw-r--r-- | ext/tk/extconf.rb | 2 | ||||
-rw-r--r-- | include/ruby/defines.h | 70 |
6 files changed, 15 insertions, 135 deletions
@@ -1,3 +1,11 @@ +Mon Sep 26 09:07:46 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> + + * 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. + Mon Sep 26 09:02:49 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> * configure.in: remove a code for human68k. it's no longer diff --git a/configure.in b/configure.in index 64740c6a76..5e6d470b79 100644 --- a/configure.in +++ b/configure.in @@ -1965,7 +1965,7 @@ if test "$with_dln_a_out" != yes; then AC_MSG_CHECKING(whether OS depend dynamic link works) if test "$GCC" = yes; then AS_CASE(["$target_os"], - [nextstep*|openstep*|rhapsody*|darwin*], [ + [darwin*], [ # The -fno-common is needed if we wish to embed the Ruby interpreter # into a plugin module of some project (as opposed to embedding it # within the project's application). The -I/usr/local/include is @@ -2054,15 +2054,6 @@ if test "$with_dln_a_out" != yes; then LDFLAGS="$LDFLAGS -Wl,-E" fi rb_cv_dlopen=yes], - [nextstep*], [ : ${LDSHARED='$(CC) -r -nostdlib'} - LDFLAGS="$LDFLAGS -u libsys_s" - rb_cv_dlopen=yes], - [openstep*], [ : ${LDSHARED='$(CC) -dynamic -bundle -undefined suppress'} - : ${LDFLAGS=""} - rb_cv_dlopen=yes], - [rhapsody*], [ : ${LDSHARED='$(CC) -dynamic -bundle -undefined suppress'} - : ${LDFLAGS=""} - rb_cv_dlopen=yes], [darwin*], [ : ${LDSHARED='$(CC) -dynamic -bundle'} : ${DLDFLAGS="${linker_flag}-undefined${linker_flag:+,}dynamic_lookup ${linker_flag}-multiply_defined${linker_flag:+,}suppress ${linker_flag}-flat_namespace"} : ${LDFLAGS=""} @@ -2182,7 +2173,7 @@ else AS_CASE(["$target_os"], [hpux*], [ DLEXT=sl], - [nextstep*|openstep*|rhapsody*|darwin*], [ + [darwin*], [ RUBY_APPEND_OPTION(XLDFLAGS, [-Wl,-u,_objc_msgSend]) DLEXT=bundle], [os2-emx*], [ @@ -2220,7 +2211,7 @@ fi AS_CASE(["$target_os"], [linux* | gnu* | k*bsd*-gnu | kopensolaris*-gnu], [ STRIP="$STRIP -S -x"], - [nextstep* | openstep* | rhapsody* | darwin*], [ + [darwin*], [ STRIP="$STRIP -A -n"]) AC_ARG_WITH(ext, @@ -2288,7 +2279,7 @@ LIBRUBYARG='$(LIBRUBYARG_STATIC)' SOLIBS= AS_CASE(["$target_os"], - [cygwin*|mingw*|beos*|haiku*|openstep*|nextstep*|rhapsody*|darwin*|os2-emx*], [ + [cygwin*|mingw*|beos*|haiku*|darwin*|os2-emx*], [ : ${DLDLIBS=""} ], [ @@ -2480,12 +2471,6 @@ AS_CASE(["$target_os"], [netbsd*], [ RUBY_APPEND_OPTION(CFLAGS, -pipe) ], - [nextstep*|openstep*], [ - RUBY_APPEND_OPTION(CPPFLAGS, -I/usr/local/include) - ], - [rhapsody*], [ - RUBY_APPEND_OPTIONS(CFLAGS, -pipe -no-precomp) - ], [darwin*], [ RUBY_APPEND_OPTION(CFLAGS, -pipe) ], @@ -30,12 +30,7 @@ # define NAMLEN(dirent) strlen((dirent)->d_name) #else # define dirent direct -# if !defined __NeXT__ -# define NAMLEN(dirent) (dirent)->d_namlen -# else -# /* On some versions of NextStep, d_namlen is always zero, so avoid it. */ -# define NAMLEN(dirent) strlen((dirent)->d_name) -# endif +# define NAMLEN(dirent) (dirent)->d_namlen # if HAVE_SYS_NDIR_H # include <sys/ndir.h> # endif @@ -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__) diff --git a/ext/tk/extconf.rb b/ext/tk/extconf.rb index 2f68d01e7f..be7ebb2616 100644 --- a/ext/tk/extconf.rb +++ b/ext/tk/extconf.rb @@ -541,7 +541,7 @@ end def get_ext_list() exts = [CONFIG['DLEXT']] exts.concat %w(dll lib) if is_win32? - exts.concat %w(bundle dylib) if is_macosx? || /nextstep|openstep|rhapsody/ =~ RUBY_PLATFORM + exts.concat %w(bundle dylib) if is_macosx? if enable_config("shared") == false [CONFIG['LIBEXT'], "a"].concat exts diff --git a/include/ruby/defines.h b/include/ruby/defines.h index ea38dc3689..c81efd56fd 100644 --- a/include/ruby/defines.h +++ b/include/ruby/defines.h @@ -149,76 +149,6 @@ void xfree(void*); #endif #endif -#ifdef __NeXT__ -/* NextStep, OpenStep, Rhapsody */ -#ifndef S_IRUSR -#define S_IRUSR 0000400 /* read permission, owner */ -#endif -#ifndef S_IRGRP -#define S_IRGRP 0000040 /* read permission, group */ -#endif -#ifndef S_IROTH -#define S_IROTH 0000004 /* read permission, other */ -#endif -#ifndef S_IWUSR -#define S_IWUSR 0000200 /* write permission, owner */ -#endif -#ifndef S_IWGRP -#define S_IWGRP 0000020 /* write permission, group */ -#endif -#ifndef S_IWOTH -#define S_IWOTH 0000002 /* write permission, other */ -#endif -#ifndef S_IXUSR -#define S_IXUSR 0000100 /* execute/search permission, owner */ -#endif -#ifndef S_IXGRP -#define S_IXGRP 0000010 /* execute/search permission, group */ -#endif -#ifndef S_IXOTH -#define S_IXOTH 0000001 /* execute/search permission, other */ -#endif -#ifndef S_IRWXU -#define S_IRWXU 0000700 /* read, write, execute permissions, owner */ -#endif -#ifndef S_IRWXG -#define S_IRWXG 0000070 /* read, write, execute permissions, group */ -#endif -#ifndef S_IRWXO -#define S_IRWXO 0000007 /* read, write, execute permissions, other */ -#endif -#ifndef S_ISBLK -#define S_ISBLK(mode) (((mode) & (0170000)) == (0060000)) -#endif -#ifndef S_ISCHR -#define S_ISCHR(mode) (((mode) & (0170000)) == (0020000)) -#endif -#ifndef S_ISDIR -#define S_ISDIR(mode) (((mode) & (0170000)) == (0040000)) -#endif -#ifndef S_ISFIFO -#define S_ISFIFO(mode) (((mode) & (0170000)) == (0010000)) -#endif -#ifndef S_ISREG -#define S_ISREG(mode) (((mode) & (0170000)) == (0100000)) -#endif -#ifndef __APPLE__ -/* NextStep, OpenStep (but not Rhapsody) */ -#ifndef GETPGRP_VOID -#define GETPGRP_VOID 1 -#endif -#ifndef WNOHANG -#define WNOHANG 01 -#endif -#ifndef WUNTRACED -#define WUNTRACED 02 -#endif -#ifndef X_OK -#define X_OK 1 -#endif -#endif /* __APPLE__ */ -#endif /* NeXT */ - #ifdef _WIN32 #include "ruby/win32.h" #endif |