1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* include/ruby/win32.h, bcc32/Makefile.sub (config.h): bcc 5.8 has

stdint.h.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-08-05 07:39:21 +00:00
parent 49f7b3e8d1
commit 5133fc67a4
6 changed files with 29 additions and 24 deletions

View file

@ -1,3 +1,8 @@
Tue Aug 5 16:38:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* include/ruby/win32.h, bcc32/Makefile.sub (config.h): bcc 5.8 has
stdint.h.
Tue Aug 5 16:13:05 2008 Shugo Maeda <shugo@ruby-lang.org> Tue Aug 5 16:13:05 2008 Shugo Maeda <shugo@ruby-lang.org>
* lib/net/imap.rb (disconnect): do not refer SSL::SSLSocket for * lib/net/imap.rb (disconnect): do not refer SSL::SSLSocket for

View file

@ -287,25 +287,27 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/bcc32/Makefile.sub
\#define rb_pid_t int \#define rb_pid_t int
\#define HAVE_STRUCT_STAT_ST_RDEV 1 \#define HAVE_STRUCT_STAT_ST_RDEV 1
\#define HAVE_ST_RDEV 1 \#define HAVE_ST_RDEV 1
!if $(BORLANDC) < 0x0580
\#define int8_t signed char \#define int8_t signed char
\#define HAVE_UINT8_T 1
\#define uint8_t unsigned char \#define uint8_t unsigned char
\#define HAVE_INT16_T 1
\#define int16_t short \#define int16_t short
\#define HAVE_UINT16_T 1
\#define uint16_t unsigned short \#define uint16_t unsigned short
\#define HAVE_INT32_T 1
\#define int32_t int \#define int32_t int
\#define HAVE_UINT32_T 1
\#define uint32_t unsigned int \#define uint32_t unsigned int
\#define HAVE_INT64_T HAVE_LONG_LONG
\#define int64_t __int64 \#define int64_t __int64
\#define HAVE_UINT64_T HAVE_LONG_LONG
\#define uint64_t unsigned __int64 \#define uint64_t unsigned __int64
\#define ssize_t int
!endif
\#define HAVE_UINT8_T 1
\#define HAVE_INT16_T 1
\#define HAVE_UINT16_T 1
\#define HAVE_INT32_T 1
\#define HAVE_UINT32_T 1
\#define HAVE_INT64_T HAVE_LONG_LONG
\#define HAVE_UINT64_T HAVE_LONG_LONG
\#define HAVE_INTPTR_T 1 \#define HAVE_INTPTR_T 1
\#define HAVE_UINTPTR_T 1 \#define HAVE_UINTPTR_T 1
\#define HAVE_SSIZE_T 1 \#define HAVE_SSIZE_T 1
\#define ssize_t int
\#define GETGROUPS_T int \#define GETGROUPS_T int
\#define RETSIGTYPE void \#define RETSIGTYPE void
\#define HAVE_ALLOCA 1 \#define HAVE_ALLOCA 1
@ -345,7 +347,7 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/bcc32/Makefile.sub
\#define RSHIFT(x,y) ((x)>>(int)y) \#define RSHIFT(x,y) ((x)>>(int)y)
\#define FILE_COUNT level \#define FILE_COUNT level
\#define FILE_READPTR curp \#define FILE_READPTR curp
\#define RUBY_SETJMP(env) _setjmp(env) \#define RUBY_SETJMP(env) setjmp(env)
\#define RUBY_LONGJMP(env,val) longjmp(env,val) \#define RUBY_LONGJMP(env,val) longjmp(env,val)
\#define RUBY_JMP_BUF jmp_buf \#define RUBY_JMP_BUF jmp_buf
\#define inline __inline \#define inline __inline

View file

@ -4,19 +4,21 @@ $:.unshift(File.expand_path("../..", __FILE__))
require 'win32/mkexports' require 'win32/mkexports'
class Exports::Bcc < Exports class Exports::Bcc < Exports
Forwards = /^rb_w32_(\w+)/
def forwarding(internal, export) def forwarding(internal, export)
internal[/\A_?/]+export internal[/\A_?/]+export
end end
def each_export(objs) def each_line(objs, &block)
objs.each do |obj| objs.each do |obj|
opt = /\.(?:so|dll)\z/i =~ obj ? "-ee" : "-oiPUBDEF -oiPUBD32" opt = /\.(?:so|dll)\z/i =~ obj ? "-ee" : "-oiPUBDEF -oiPUBD32"
IO.foreach("|tdump -q #{opt} #{obj.tr('/', '\\')} < nul") do |l| IO.foreach("|tdump -q #{opt} #{obj.tr('/', '\\')} < nul", &block)
end
end
def each_export(objs)
objdump(objs) do |l|
next unless /(?:PUBDEF|PUBD32|EXPORT)/ =~ l next unless /(?:PUBDEF|PUBD32|EXPORT)/ =~ l
yield $1 if /'(.*?)'/ =~ l yield $1 if /'(.*?)'/ =~ l
end
end end
yield "_strcasecmp", "_stricmp" yield "_strcasecmp", "_stricmp"
yield "_strncasecmp", "_strnicmp" yield "_strncasecmp", "_strnicmp"

View file

@ -50,7 +50,9 @@ BASERUBY = $(BASERUBY)
!if !defined(BASERUBY) !if !defined(BASERUBY)
@for %I in (ruby.exe) do @echo BASERUBY = "%~$$PATH:I" >> $(MAKEFILE) @for %I in (ruby.exe) do @echo BASERUBY = "%~$$PATH:I" >> $(MAKEFILE)
!endif !endif
@$(APPEND) $(BANG)endif @type >> $(MAKEFILE) &&|
$(BANG)endif
|
!if exist(confargs.mk) !if exist(confargs.mk)
@type confargs.mk >> $(MAKEFILE) @type confargs.mk >> $(MAKEFILE)
@del confargs.mk @del confargs.mk

View file

@ -70,7 +70,7 @@ extern "C++" { /* template without extern "C++" */
#endif #endif
#include <io.h> #include <io.h>
#include <malloc.h> #include <malloc.h>
#ifdef __MINGW32__ #if defined __MINGW32__ || __BORLANDC__ >= 0x0580
# include <stdint.h> # include <stdint.h>
#else #else
# if !defined(_INTPTR_T_DEFINED) # if !defined(_INTPTR_T_DEFINED)

View file

@ -217,14 +217,8 @@
#include <ctype.h> #include <ctype.h>
#ifdef HAVE_SYS_TYPES_H #ifdef HAVE_SYS_TYPES_H
#ifndef __BORLANDC__
#include <sys/types.h> #include <sys/types.h>
#endif #endif
#endif
#ifdef __BORLANDC__
#include <malloc.h>
#endif
#ifdef ONIG_DEBUG #ifdef ONIG_DEBUG
# include <stdio.h> # include <stdio.h>