aboutsummaryrefslogtreecommitdiffstats
path: root/win32
Commit message (Collapse)AuthorAgeFilesLines
* mkmf.rb: translate to assemblernobu2014-10-081-0/+3
| | | | | | | * lib/mkmf.rb (create_makefile): add rules to translate to assembler sources. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32/file.c: fix no user exceptionnobu2014-09-291-8/+8
| | | | | | | | * win32/file.c (append_wstr): set expanded length, not length of appended string. fix "probable buffer overflow" bug. [ruby-core:65317] [Bug #10304] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Makefile.sub: fix typonobu2014-09-191-1/+1
| | | | | | * win32/Makefile.sub: fix typo, replace "ekse" with "else". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (VCSUP): nothing to do if this worktree is not underusa2014-09-191-0/+2
| | | | | | | any VCS (it means that the worktree may be from the release package). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (cmdglob): use inline function.nobu2014-08-231-4/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32.c: manage reverse videonobu2014-08-211-14/+23
| | | | | | | | * win32/win32.c (constat_attr): manage reverse video internally since Windows console window does not manage it. based on the patch by white leaf in [ruby-dev:48483]. [Bug #10158] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32/file.c: direct conversionnobu2014-08-091-47/+38
| | | | | | | | | | | | * win32/file.c (user_length_in_path): count user name length in path. * win32/file.c (append_wstr): append WCHAR string to Ruby string directly without an intermediate buffer, if possible. * win32/file.c (rb_file_expand_path_internal): use above functions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32/file.c: share functions with win32.cnobu2014-08-092-59/+35
| | | | | | | * win32/file.c (rb_file_expand_path_internal, rb_file_load_ok): use functions defined in win32/win32.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32/configure.bat: revert a commit by accidentnobu2014-07-311-216/+216
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * remove trailing spaces.svn2014-07-311-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * properties.nobu2014-07-311-216/+216
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Makefile.sub: no PACKED_STRUCT on old VCnobu2014-07-211-1/+3
| | | | | | | * win32/Makefile.sub (PACKED_STRUCT): __pragma extension is available since VC9. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Makefile.sub: no oldnames.libnobu2014-07-141-1/+1
| | | | | | * win32/Makefile.sub (LIBS): oldnames.lib is not used already. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32/configure.bat: check directorynobu2014-07-121-0/+5
| | | | | | | * win32/configure.bat: bail out if run in win32 directory. [ruby-core:63648] [Bug #10027] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: integrate clean targetsnobu2014-07-072-17/+2
| | | | | | | | | | | | * common.mk (clean-rdoc, clean-capi, clean-platform): integrate from Makefile.in and win32/Makefile.sub. * win32/Makefile.sub (RMALL): now use rm.bat instead of rmall.bat which does not handle any options and convert slashes. * win32/rmall.bat: no longer used. use rm.bat with -r instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: empty by distcleannobu2014-07-051-3/+0
| | | | | | | | | | * common.mk (clean-runnable): remove files made by mkrunnable. * common.mk (clean-extout): remove archir too. * common.mk (clean-ext): remove timestamp directory git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: move DEFAULT_PRELUDESnobu2014-07-041-1/+0
| | | | | | | * common.mk (DEFAULT_PRELUDES): no longer configurable since r43278, move from Makefile.in and win32/Makefile.sub. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: fix static-linked-extnobu2014-07-031-0/+3
| | | | | | | | | | * configure.in (--with-static-linked-ext): fix for extensions to be linked statically. * Makefile.in, common.mk: use ENCSTATIC for enc directory. * ext/extmk.rb: supply dependencies of statically linked extension libraries. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32.c: unused variablenobu2014-06-231-9/+0
| | | | | | * win32/win32.c (envarea): remove no longer used variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32/setup.mak: rename RUBY_RELEASE_DATEnobu2014-06-102-3/+4
| | | | | | | * win32/setup.mak (verconf.mk): rename RUBY_PROGRAM_VERSION as RUBY_RELEASE_DATE, same as other platforms. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32/setup.mak: separate verconf.mknobu2014-06-102-4/+16
| | | | | | | * win32/setup.mak (verconf.mk): separate RUBY_RELEASE_DATE from Makefile so that build would not stop everyday. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_conv_from_wchar): follow nobu's previous commit.usa2014-06-021-1/+1
| | | | | | | hey nobu, why don't you write Changelog for such serious changes? git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32/Makefile.sub: copy enc/jis/props.hnobu2014-05-261-0/+5
| | | | | | | * win32/Makefile.sub (enc/jis/props.h): nmake needs special rule to copy from the source directory, because it can't handle VPATH. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* revert File::Statfs [Feature #9772]naruse2014-05-222-51/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32.c: fix infinite recursionnobu2014-05-182-1/+5
| | | | | | | * win32/win32.c: include "missing/nextafter.c" and address finite() and isnan() macros, to get rid of infinite recursion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Makefile.sub: fix nextafternobu2014-05-181-2/+3
| | | | | | | | | * win32/Makefile.sub (MISSING, CONFIG_H): msvcr120.dll provides nextafter() as well as other mathematic functions. finite() and isnan() used in missing/nextafter.c are not by older runtimes. [Feature #9834] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub: Add nextafter.obj to MISSING.akr2014-05-181-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32.c: add linkagenobu2014-04-301-1/+1
| | | | | | * win32/win32.c (ustatfs): need a linkage to get rid of conflict. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32.c: declare for old VCnobu2014-04-301-0/+1
| | | | | | * win32/win32.c (ustatfs): declare GetVolumePathNameW for old VC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* file.c: unpack in binarynobu2014-04-231-1/+0
| | | | | | | | * file.c (statfs_fsid): convert with rb_integer_unpack. * configure.in: fsid_t is no longer used. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in, win32/Makefile.sub: fsid_t is defined in include/ruby/win32.h.usa2014-04-231-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c, include/ruby/win32.h (ustatfs): implementation ofusa2014-04-222-0/+50
| | | | | | | | | | | statfs(2) clone. [EXPERIMENTAL] * file.c (rb_io_statfs): use above function. * configure.in, win32/Makefile.sub (struct statfs): available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32.c: CharNextExA with cpnobu2014-04-161-0/+3
| | | | | | | * win32/win32.c (dln_find_1): use CharNextExA() instead of CharNext() to respect the given code page. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32.c: adjust typenobu2014-04-151-1/+1
| | | | | | | * win32/win32.c (NtCmdLineElement): use long instead of int for rb_w32_wstr_to_mbstr. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/win32.h (rb_w32_cmdvector): removed.usa2014-04-151-45/+46
| | | | | | | | | | | | | * win32/win32.c (rb_w32_sysinit): use WCHAR version of GetCommandLine() internally. * win32/win32.c (w32_cmdvector): renamed from rb_w32_cmdvector. use WCHAR* instead of char* internally. these changes are expected to not changing the behavior yet. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: Unused target, $(MKMAIN_CMD), removed.akr2014-04-131-2/+0
| | | | | | | | | | * Makefile.in (MKMAIN_CMD): Unused macro removed. * win32/Makefile.sub (MKMAIN_CMD): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32.c: wchar conversionnobu2014-04-051-6/+6
| | | | | | | * win32/win32.c (rb_w32_wstr_to_mbstr, rb_w32_mbstr_to_wstr): make WCHAR/mb conversion functions public. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_accept, open_ifs_socket, socketpair_internal):usa2014-03-301-0/+4
| | | | | | | | | | reset inherit flag of socket to avoid unintentional inheritance of socket. note that the return value of SetHandleInformation() is not verified intentionally because old Windows may return an error. [Bug #9688] [ruby-core:61754] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in, win32/Makefile.sub: PACKED_STRUCT with VCnobu2014-02-251-2/+6
| | | | | | | | | * configure.in (PACKED_STRUCT): check VC pragma too, and make function-style macro. * win32/Makefile.sub (PACKED_STRUCT): enable with VC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub: define PACKED_STRUCT.naruse2014-02-251-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32/win32.c: add rb_w32_inet_ptonnobu2014-02-231-0/+13
| | | | | | | | * include/ruby/win32.h, win32/win32.c (rb_w32_inet_pton): add a wrapper function for inet_pton minimum supported client is Vista, as well as inet_ntop. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* remove HAVE_FSEEKO from win32/win32.carton2013-12-311-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* expand-config.rb: expand config valuesnobu2013-12-271-5/+1
| | | | | | | | | * tool/expand-config.rb: expand config values, extracted from win32/Makefile.sub. * win32/Makefile.sub (ruby_pc): use tool/expand-config.rb script. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/{setup.mak,Makefile.sub}: update fake.rb likeusa2013-12-272-1/+6
| | | | | | | template/fake.rb.in. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (fake.rb): should depend on version.h becauseusa2013-12-261-1/+1
| | | | | | | | if RUBY_VERSION is updated, fake.rb need to say the new version to avoid install error in rbconfig.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32/win32.c: mingw junglenobu2013-12-251-4/+8
| | | | | | | | | | | * configure.in: let mingw do something black-magic, and check if _gmtime64_s() is available actually. * win32/win32.c (gmtime_s, localtime_s): use _gmtime64_s() and _localtime64_s() if available, not depending on very confusing mingw variants macros. based on the patch by phasis68 (Heesob Park) at [ruby-core:58764]. [ruby-core:58391] [Bug #9119] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (fake.rb): fixed wrong RUBY_PLATFORM, to correctlyusa2013-12-201-1/+1
| | | | | | | | install win32.h. [ruby-core:58801][Bug #9199] reported by arton. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32.c: rb_w32_dup2nobu2013-11-281-0/+23
| | | | | | | * win32/win32.c (rb_w32_dup2): extract from rb_cloexec_dup2() and redirect_dup2(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/rbconfig/sizeof: move to an extension librarynobu2013-11-181-2/+0
| | | | | | | | | | | | * common.mk, ext/rbconfig/sizeof: move RbConfig::SIZEOF to an extension library to get rid of annoying nmake VPATH rule. * inits.c (rb_call_inits), miniinit.c (Init_sizes): RbConfig::SIZEOF is no loger built-in. * template/sizes.c.tmpl (Init_sizeof): rename initialization function. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ifchange: no overwrite with an empty filenobu2013-11-031-3/+11
| | | | | | | * tool/ifchange, win32/ifchange.bat: do not overwrite with an empty file by default, and add --empty option to force it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e