usa
1503e320d9
* win32/win32.c (rb_w32_getppid): support Win64.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-27 09:15:02 +00:00
nobu
749ad16aa7
* common.mk (pkgconfig-data): moved from Makefile.in.
...
* tool/rbinstall.rb: install pc file only if non-empty.
[ruby-core:32901] #3983
* win32/Makefile.sub (ruby_pc): create pc file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-26 03:47:15 +00:00
nobu
150b4efa55
* win32/win32.c (rb_w32_open_osfhandle, rb_w32_wopen, rb_w32_pipe):
...
use uintptr_t instead of long for win64.
* win32/win32.c (socketpair_internal): suppress warnings.
* win32/win32.c (ftruncate): use HANDLE instead of long for win64.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-12 14:58:23 +00:00
usa
fb44f02aa1
* win32/win32.c (rb_w32_strerror): get English message first, instead
...
of system default. see [ruby-dev:42358].
[experimental]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-12 07:05:56 +00:00
usa
cba4cda71d
* win32/win32.c (rb_w32_strerror): unmap some range of errno for
...
workaround of VC10's strerror() and sys_nerr problem.
based on a patch from Akio Tajima, [ruby-dev:42355].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-12 06:54:52 +00:00
nobu
a1d7e69106
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-08 01:52:37 +00:00
nobu
0dd56a828e
* cygwin/GNUmakefile.in, win32/Makefile.sub (RCFILES): depend on
...
real config.rb file. [ruby-core:32709]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-07 09:10:47 +00:00
wanabe
349c3c7a8c
* win32/mkexports.rb: revert r29320 and r29402.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-05 13:20:49 +00:00
wanabe
a21409ff5f
* tool/config.sub: revert r29320, r29324, r29347, r29354, r29365
...
to automake-1.11.1. [ruby-core:32634]
* win32/mkexports.rb: no longer use 'mingw64'. a patch from Luis Lavena
at [ruby-core:32678].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-03 15:06:23 +00:00
usa
1fcb7a5ee0
* win32/win32.c (rb_w32_getenv): should return NULL if specified name
...
is empty. a patch from Heesob Park at [ruby-core:32650]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-30 07:12:49 +00:00
wanabe
d06f38c6b9
* tool/config.sub: add mingw64.
...
* win32/mkexports.rb (Exports::Mingw64): added.
* win32/mkexports.rb (Exports::Mingw32): renamed from Exports::Mingw.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-23 09:59:38 +00:00
yugui
4a028d2c7e
* common.mk (clean): removes all documents on cleaning.o
...
(CAPIOUT): new variable.
(clean-capi, distclean-capi, realclean-capi): new targets
* Makefile.in (clean-capi, distclean-capi, realclean-capi): ditto.
* win32/Makefile.sub (clean-capi, distclean-capi, realclean-capi):
ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-19 13:10:25 +00:00
usa
51f6d787ac
* win32/win32.c (rb_w32_spawn, rb_w32_aspawn): don't forget to free
...
memory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-02 00:12:43 +00:00
usa
d35fdf3335
* win32/win32.c (CreateChild): unicodize.
...
* win32/win32.c (rb_w32_spawn, rb_w32_aspawn): convert arguments of
CreateChild() from ACP to WideChar.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-02 00:02:52 +00:00
nobu
f2ff3eb6ec
* configure.in: read API version from include/ruby/version.h.
...
* {bcc,win}32/setup.mak (-version-): ditto.
* version.h (RUBY_LIB_VERSION): use API version numbers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-24 01:11:14 +00:00
nobu
966532cc40
* Makefile.in, win32/Makefile.sub (test-rubyspec-precheck): split
...
from test-rubyspec.
* common.mk (test-rubyspec): moved from Makefile.in.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-16 03:29:08 +00:00
nobu
b496cd64e5
* win32/Makefile.sub: needs stddef.h for size_t. a patch from
...
Akio Tajima at [ruby-dev:41905].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-01 08:27:34 +00:00
nobu
195a7da4ec
* configure.in (config.h): add include guard.
...
* win32/Makefile.sub, bcc32/Makefile.sub (config.h): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-26 09:18:21 +00:00
nobu
967e3a3598
* configure.in (enable-debug-env): option for RUBY_DEBUG env.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-26 04:07:20 +00:00
nobu
1d408c933a
* Makefile.in, common.mk (clean-ext, clean-enc): clean up cleaning
...
targets.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-14 17:32:03 +00:00
usa
51077c2c22
* win32/win32.c (rb_w32_read): call ReadFile() with len = 0 before
...
reading really on console, because the first ReadFile() call after
PeekConsoleInput() always returns broken data. (Windows's bug).
[ruby-core:29018]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-27 13:36:26 +00:00
usa
f82a6840a8
* thread.c (subtract_tv): if the rest is zero, should finish waiting
...
immediately.
* win32/win32.c (subtract): ditto.
based on a patch from Roger Pack in [ruby-core:27957].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-20 16:13:35 +00:00
usa
d165fa2504
* win32/win32.c (argv_size): merged into join_argv() to maintain the
...
agreement with it. removed code has a calclulation bug.
fixed [Bug#2388]
* win32/win32.c (join_argv): calc and return the length of joined
argv.
the cause of the original bug was clarified by Masaya TARUI
<tarui AT prx.jp> and the solution was suggested by him, too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-17 12:15:47 +00:00
nobu
414727ca70
* win32/win32.c (rb_w32_conv_from_wchar): use ECONV_UNDEF_REPLACE.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-16 09:41:43 +00:00
nobu
6c05f91b3b
* dln.c (rb_w32_check_imported): check if extension library to be
...
loaded imports from different ruby dll.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-16 06:09:40 +00:00
usa
720151bc63
* win32/Makefile.sub: link with ffs.obj.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-13 00:45:48 +00:00
usa
fe0d339c2c
* win32/win32.c, include/ruby/win32.h (rb_w32_has_cancel_io): new
...
function.
* io.c (WAIT_FD_IN_WIN32): check only when it's not cancelable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-10 05:02:44 +00:00
nobu
2c01a07bf4
* ext/etc/etc.c (etc_systmpdir): moved from ext/tmpdir.
...
* ext/etc/etc.c (etc_sysconfdir): added.
* lib/rubygems/config_file.rb, lib/tmpdir.rb: use etc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-08 03:25:17 +00:00
nobu
0f7321eddf
* README: update.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-06 03:12:28 +00:00
wanabe
a8209ffcc7
* win32/win32.c: add declaration of wstati64 for gcc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-30 21:45:33 +00:00
usa
6c28f99d88
* merge some patches from win32-uncode-test branch.
...
see #1685 .
* file.c, include/ruby/intern.h (rb_str_encode_ospath): new function
to convert encoding for pathname.
* win32.c, include/ruby/win32.h (rb_w32_ulink, rb_w32_urename,
rb_w32_ustati64, rb_w32_uopen, rb_w32_uutime, rb_w32_uchdir,
rb_w32_umkdir, rb_w32_urmdir, rb_w32_uunlink): new functions to
accept UTF-8 path.
* win32/win32.c (rb_w32_opendir, link, rb_w32_stati64, rb_w32_utime,
rb_w32_unlink): use WCHAR path internally.
* file.c (rb_stat, eaccess, access_internal, rb_file_s_ftype,
chmod_internal, rb_file_chmod, rb_file_chown, utime_internal,
rb_file_s_link, unlink_internal, rb_file_s_rename): use UTF-8 version
functions on Win32.
* file.c (apply2files, rb_stat, rb_file_s_lstat, rb_file_symlink_p,
rb_file_readable_p, rb_file_writable_p, rb_file_executable_p,
check3rdbyte, rb_file_identical_p, rb_file_chmod, rb_file_chown,
rb_file_s_link, rb_file_s_symlink, rb_file_s_rename): call
rb_str_encode_ospath() before passing the path to system.
* io.c (rb_sysopen): ditto.
* dir.c (dir_chdir, dir_s_mkdir, dir_s_rmdir): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-30 17:56:23 +00:00
usa
47f35969e0
* win32/Makefile.sub (config.h): define some constants to select
...
collect code for win64.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-29 15:54:18 +00:00
usa
b6847f7acc
* win32/win32.c (rb_w32_wopen): shouldn't use FILE_FLAG_OVERLAPPED with
...
normal file. #1807 , #2510 , #2549
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-22 16:49:39 +00:00
usa
727371f88a
* include/ruby/win32.h: check definition existance before defining
...
errno macros.
* win32/win32.c (errmap): define winsock errors mappings.
these are VC++10 support. see [ruby-core:29278]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-06 05:58:07 +00:00
usa
54da3ecbcb
* include/ruby/win32.h, win32/win32.c (EWOULDBLOCK): VC10 already
...
defined EWOULDBLOCK. based on a patch from Charlie Savage,
see [ruby-core:29255]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-05 04:26:33 +00:00
usa
f1c86c1bb2
* win32/mkexports.rb (each_export): VC10 support.
...
a patch from Charlie Savage in [ruby-core:29254]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-05 04:09:45 +00:00
naruse
b919cb1d93
* include/ruby/ruby.h: replace snprintf and vsnprintf by
...
ruby_snprintf and ruby_vsnprintf. [ruby-dev:40909]
* configure.in: don't check snprintf(3) and vsnprintf(3).
* include/ruby/missing.h: don't delare snprintf and vsnprintf.
* include/ruby/ruby.h: include stdarg.h.
* sprintf.c: include vsnprintf.c
* vsnprintf.c: renamed from missing/vsnprintf.c.
* vsnprintf.c: remove useless ifdefs.
* win32/mkexports.rb: use ruby_snprintf and ruby_vsnprintf.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-04 01:10:53 +00:00
usa
c78dbcd131
* win32/win32.c (init_env): wrong calculation of the head of setenv
...
string. [ruby-core:29216]
a patch from Heesob Park in [ruby-core:29218]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-02 02:57:05 +00:00
nobu
b3a039a2cb
* win32/win32.c (rb_w32_{read,write}): fix handle leaks. based on
...
a patch from Heesob Park in [ruby-core:28919]. [ruby-core:28833]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-25 05:50:08 +00:00
nobu
cb2f56aaf4
* win32/win32.c (rb_w32_read): limit read size to 16KB if the file
...
seems to be console. [ruby-core:28902]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-24 05:34:05 +00:00
nobu
3694f1dda7
* ext/tmpdir: split from lib/tmpdir.rb.
...
* win32/win32.c (rb_w32_system_tmpdir): extracted from init_env.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-16 06:20:23 +00:00
nobu
724f1f4a6e
* win32/win32.c (rb_w32_getcwd): remvoed duplicated code.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-16 05:48:07 +00:00
nobu
772acb9f1d
* win32/win32.c (init_env): get rid of alloca() for outer string.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-11 22:25:22 +00:00
wanabe
131f0a409b
* win32/win32.c (signbit): allow x64.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-10 16:36:18 +00:00
usa
de1cd22816
* win32/Makefile.sub (config.h): VC6 has __int64.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-05 16:09:35 +00:00
nobu
4bcae18e37
* io.c (pipe_open): suppressed a warning.
...
* win32/win32.c (rb_w32_map_errno, winnt_stat, rb_chsize): ditto.
* win32/win32.c (rb_w32_aspawn): get rid of overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-05 08:51:12 +00:00
nobu
ee48a91993
* win32/win32.c (signbit): defined on mingw.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-05 02:59:33 +00:00
nobu
35345f1c09
* win32/win32.c (signbig): defined.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-02 21:19:33 +00:00
nobu
d20440ab6f
* win32/Makefile.sub, symbian/setup (config.h): pack.c requires
...
SIZEOF_INT*_T now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-02 20:49:02 +00:00
nobu
ecc775772a
* common.mk (COMPILE_PRELUDE): rbconfig is loaded on demand.
...
* tool/eval.rb, win32/{mkexports,resource}.rb: miniruby no longer
contains "." in $:.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-08 07:23:13 +00:00