Skip to content

Commit

Permalink
* numeric.c: Good-by Borland-C.
Browse files Browse the repository at this point in the history
* 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.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
kosaki committed Oct 18, 2015
1 parent e91baf5 commit 3a48e12
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 21 deletions.
15 changes: 15 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
Sun Oct 18 11:04:36 2015 KOSAKI Motohiro <kosaki.motohiro@gmail.com>

* 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@gmail.com>

* dln.c: simplify #ifdef. _WIN32 and __CYGWIN__ are exclusive.
Expand Down
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -188,3 +188,4 @@ with all sufficient information, see the ChangeLog file.

=== Implementation changes
* OS/2 is no longer supported
* Borland-C is no longer supported
2 changes: 1 addition & 1 deletion dln.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ dln_loaderror(const char *format, ...)
# 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 ""
Expand Down
2 changes: 1 addition & 1 deletion ext/tk/tcltklib.c
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ Tcl_SetVar2Ex(interp, name1, name2, newValObj, flags)
/* 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.
Expand Down
4 changes: 2 additions & 2 deletions gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ typedef struct gc_profile_record {
#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

Expand Down Expand Up @@ -418,7 +418,7 @@ typedef struct RVALUE {
#endif
} RVALUE;

#if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__CYGWIN__)
#if defined(_MSC_VER) || defined(__CYGWIN__)
#pragma pack(pop)
#endif

Expand Down
2 changes: 1 addition & 1 deletion include/ruby/backward/classext.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#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

Expand Down
2 changes: 1 addition & 1 deletion include/ruby/backward/rubyio.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#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"
2 changes: 1 addition & 1 deletion include/ruby/backward/rubysig.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#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

Expand Down
2 changes: 1 addition & 1 deletion include/ruby/backward/st.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#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"
4 changes: 0 additions & 4 deletions numeric.c
Original file line number Diff line number Diff line change
Expand Up @@ -4154,10 +4154,6 @@ Init_Numeric(void)
#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");
Expand Down
7 changes: 0 additions & 7 deletions win32/dir.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
#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)
Expand Down
2 changes: 0 additions & 2 deletions win32/resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,8 @@ def icons.find(path)
f.binmode if /mingw/ =~ RUBY_PLATFORM

f.print <<EOF
#ifndef __BORLANDC__
#include <windows.h>
#include <winver.h>
#endif
#{icon || ''}
VS_VERSION_INFO VERSIONINFO
Expand Down

0 comments on commit 3a48e12

Please sign in to comment.