Граф коммитов

649 Коммитов

Автор SHA1 Сообщение Дата
nobu b6e82baca5 * win32/Makefile.sub (config.h): updated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-01 22:42:29 +00:00
nobu 2c772139b6 * win32/win32.c (rb_w32_spawn): use original command if not found.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-23 05:32:26 +00:00
nobu 6a64e9e4ac * win32/win32.c (rb_w32_spawn, rb_w32_aspawn): use NULL as
application name for batch files.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-22 05:51:58 +00:00
nobu 564517840e * win32/win32.c (rb_w32_conv_from_wstr): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-20 23:22:34 +00:00
nobu ba1a12170b * win32/win32.c (rb_w32_spawn, rb_w32_aspawn): omit program name
if actual program path is found.  [ruby-core:22960]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-20 23:17:42 +00:00
nobu 88db4af385 * win32/win32.c (errmap): added ERROR_MOD_NOT_FOUND.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-20 09:25:26 +00:00
nobu 27a39b8ffe * win32/Makefile.sub (config.h): added RUBY_COREDLL.
* ext/dl/handle.c (rb_dlhandle_initialize): returns msvcrt if libc
  or RUBY_COREDLL is given.  [ruby-core:22828]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-17 04:48:03 +00:00
nobu 2bb561ea5f * common.mk (REVISION_H): keeps timestamp of revision.h.
[ruby-core:22900]

* tool/ifchange, win32/ifchange.bat: extended --timestamp option.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-16 03:30:01 +00:00
nobu 40819d4599 * Makefile.in, common.mk, win32/Makefile.sub: added preprocessing rules.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-16 00:29:00 +00:00
nobu 28398e91f1 * common.mk (.y.c): use SRC_FILE which contains slashes instead of
backslashes.  [ruby-core:22891]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-15 00:17:21 +00:00
usa 61c216748c * win32/Makefile.sub (WARNFLAGS): warning 4996 is only in VC++8 or
later.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-12 13:31:11 +00:00
nobu c8d40b9a3d * win32/win32.c (init_env): set TMPDIR if none of TMPDIR, TMP,
TEMP is set.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11 04:22:38 +00:00
nobu bf065f2e2e * win32/win32.c (rb_w32_telldir, rb_w32_seekdir): should use long.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11 04:16:56 +00:00
nobu 8231655dea * time.c (time_to_i, time_hash): time_t may be bigger than long
and int.

* time.c (time_timeval, rb_time_timeval, obj2nsec, time_strftime),
  (time_mdump, time_mload): suppress warnings.

* win32/Makefile.sub (config.h): added TIMET2NUM and NUM2TIMET.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-10 19:47:46 +00:00
nobu 0032476a24 * win32/win32.c: suppress warnings. based on a patch from Charlie
Savage at [ruby-core:22804].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-10 19:29:51 +00:00
nobu c26d21bf71 * win32/Makefile.sub (WARNFLAGS): uses -wd4996 instead of
CRTDEFFLAGS.  cf. [ruby-core:22725]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-10 11:07:42 +00:00
usa f8147318dd * win32/Makefile.sub (OPTFLAGS): simplified.
forgotten to commit at r22849


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-10 04:52:29 +00:00
nobu a3e3fcbcd0 * win32/Makefile.sub (LDFLAGS): moved -link to TRY_LINK, LINK_SO
and so on.  based on a patch by Charlie Savage at
  [ruby-core:22794]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-10 04:45:51 +00:00
nobu 5157e572b8 * win32/Makefile.sub (config.h): passes LDFLAGS to rbconfig.rb so
that extconf.rb could refer it.  [ruby-core:22725]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-10 03:27:54 +00:00
nobu 6ad0626daa * win32/Makefile.sub (LDFLAGS): always prepends -link.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-08 14:02:50 +00:00
nobu 849c996270 * Makefile.in (update-mspec): split from update-rubyspec.
* win32/Makefile.sub (update-{rubyspec,mspec}): added.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06 09:46:52 +00:00
nobu 2a413f97a4 * configure.in, Makefile.in, win32/Makefile.sub (CHDIR): cd using
phisical directory.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06 09:37:31 +00:00
nobu 4965ea4f58 * win32/Makefile.sub (.c.asm): removed $(COUTFLAG).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06 07:17:46 +00:00
nobu 6e000d8854 * Makefile.in, win32/Makefile.sub (INSNS): moved variable
definition before rule.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06 05:28:42 +00:00
nobu 90b0b8d437 * win32/win32.c (rb_w32_sysinit): initializes version info first.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-05 05:52:51 +00:00
nobu b9e0c6ec08 * win32/win32.c (Win32System, Win32Version): moved before get_version.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-05 04:38:23 +00:00
nobu f4259225d5 * win32/win32.c (rb_w32_osid): always define for binary compatibility.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-05 04:21:47 +00:00
nobu 11075c9332 * win32/Makefile.sub (make_insns_rules): rule to make rules for insns.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-05 02:52:21 +00:00
nobu a6c117a2b1 * win32/Makefile.sub (miniruby.exe): workaround for a failure of
mt.exe on Windows 7 beta.  [ruby-talk:330284]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-05 02:27:20 +00:00
nobu 00305d36f0 * win32/README.win32 (Requirement): VC++ 5.0 is not supported
already.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-04 15:26:17 +00:00
nobu e7184e7a53 * win32/README.win32 (Requirement): added unicows.lib and dll.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-04 15:06:39 +00:00
nobu d34f9699fc * configure.in, win32/configure.bat (--enable-win95): new option
to enable/disable win95 support.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-04 14:29:58 +00:00
nobu 43ba7d0058 * configure.in (mingw): checks if unicows.lib is available.
* win32/Makefile.sub (LIBS): links unicows.lib if available.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-04 11:27:12 +00:00
nobu 6e7d7bf5dd * include/ruby/win32.h (WIN95): moved to config.h
* win32/Makefile.sub (config.h): defines WIN95 only if unicows.lib
  is available.

