usa
326df8f1e6
* mkconfig.rb: patchlevel is sometimes minus.
...
* win32/resource.rb: ditto.
thease changes are merged from trunk.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@22908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-12 04:03:41 +00:00
nobu
cb7bc8db56
* common.mk (main): split from exts and makes main program after
...
building exts with miniruby, to get rid of overwriting running
program. [ruby-core:22339]
* Makefile.in, win32/Makefile.sub (RUNCMD, MKMAIN_CMD): macros to
run script file.
* ext/extmk.rb (parse_args): added --command-output option which
creates script file to make main program.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@22592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-24 10:01:08 +00:00
nobu
1fb1fb2b88
* win32/Makefile.sub (CRTDEFFLAGS): separated from DEFS.
...
* win32/win32.c (rtc_error_handler): ignores RTC errors.
* win32/win32.c (NtInitialize): suppress useless CRT assertions.
[ruby-core:22116]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@22338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-16 07:47:53 +00:00
nobu
255aa954f5
* win32/win32.c (_CrtDbgReportW): prevent from false positive
...
assertions in msvcrtd. [ruby-core:22116]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@22333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-15 16:18:01 +00:00
nobu
cb190ce643
* win32/win32.c (open_dir_handle): extracted from rb_w32_opendir.
...
* win32/win32.c (winnt_stat): gets rid of strange behavior of
GetFileAttributes(). [ruby-core:21269]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@21447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-12 07:45:31 +00:00
nobu
a07410c783
* win32/win32.c (init_env): use user profile folder than personal
...
folder.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@21336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-05 03:52:11 +00:00
usa
862d56d5f9
* win32/win32.c (rb_w32_read, rb_w32_write, rb_w32_isatty): check
...
whether fd is valid.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@20540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-05 09:14:12 +00:00
usa
523d90905d
* win32/win32.c (waitpid): fix bug of checking child slot.
...
* win32/win32.c (FindChildSlotByHandle): new.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@20537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-05 03:52:06 +00:00
usa
9729b68721
* win32/win32.c (rb_w32_accept): secure fd before accept because if
...
error causes in securing, cannot restore the state of accepted
socket.
fixed [ruby-core:19728]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@20189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-11 08:54:07 +00:00
usa
3e70ba912c
* win32/win32.c (ifs_open_socket): should retry without proto_buffer
...
if cannot find the suitable protocol. a patch from Heesob Park.
fixed [ruby-core:19713]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@20166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-10 00:57:49 +00:00
usa
3bd735314d
* win32/win32.c (subtruct): check tv_sec.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@19486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-23 10:50:42 +00:00
usa
c0e0e87b45
* win32/win32.c (filetime_to_timeval): new function, split from
...
gettimeofday().
* win32/win32.c (gettimeofday): use above function.
* win32/win32.c (filetime_to_unixtime): ditto. [ruby-dev:36135]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@19482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-23 10:30:53 +00:00
usa
82df70d08c
* win32/win32.c (gettimeofday): tv_usec is usec, not msec.
...
[ruby-dev:36094]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@19064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-02 05:49:10 +00:00
usa
61ae1c9800
* win32/win32.c (gettimeofday): easier calculation. use the definition
...
of the Gregorian calender.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@19054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-02 01:52:46 +00:00
usa
d1f4a0fafa
* win32/win32.c (gettimeofday): calc tv_sec and tv_usec from system
...
time by myself. [ruby-dev:36084]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@19050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-02 01:19:07 +00:00
usa
62921afc0f
* win32/win32.c (gettimeofday): shouldn't use mktime(2) because it's
...
buggy about handling summer time.
reported by Yoshikawa <yoshixool AT gmail.com> at [ruby-dev:36071]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@19025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-01 09:31:53 +00:00
nobu
75fc7cf2de
* lib/mkmf.rb (try_func, try_var, have_struct_member),
...
(scalar_ptr_type?, scalar_type?): use MAIN_DOES_NOTHING.
* lib/mkmf.rb (MAIN_DOES_NOTHING): defaults to ordinary main.
* win32/Makefile.sub (config): for MAIN_DOES_NOTHING for wince.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-31 08:52:56 +00:00
nobu
9a65958db9
* configure.in (rb_cv_missing__dtos18, rb_cv_missing_fconvert),
...
ext/digest/md5/md5.c, ext/openssl/ossl.c (main),
ext/socket/extconf.rb (ipv6, wide-getaddrinfo): main should be int.
* main.c (main), win32/winmain.c, wince/wincemain.c (WinMain): envp is
no longer used so long time. based on a patch from Peter Bowen at
[ruby-core:18208]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-09 23:15:08 +00:00
nobu
a5a60f53b3
* Makefile.in, common.mk, {bcc,win}32/Makefile.sub (clean-ext): do not
...
use miniruby.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-07 07:28:56 +00:00
nobu
4f42eded12
* lib/mkmf.rb, {bcc32,win32}/Makefile.sub (CLEANLIBS, CLEANOBJS):
...
moved clean targets to platfrom makefiles.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-07 05:16:27 +00:00
nobu
1ebc425e1c
* win32/win32.c (rb_w32_seekdir): no need to rewind to seek forward.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-01 05:54:45 +00:00
nobu
10df2f8852
* win32/win32.c (rb_w32_telldir): just returns loc.
...
* win32/win32.c (rb_w32_rewinddir): needs to intialize loc.
[ruby-core:18041]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-01 05:45:59 +00:00
nobu
73816cc871
* win32/win32.c (rb_w32_select): recalc the rest of timeout for each
...
iterations. [ruby-core:18015]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-30 08:48:31 +00:00
usa
0c694317dd
* {bcc32,win32}/Makefile.sub (ruby_version): follow changes in
...
configure.in.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-15 14:03:03 +00:00
nobu
debd74a680
* Makefile.in, common.mk, {win,bcc}32/Makefile.sub (revision.h): auto
...
update. [ruby-core:17373]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-23 02:17:37 +00:00
usa
472a49b666
* win32/Makefile.sub (COMMON_HEADERS): include ws2tcpip.h.
...
* ext/socket/addrinfo.h (addrinfo, getaddrinfo, getnameinfo,
freehostent, freeaddrinfo): undef before define because these are
macros in some versions of Windows SDK.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-06 12:00:56 +00:00
usa
aed7f69bbc
* win32/setup.mak: maybe commit miss.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-06 11:14:10 +00:00
usa
1c5d2e1ced
* win32/win32.h: include ws2tcpip.h. fixed [ruby-Bugs-20528]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-06 07:44:57 +00:00
nobu
9ed3d64d1d
* suppress warnings on cygwin, mingw and mswin.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-01 19:55:25 +00:00
knu
b67592ed7b
* configure.in, win32/Makefile.sub, mkconfig.rb, instruby.rb,
...
ruby.c, lib/mkmf.rb, README.EXT, README.EXT.ja: Backport the
vendor_ruby directory support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-29 11:07:59 +00:00
nobu
a96b6c282b
* common.mk ({MSPEC,RUBYSPEC}_GIT_URL): moved from Makefine.in.
...
* {win32,bcc32}/Makefile.sub (update-rubyspec): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-19 04:01:17 +00:00
usa
84386708c5
* win32/Makefile.sub (test-rubyspec): added.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-16 08:02:09 +00:00
usa
3c4bc1dd1f
* win32/win32.c (rb_w32_select): backport from trunk.
...
[ruby-talk:300743]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-12 03:38:06 +00:00
nobu
9cee075559
* rubyio.h (rb_io_t): renamed from OpenFile.
...
* ruby.h (struct RHash), file.c, gc.c, io.c, ext/dl/dl.c,
ext/io/wait/wait.c, ext/pty/pty.c, ext/readline/readline.c,
ext/socket/socket.c: ditto.
* win32/win32.h: removed workaround for OpenFile.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-15 03:35:55 +00:00
nobu
85d9aea6b4
* {bcc,win}32/Makefile (config.h): need to define RUBY_SETJMP, etc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-01 04:14:18 +00:00
nobu
1c411796ef
* win32/win32.c (rb_w32_cmdvector): terminate shrunken command line.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-11 07:43:55 +00:00
nobu
c307e12554
* common.mk (clean-local): removes MINOBJS.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-11 03:39:05 +00:00
usa
b18e67490e
* {bcc32,win32}/Makefile.sub (RUNRUBY): use $(PROGRAM) instead of
...
ruby$(EXEEXT).
suggested by KIMURA Koichi <kimura.koichi at canon.co.jp>.
[ruby-dev:34000]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-06 06:10:32 +00:00
nobu
56faedc99d
* common.mk, {bcc,win}32/Makefile.sub (clean-local): remove
...
intermediate files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-24 14:29:51 +00:00
nobu
6cb19dcbd9
* win32/win32.c (rb_w32_map_errno): exported.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-20 14:55:21 +00:00
usa
94eed2b622
* win32/setup.mak ($(ARCH)): if a macro is appended by $(APPEND),
...
a space will be inserted on the top of the line.
* win32/Makefile.sub (MKFILES): stop make process if Makefile is
updated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-22 02:24:11 +00:00
nobu
55e8ae70a0
* win32/setup.mak: strip out empty lines from CPP output.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-15 06:09:30 +00:00
nobu
0ced605434
* win32/win32.c (rb_w32_open_osfhandle): reverted to old definition.
...
[ ruby-Bugs-16948 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-10 01:53:52 +00:00
nobu
9779076300
* win{32,ce}/Makefile.sub: merged.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-08 11:02:10 +00:00
nobu
555d072892
* win32.h: only VC6 needs extern "C++" for math.h. [ruby-talk:285660]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-03 16:20:29 +00:00
nobu
3729e62609
* trunk/common.mk: not use -I$(srcdir)/lib with $(MINIRUBY) for cross
...
compiling.
* configure.in, {win,bcc}32/Makefile.sub (MINIRUBY): -I$(srcdir)/lib
moved.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-30 21:50:40 +00:00
nobu
b3b6136faf
* win{32,ce}/Makefile.sub (MFLAGS): defaulted to -l.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-24 03:35:06 +00:00
nobu
b655714f18
* common.mk: should not pass MAKEFLAGS to recursive make.
...
+ normal make: MFLAGS are set and command line options and macros
are all passed silently.
+ GNU make: ditto, and all options and macros in MAKEFLAGS are in
effect.
+ nmake: MFLAGS is not set and MAKEFLAGS has only options without
hyphen, no macros exist in any variables.
+ Borland make: ditto, and command line macros cannot override
macros in makefile, so passing them is vain.
* {bcc32,win{32,ce}}/Makefile.sub (SET_MAKE): set MFLAGS which is not
set by default, to get rid of chaotic situation of MFLAGS/MAKEFLAGS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-24 02:56:33 +00:00
nobu
f31e0ec7fc
* win32/mkexports.rb: deal with __fastcall name decorations.
...
[ruby-list:44111]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-13 18:55:54 +00:00
nobu
0b95a09a71
* {bcc,win}32/mkexports.rb: explicit data. [ruby-list:44108]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-13 00:02:20 +00:00