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

57510 Коммитов

Автор SHA1 Сообщение Дата
卜部昌平 703783324c rb_ensure now free from ANYARGS
After 5e86b005c0, I now think ANYARGS is
dangerous and should be extinct.  This commit deletes ANYARGS from
rb_ensure, which also revealed many arity / type mismatches.
2019-08-27 15:52:26 +09:00
卜部昌平 5c7c2d9951 rb_rescue / rb_rescue2 now free from ANYARGS
After 5e86b005c0, I now think ANYARGS is
dangerous and should be extinct.  This commit deletes ANYARGS from
rb_rescue / rb_rescue2, which revealed many arity / type mismatches.
2019-08-27 15:52:26 +09:00
卜部昌平 3cae73133c rb_iterate now takes rb_block_call_func_t
After 5e86b005c0, I now think ANYARGS is
dangerous and should be extinct.  This commit makes rb_iterate free
from ANYARGS.
2019-08-27 15:52:26 +09:00
卜部昌平 b8fd2e83e7 decouple compile.c usage of imemo_ifunc
After 5e86b005c0, I now think ANYARGS is
dangerous and should be extinct.  This commit deletes ANYARGS from
struct vm_ifunc, but in doing so we also have to decouple the usage
of this struct in compile.c, which (I think) is an abuse of ANYARGS.
2019-08-27 15:52:26 +09:00
卜部昌平 7329b3339a #define RB_BLOCK_CALL_FUNC_STRICT 1
After 5e86b005c0, I now think ANYARGS is
dangerous and should be extinct.  Let's start from making
rb_block_call_func_t strict, and apply RB_BLOCK_CALL_FUNC_ARGLIST liberally.
2019-08-27 15:52:26 +09:00
卜部昌平 0c8592b9af fix function prototype mismatch of rb_block_call
Nobu missed it in f0e73fc986.
2019-08-27 15:52:26 +09:00
卜部昌平 6007c7c366 delete rb_method_defined_by declaration.
Ko1 missed this in d5893b91fa.
2019-08-27 15:52:26 +09:00
Nobuyoshi Nakada 2fb723b8af
Revert "Explain which test task"
This reverts commit 9bc1667a18.

`name` lines are not expanded.
2019-08-27 15:11:39 +09:00
Yusuke Endoh 0c8525ecc9 .github/workflows/coverage.yml: add a cron job for coverage in Actions 2019-08-27 14:40:59 +09:00
Nobuyoshi Nakada 9bc1667a18
Explain which test task 2019-08-27 14:30:52 +09:00
Nobuyoshi Nakada 2789bdddc7
Use array indexing with considering clang's feeling
```
In file included from sprintf.c:1256:
./vsnprintf.c:833:8: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
                            IS_PRI_EXTRA_MARK(fmt)) {
                            ^~~~~~~~~~~~~~~~~~~~~~
./vsnprintf.c:826:34: note: expanded from macro 'IS_PRI_EXTRA_MARK'
           strncmp((s)+1, PRI_EXTRA_MARK+1, \
                          ~~~~~~~~~~~~~~^~
./vsnprintf.c:833:8: note: use array indexing to silence this warning
./vsnprintf.c:826:34: note: expanded from macro 'IS_PRI_EXTRA_MARK'
           strncmp((s)+1, PRI_EXTRA_MARK+1, \
                                        ^
1 warning generated.
```
2019-08-27 14:25:58 +09:00
Yusuke Endoh d53b669948 compile.c: remove const from the first argument of dladdr
Unfortunately, dladdr accepts void*, not const void*, in Solaris.
2019-08-27 14:05:20 +09:00
Yusuke Endoh 8eee3f3a36 signal.c: Don't mark ruby_abort as NORETURN on Solaris
to suppress a warning.

