summaryrefslogtreecommitdiff
path: root/win32
Commit message (Collapse)AuthorAgeFilesLines
* [win32] get rid of redefinition of reserved macroNobuyoshi Nakada2020-03-051-0/+2
| | | | | | ``` warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored ```
* [win32] suppress false warning by mingw gccNobuyoshi Nakada2020-03-041-1/+1
|
* avoid defining inline卜部昌平2020-02-201-1/+1
| | | | | | Recent (since 2012 maybe?) MSVC ships a header named xkeycheck.h, which (kindly!) aborts compilation on redefinition of C++ keywords. Let's not define this in case of C++.
* support C++ std::nullptr_t卜部昌平2020-01-311-0/+3
| | | | | | | C++ keyword `nullptr` represents a null pointer (note also that NULL is an integer in C++ due to its design flaw). Its type is `std::nullptr_t`, defined in <cstddef> standard header. Why not support it when the backend implementation can take a null pointer as an argument.
* decouple internal.h headers卜部昌平2019-12-263-0/+8
| | | | | | | | | | | | | | | | | | Saves comitters' daily life by avoid #include-ing everything from internal.h to make each file do so instead. This would significantly speed up incremental builds. We take the following inclusion order in this changeset: 1. "ruby/config.h", where _GNU_SOURCE is defined (must be the very first thing among everything). 2. RUBY_EXTCONF_H if any. 3. Standard C headers, sorted alphabetically. 4. Other system headers, maybe guarded by #ifdef 5. Everything else, sorted alphabetically. Exceptions are those win32-related headers, which tend not be self- containing (headers have inclusion order dependencies).
* Fixed misspellingsNobuyoshi Nakada2019-12-201-1/+1
| | | | Fixed misspellings reported at [Bug #16437], only in ruby and rubyspec.
* remove prelude.cKoichi Sasada2019-12-111-5/+0
| | | | | | | | | prelude.c is an automatically generated file by template/prelude.c.tmpl. However it does not contain any required functions. So remove it from dependency. Also miniprelude.c is included by mini_builtin.c and does not need to make miniprelude.o.
* Fix `$(RMALL) -r` on WindowsNAKAMURA Usaku2019-11-262-2/+2
| | | | `set recursive=1 &` sets `1 ` to `recursive`, not `1`.
* Turn C4047 warning into errorNobuyoshi Nakada2019-11-201-1/+1
| | | | | | | | | | | Warned at making precompiled header on mswin. ``` building rb_mjit_header-2.7.0.pch vm.c d:\a\ruby\ruby\src\vm_args.c(1117): warning C4047: '=': 'const rb_callable_method_entry_t *' differs in levels of indirection from 'int' rb_mjit_header-2.7.0.pch updated ```
* Define NULLCMD as printing NUL [Bug #16331]Nobuyoshi Nakada2019-11-101-1/+1
|
* Define NULLCMD as an empty label [Bug #16331]Nobuyoshi Nakada2019-11-101-0/+1
|
* Fix builtin scirpt pathsNobuyoshi Nakada2019-11-091-3/+0
| | | | | Do not search builtin scripts by using VPATH, to get rid of weird nmake VPATH.
* Add VPATH to rbinc rule for nmakeNobuyoshi Nakada2019-11-081-0/+3
|
* Share test-bundled-gems-run in common.mkNobuyoshi Nakada2019-11-051-7/+0
|
* win32.c: Remove unused calls to StartSockets (#2312)Gabriel Nagy2019-10-111-75/+2
| | | | | | | | NtSocketsInitialized behavior changed in e33b1690, requiring a call to rb_w32_sysinit for starting Windows Sockets. This commit removes NtSocketsInitialized entirely to avoid confusion. Signed-off-by: Gabriel Nagy <gabriel.nagy@puppet.com>
* Adjusted spaces [ci skip]Nobuyoshi Nakada2019-09-271-1/+1
|
* [EXPERIMENTAL] MakeMakefile::CXX for C++Nobuyoshi Nakada2019-09-181-0/+1
|
* fix CentOS 6 compile error卜部昌平2019-09-101-0/+1
| | | | See also https://rubyci.org/logs/rubyci.s3.amazonaws.com/centos6/ruby-master/log/20190910T003005Z.fail.html.gz
* Try to fix compile error on win32Kazuhiro NISHIYAMA2019-09-061-0/+2
| | | | | | | | https://github.com/ruby/ruby/runs/213995386#step:7:810 ``` cxxanyargs.cpp C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\corecrt_malloc.h(54): error C2485: '__restrict': unrecognized extended attribute ```
* drop-in type check for rb_define_method卜部昌平2019-08-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The rb_define_method function takes a pointer to ANYARGS-ed functions, which in fact varies 18 different prototypes. We still need to preserve ANYARGS for storages but why not check the consistencies if possible. Q&As: Q: Where did the magic number "18" came from in the description above? A: Count the case branch of vm_method.c:call_cfunc_invoker_func(). Note also that the 18 branches has lasted for at least 25 years. See also 200e0ee2fd3c1c006c528874a88f684447215524. Q: What is this __weakref__ thing? A: That is a kind of function overloading mechanism that GCC provides. In this case for instance rb_define_method0 is an alias of rb_define_method, with a strong type. Q: What is this __transparent_union__ thing? A: That is another kind of function overloading mechanism that GCC provides. In this case the attributed function pointer is either VALUE(*)(int,VALUE*,VALUE) or VALUE(*)(int,const VALUE*,VALUE). This is better than void* or ANYARGS because we can reject all other possibilities than the two. Q: What does this rb_define_method macro mean? A: It selects appropriate alias of the rb_define_method function, depending on the arity. Q: Why the prototype change of rb_f_notimplement? A: Function pointer to rb_f_notimplement is special cased in vm_method.c:rb_add_method_cfunc(). That should be handled by the __builtin_choose_expr chain inside of rb_define_method macro expansion. In order to do so, comparison like (func == rb_f_notimplement) is inappropriate for __builtin_choose_expr's expression (which must be a compile-time integer constant but the address of rb_f_notimplement is not fixed until the linker). So instead we are using __builtin_types_compatible_p, and in doing so we need to distinguish rb_f_notimplement from others, by type.
* Added license comment [Bug #12230] [ci skip]Nobuyoshi Nakada2019-08-271-0/+1
|
* * expand tabs. [ci skip]git2019-08-191-10/+10
|
* Set flag to allow unprivileged users to create symlinks (#2381)Nobuyoshi Nakada2019-08-191-2/+22
| | | | * [Win32] set flag to allow unprivileged users to create symlinks
* [DOC] "nmake check" is preferable to "nmake exam" now [ci skip]Nobuyoshi Nakada2019-08-041-4/+4
| | | | [Feature #14187]
* [DOC] updated about icons in win32/README.win32 [ci skip]Nobuyoshi Nakada2019-08-041-5/+9
| | | | [Bug #13348]
* [DOC] "nmake check" is preferable to "nmake exam" now [ci skip]Nobuyoshi Nakada2019-08-041-1/+1
| | | | [Feature #14187]
* [DOC] Mark up path names to show a backslash [ci skip]Nobuyoshi Nakada2019-08-041-2/+2
|
* Fix errno at seeking socket/pipe on WindowsNobuyoshi Nakada2019-07-251-0/+11
| | | | [Bug #12230]
* Improve build process and coroutine implementation selection.Samuel Williams2019-07-181-13/+13
|
* Remove IA64 support.Samuel Williams2019-06-194-15/+9
|
* Do not export InitVM functionsNobuyoshi Nakada2019-05-171-1/+1
|
* No longer svn & git-svn are usedNobuyoshi Nakada2019-05-101-6/+1
|
* Forgotten to removeNAKAMURA Usaku2019-04-301-1/+0
|
* Revert previous commit; it was meaninglessNAKAMURA Usaku2019-04-301-20/+0
|
* * expand tabs.git2019-04-301-16/+16
|
* Use CreateToolhelp32Snapshot instead of NtQueryInformationProcess to get ↵NAKAMURA Usaku2019-04-301-0/+21
| | | | | | ppid on Windows Try to get rid of a spec error.
* Makefiles need to be indented by tabsNobuyoshi Nakada2019-04-281-1/+1
|
* Now only supports Git repositoryNAKAMURA Usaku2019-04-221-8/+6
|
* Remove debug linesusa2019-04-211-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Show/unshow executing command as specified by `V`usa2019-04-211-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* FindFirstFile cannot glob share namesnobu2019-03-041-0/+14
| | | | | | | | * win32/file.c (replace_to_long_name): do not try to glob host names and share names by FindFirstFile which is useless for that purpose. [ruby-core:91656] [Bug #15633] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Parenthesize `for` to ignore errorsnobu2019-02-131-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Ignore errors on cleaningnobu2019-02-131-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* README.win32: [DOC] added modeline [ci skip]nobu2019-02-051-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update requirementsusa2019-02-041-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* README.win32: mention GIT as well as SVNnobu2019-02-021-2/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* README.win32: update required commands and platform namesnobu2019-02-021-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* README.win32: use label-listnobu2019-02-021-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* README.win32: reformat as RDocnobu2019-02-011-40/+35
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32/Makefile.sub: try to use __restrict on Visual Studio 2013k0kubun2019-01-041-1/+1
| | | | | | | | | as well. Follows up r66598. https://bugs.ruby-lang.org/issues/15347#note-7 is saying __restrict is supported on Visual Studio 2013. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e