[前][次][番号順一覧][スレッド一覧]

ruby-changes:40087

From: kosaki <ko1@a...>
Date: Sun, 18 Oct 2015 11:10:51 +0900 (JST)
Subject: [ruby-changes:40087] kosaki:r52168 (trunk): * numeric.c: Good-by Borland-C.

kosaki	2015-10-18 11:10:34 +0900 (Sun, 18 Oct 2015)

  New Revision: 52168

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52168

  Log:
    * numeric.c: Good-by Borland-C.
    * include/ruby/backward/rubyio.h: ditto.
    * include/ruby/backward/st.h: ditto.
    * include/ruby/backward/util.h: ditto.
    * include/ruby/backward/rubysig.h: ditto.
    * include/ruby/backward/classext.h: ditto.
    * dln.c: ditto.
    * gc.c: ditto.
    * win32/resource.rb: ditto.
    * win32/dir.h: ditto.
    * ext/tk/tcltklib.c: ditto.
    * NEWS: announce that Borland-C is no longer supported.

  Modified files:
    trunk/ChangeLog
    trunk/NEWS
    trunk/dln.c
    trunk/ext/tk/tcltklib.c
    trunk/gc.c
    trunk/include/ruby/backward/classext.h
    trunk/include/ruby/backward/rubyio.h
    trunk/include/ruby/backward/rubysig.h
    trunk/include/ruby/backward/st.h
    trunk/numeric.c
    trunk/win32/dir.h
    trunk/win32/resource.rb
Index: include/ruby/backward/rubyio.h
===================================================================
--- include/ruby/backward/rubyio.h	(revision 52167)
+++ include/ruby/backward/rubyio.h	(revision 52168)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/include/ruby/backward/rubyio.h#L1
 #if   defined __GNUC__
 #warning use "ruby/io.h" instead of "rubyio.h"
-#elif defined _MSC_VER || defined __BORLANDC__
+#elif defined _MSC_VER
 #pragma message("warning: use \"ruby/io.h\" instead of \"rubyio.h\"")
 #endif
 #include "ruby/io.h"
Index: include/ruby/backward/rubysig.h
===================================================================
--- include/ruby/backward/rubysig.h	(revision 52167)
+++ include/ruby/backward/rubysig.h	(revision 52168)
@@ -12,7 +12,7 @@ https://github.com/ruby/ruby/blob/trunk/include/ruby/backward/rubysig.h#L12
 
 #if   defined __GNUC__
 #warning rubysig.h is obsolete
-#elif defined _MSC_VER || defined __BORLANDC__
+#elif defined _MSC_VER
 #pragma message("warning: rubysig.h is obsolete")
 #endif
 
Index: include/ruby/backward/classext.h
===================================================================
--- include/ruby/backward/classext.h	(revision 52167)
+++ include/ruby/backward/classext.h	(revision 52168)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/include/ruby/backward/classext.h#L1
 #if   defined __GNUC__
 #warning use of RClass internals is deprecated
-#elif defined _MSC_VER || defined __BORLANDC__
+#elif defined _MSC_VER
 #pragma message("warning: use of RClass internals is deprecated")
 #endif
 
Index: include/ruby/backward/st.h
===================================================================
--- include/ruby/backward/st.h	(revision 52167)
+++ include/ruby/backward/st.h	(revision 52168)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/include/ruby/backward/st.h#L1
 #if   defined __GNUC__
 #warning use "ruby/st.h" instead of bare "st.h"
-#elif defined _MSC_VER || defined __BORLANDC__
+#elif defined _MSC_VER
 #pragma message("warning: use \"ruby/st.h\" instead of bare \"st.h\"")
 #endif
 #include "ruby/st.h"
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52167)
+++ ChangeLog	(revision 52168)
@@ -1,3 +1,18 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Oct 18 11:04:36 2015  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* numeric.c: Good-by Borland-C.
+	* include/ruby/backward/rubyio.h: ditto.
+	* include/ruby/backward/st.h: ditto.
+	* include/ruby/backward/util.h: ditto.
+	* include/ruby/backward/rubysig.h: ditto.
+	* include/ruby/backward/classext.h: ditto.
+	* dln.c: ditto.
+	* gc.c: ditto.
+	* win32/resource.rb: ditto.
+	* win32/dir.h: ditto.
+	* ext/tk/tcltklib.c: ditto.
+	* NEWS: announce that Borland-C is no longer supported.
+
 Sun Oct 18 10:54:52 2015  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* dln.c: simplify #ifdef. _WIN32 and __CYGWIN__ are exclusive.