```
signal.c: In function 'ruby_abort':
signal.c:987:1: warning: 'noreturn' function does return
 }
 ^
```
2019-08-27 13:59:13 +09:00
Kazuhiro NISHIYAMA 76abd79629
Fix the appropriate C++ compiler in OS X selection
Merge space and slash to character class and add missing `CXX=` before `=g++-4.2`
at 5e10cb04e8
2019-08-27 10:43:37 +09:00
Nobuyoshi Nakada 2283411265
Added license comment [Bug #12230] [ci skip] 2019-08-27 07:59:50 +09:00
aycabta 744be55fad Remove duplicated delegation 2019-08-27 06:30:32 +09:00
aycabta fd0a4a64a3 Delegete an instance method to a class method correctly 2019-08-27 05:59:56 +09:00
Aaron Patterson 9f0f777173
this iv table should also use the new update function 2019-08-26 13:42:16 -07:00
aycabta f13db4adde Save value to @ambiguous_width because of a accessor 2019-08-27 05:33:27 +09:00
aycabta 978ff1ff3a Pick lib/readline.rb from ruby/reline 2019-08-27 05:24:13 +09:00
aycabta f2a5c50f94 The "private" doesn't make sence for class methods and a constant 2019-08-27 05:18:51 +09:00
aycabta 68207bb4fc Use preposing "private" to define methods 2019-08-27 05:18:51 +09:00
aycabta d8bcede9c3 Adjust method forwardings of Reline 2019-08-27 05:18:46 +09:00
Aaron Patterson 09d8e06b33
Try only updating hash value references
I'm afraid the keys to this hash are just integers, and those integers
may look like VALUE pointers when they are not.  Since we don't mark the
keys to this hash, it's probably safe to say that none of them have
moved, so we shouldn't try to update the references either.
2019-08-26 11:31:52 -07:00
Aaron Patterson d9bfbe363d
Make `gc_update_table_refs` match `mark_tbl_no_pin` a little more closely
This commit just makes `gc_update_table_refs` match `mark_tbl_no_pin`
more closely.
2019-08-26 11:14:03 -07:00
aycabta 3a4a58e2cc Fix use_lib_reline for test/readline 2019-08-27 01:42:41 +09:00
manga_osyo 344f507e4e Remove .freeze. 2019-08-27 01:23:50 +09:00
manga_osyo 50d4a77041 Add test with encoding. 2019-08-27 01:23:46 +09:00
manga_osyo 0295bffc96 Change to test file path. 2019-08-27 01:23:39 +09:00
manga_osyo 1ee9299bca Add support Windows in CI. 2019-08-27 01:23:34 +09:00
manga_osyo f33117fbc6 Add test reline. 2019-08-27 01:23:29 +09:00
manga_osyo 195f545c14 Fix `Reline::Windows`. 2019-08-27 01:23:24 +09:00
manga_osyo 298ac04710 Refactoring Reline. 2019-08-27 01:23:19 +09:00
manga_osyo afed2668a6 Fix reference core method. 2019-08-27 01:23:15 +09:00
manga_osyo f60e5a1f99 Remove test_mode in `lib/reline`. 2019-08-27 01:23:10 +09:00
manga_osyo 9c0cd6a09e Refactoring Reline accessor. 2019-08-27 01:23:04 +09:00
git d5b237325b * 2019-08-27 [ci skip] 2019-08-27 00:11:32 +09:00
Jeremy Evans 7d9c3a5712 Handle binding.irb for frozen objects and BasicObjects using a delegate
Fixes Ruby Bug 13264
2019-08-27 00:10:34 +09:00
Jeremy Evans caeafbe825 Move private call without arguments inside method
This code did not have the desired effect.  I'm not sure if
irb_binding is supposed to be private or not.  If not, the private
call can just be removed.
2019-08-27 00:10:34 +09:00
Kazuhiro NISHIYAMA ccc5b22a7f
Expand JOBS instead of meaningless export (#2402)
* Expand JOBS instead of meaningless export

* Remove -j option in TESTOPTS of test-bundled-gems

https://github.com/ruby/ruby/runs/203129516#step:10:167
> invalid option: -j3
2019-08-26 21:09:02 +09:00
Nobuyoshi Nakada 48f1a38f23
Limit ChangeLog entries
Since the previous release date, when the starting message is not
found.
2019-08-26 18:27:17 +09:00
Kazuhiro NISHIYAMA 972222c039
Show MFLAGS to check `Set ENV` in .github/workflows/ubuntu.yml 2019-08-26 17:45:18 +09:00
Nobuyoshi Nakada 44bead391f
CPPFLAGS is not needed for link 2019-08-26 16:54:10 +09:00
Nobuyoshi Nakada 2614653622
Moved INCFLAGS to XCFLAGS from CPPFLAGS as well as mswin
Rules which have used CPPFLAGS will need XCFLAGS or INCFLAGS now.
2019-08-26 16:54:10 +09:00
Nobuyoshi Nakada fafabe2f43
Add INCFLAGS for fake.rb
INCFLAGS is not included in CPPFLAGS on mswin, not to be exported
to rbconfig.rb.
2019-08-26 16:11:53 +09:00
Nobuyoshi Nakada b4d6d9c167
Removed unnecessary flags for fake.rb
Flags for ruby core such as warning and `_FORTIFY_SOURCE` macro
are not necessary to make fake.rb, except for `RUBY_EXPORT` macro
which prevents to include ruby/backward.h.
2019-08-26 13:14:01 +09:00
Nobuyoshi Nakada 1581249de3
Added in-srcdir macro [ci skip] 2019-08-26 13:13:19 +09:00
卜部昌平 5e86b005c0 uid_t and gid_t are narrower than VALUE.
Often uid / gid are 16 bit or 32 bit integers, while VALUE are 32
to 64 bits.  They tend to differ in size.  Because rb_ensure expects
its callbacks to take VALUE arguments, narrowing must be done by
hand, otherwise data corruption can happen depending on machine ABI.
2019-08-26 13:01:58 +09:00
卜部昌平 48131a4673 rb_mjit_header.h is not worth documenting [ci skip]
This is an auto-generated header file that does not include anything
interesting.  Should skip generating CAPI documents.
2019-08-26 13:01:58 +09:00
Nobuyoshi Nakada fa6c1b06ad
Suppress a "clobbered" warning 2019-08-26 12:00:19 +09:00