* win32/setup.mak (-unicows-): checks if unicows.lib is available.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-04 10:35:28 +00:00
nobu a8c4a7e44c * win32/win32.c (init_env): keeps wide chars as wide chars.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-02 03:22:14 +00:00
nobu 25d66aebcc * common.mk (INSNS, newline.c, miniprelude.c, prelude.c),
(node_name.inc, known_errors.inc): unified from Makefile.in and
  win32/Makefile.sub.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-26 09:36:13 +00:00
usa a898f0fb4b * io.c (sysopen_func, rb_sysopen_internal, rb_sysopen): open file
by UTF-16'ed filename on Windows.

	* io.c (rb_file_open_generic, rb_io_s_sysopen, rb_io_reopen,
	  argf_next_argv): follow above change.

	* io.c (rb_scan_open_args): no longer need to convert filepath here on
	  Windows.

	* win32/wio32.c (rb_w32_wopen): new function to open file by UTF-16'ed
	  filename.

	* win32/win32.c (rb_w32_open): call rb_w32_open().



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-25 08:36:45 +00:00
usa 3540727af5 * win32/Makefile.sub (config.status): use un.rb as cp instead of
cmd.exe's copy command.

	* lib/mkmf.rb (create_makefile): no longer need to convert path
	  separator when copying file.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-25 06:07:10 +00:00
nobu 9632241261 * 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/trunk@22592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-24 10:01:08 +00:00
nobu 6d3ceb6ce3 * configure.in, */Makefile.sub (LOAD_RELATIVE): moved from ruby.c
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-19 05:48:14 +00:00
nobu 1e5de389da * debug.c (set_debug_option): added rtc_error option.
* win32/Makefile.sub (CRTDEFFLAGS): separated from DEFS.

* win32/win32.c (rtc_error_handler): ignores RTC errors unless
  rtc_error debug option is given.

* win32/win32.c (rb_w32_sysinit): suppress useless CRT assertions.
  [ruby-core:22116]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-16 07:46:24 +00:00
nobu 82fa04e212 * win32/win32.c (_CrtDbgReportW): prevent from false positive
assertions in msvcrtd.  [ruby-core:22116]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-15 16:18:01 +00:00
usa 7e1050e604 * win32/win32.c (rb_w32_readdir_with_enc): fallback to OS convertion
when ASCII-8BIT is passed.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-06 09:18:46 +00:00
usa 6343c99a2e * win32/{dir.h, win32.c} (rb_w32_readdir_with_enc): new function to
read entry with specified enc.

	* win32/win32.c (readdir_internal): extract from rb_w32_opendir().

	* win32/win32.c (opendir_internal): extract from rb_w32_readdir().

	* dir.c (dir_read, dir_each): use new READDIR macro instead of readdir()
	  to pass enc for special version of readdir, such as above.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-06 08:23:00 +00:00
usa 1754ec8a59 * win32/Makefile.sub (config.h): follow recent changes about paths.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-05 07:05:05 +00:00
usa fbea35aa47 * win32/mkexports.rb: shouldn't export DllMain.
reported at http://pc11.2ch.net/test/read.cgi/tech/1233686068/21



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-04 02:50:04 +00:00
nobu 5ac71d9f9e * cygwin/GNUmakefile.in (RUBYDEF): uses mkexports.rb on cygwin too.
* win32/mkexports.rb (Exports::Cygwin): added.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-02 23:18:30 +00:00
nobu 209cfdcfb5 * win32/win32.c (rb_w32_write): use of cast expressions as lvalues
is deprecated.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-02 23:01:43 +00:00
usa b204d48f76 * mkconfig.rb: patchlevel is somtimes minus.
* win32/resource.rb: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-02 08:14:06 +00:00
usa 197747f7d6 * win32/dir.h: forgot to commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-02 05:19:51 +00:00