Index: win32/resource.rb
===================================================================
--- win32/resource.rb	(revision 52167)
+++ win32/resource.rb	(revision 52168)
@@ -56,10 +56,8 @@ end https://github.com/ruby/ruby/blob/trunk/win32/resource.rb#L56
     f.binmode if /mingw/ =~ RUBY_PLATFORM
 
     f.print <<EOF
-#ifndef __BORLANDC__
 #include <windows.h>
 #include <winver.h>
-#endif
 
 #{icon || ''}
 VS_VERSION_INFO VERSIONINFO
Index: win32/dir.h
===================================================================
--- win32/dir.h	(revision 52167)
+++ win32/dir.h	(revision 52168)
@@ -1,13 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/win32/dir.h#L1
 #ifndef RUBY_WIN32_DIR_H
 #define RUBY_WIN32_DIR_H
 
-#ifdef __BORLANDC__
-#  ifndef WIN32_DIR_H_
-#    define WIN32_DIR_H_
-#    include <sys/types.h>
-#  endif
-#endif
-
 #define DT_UNKNOWN 0
 #define DT_DIR (S_IFDIR>>12)
 #define DT_REG (S_IFREG>>12)
Index: gc.c
===================================================================
--- gc.c	(revision 52167)
+++ gc.c	(revision 52168)
@@ -369,7 +369,7 @@ typedef struct gc_profile_record { https://github.com/ruby/ruby/blob/trunk/gc.c#L369
 #endif
 } gc_profile_record;
 
-#if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__CYGWIN__)
+#if defined(_MSC_VER) || defined(__CYGWIN__)
 #pragma pack(push, 1) /* magic for reducing sizeof(RVALUE): 24 -> 20 */
 #endif
 
@@ -418,7 +418,7 @@ typedef struct RVALUE { https://github.com/ruby/ruby/blob/trunk/gc.c#L418
 #endif
 } RVALUE;
 
-#if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__CYGWIN__)
+#if defined(_MSC_VER) || defined(__CYGWIN__)
 #pragma pack(pop)
 #endif
 
Index: dln.c
===================================================================
--- dln.c	(revision 52167)
+++ dln.c	(revision 52168)
@@ -106,7 +106,7 @@ dln_loaderror(const char *format, ...) https://github.com/ruby/ruby/blob/trunk/dln.c#L106
 # define USE_DLN_DLOPEN
 #endif
 
-#if defined(__hp9000s300) || ((defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)) && !defined(__ELF__)) || defined(__BORLANDC__) || defined(NeXT) || defined(__WATCOMC__) || defined(MACOSX_DYLD)
+#if defined(__hp9000s300) || ((defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)) && !defined(__ELF__)) || defined(NeXT) || defined(__WATCOMC__) || defined(MACOSX_DYLD)
 # define EXTERNAL_PREFIX "_"
 #else
 # define EXTERNAL_PREFIX ""
Index: ext/tk/tcltklib.c
===================================================================
--- ext/tk/tcltklib.c	(revision 52167)
+++ ext/tk/tcltklib.c	(revision 52168)
@@ -394,7 +394,7 @@ Tcl_SetVar2Ex(interp, name1, name2, newV https://github.com/ruby/ruby/blob/trunk/ext/tk/tcltklib.c#L394
 /* from tkAppInit.c */
 
 #if TCL_MAJOR_VERSION < 8 || (TCL_MAJOR_VERSION == 8 && TCL_MINOR_VERSION < 4)
-#  if !defined __MINGW32__ && !defined __BORLANDC__
+#  if !defined __MINGW32__
 /*
  * The following variable is a special hack that is needed in order for
  * Sun shared libraries to be used for Tcl.
Index: NEWS
===================================================================
--- NEWS	(revision 52167)
+++ NEWS	(revision 52168)
@@ -188,3 +188,4 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/NEWS#L188
 
 === Implementation changes
 * OS/2 is no longer supported
+* Borland-C is no longer supported
\ No newline at end of file
Index: numeric.c
===================================================================
--- numeric.c	(revision 52167)
+++ numeric.c	(revision 52168)
@@ -4154,10 +4154,6 @@ Init_Numeric(void) https://github.com/ruby/ruby/blob/trunk/numeric.c#L4154
 #elif defined(_UNICOSMP)
     /* Turn off floating point exceptions for divide by zero, etc. */
     _set_Creg(0, 0);
-#elif defined(__BORLANDC__)
-    /* Turn off floating point exceptions for overflow, etc. */
-    _control87(MCW_EM, MCW_EM);
-    _control87(_control87(0,0),0x1FFF);
 #endif
     id_coerce = rb_intern("coerce");
     id_div = rb_intern("div");

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]