aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* delete `$` sign from C identifiers卜部昌平2019-08-274-12/+12
| | | | | They lack portability. See also https://travis-ci.org/shyouhei/ruby/jobs/577164015
* rb_uninterruptible now free from ANYARGS卜部昌平2019-08-272-2/+2
| | | | | | After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, I now think ANYARGS is dangerous and should be extinct. This function has only one call site so adding appropriate prototype is trivial.
* struct MEMO now free from ANYARGS卜部昌平2019-08-272-2/+2
| | | | | | | After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, I now think ANYARGS is dangerous and should be extinct. There is only one usage of MEMO::u3::func in load.c (where void Init_Foobar(vodi) is registered) so why not just be explicit.
* rb_ivar_foreach now free from ANYARGS卜部昌平2019-08-272-6/+8
| | | | | | | After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, I now think ANYARGS is dangerous and should be extinct. This commit adds a function prototype for rb_ivar_foreach. Luckily this change revealed no problematic usage of the function.
* rb_hash_foreach now free from ANYARGS卜部昌平2019-08-275-20/+34
| | | | | | | After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, I now think ANYARGS is dangerous and should be extinct. This commit adds function prototypes for rb_hash_foreach / st_foreach_safe. Also fixes some prototype mismatches.
* rb_define_hooked_variable now free from ANYARGS卜部昌平2019-08-2710-60/+94
| | | | | | | | | After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, I now think ANYARGS is dangerous and should be extinct. This commit uses rb_gvar_getter_t / rb_gvar_setter_t for rb_define_hooked_variable / rb_define_virtual_variable which revealed lots of function prototype inconsistencies. Some of them were literally decades old, going back to dda5dc00cff334cac373096d444a0fd59e716124.
* struct st_hash_type now free from ANYARGS卜部昌平2019-08-272-5/+22
| | | | | | | After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, I now think ANYARGS is dangerous and should be extinct. This commit adds function prototypes for struct st_hash_type. Honestly I don't understand why they were commented out at the first place.
* st_foreach now free from ANYARGS卜部昌平2019-08-278-19/+33
| | | | | | | | After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, I now think ANYARGS is dangerous and should be extinct. This commit deletes ANYARGS from st_foreach. I strongly believe that this commit should have had come with b0af0592fdd9e9d4e4b863fde006d67ccefeac21, which added extra parameter to st_foreach callbacks.
* rb_thread_create now free from ANYARGS卜部昌平2019-08-274-5/+5
| | | | | | After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, I now think ANYARGS is dangerous and should be extinct. This commit deletes ANYARGS from rb_thread_create, which seems very safe to do.
* rb_proc_new / rb_fiber_new now free from ANYARGS卜部昌平2019-08-275-13/+13
| | | | | | | After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, I now think ANYARGS is dangerous and should be extinct. This commit deletes ANYARGS from rb_proc_new / rb_fiber_new, and applies RB_BLOCK_CALL_FUNC_ARGLIST wherever necessary.
* rb_catch now free from ANYARGS卜部昌平2019-08-273-7/+7
| | | | | | After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, I now think ANYARGS is dangerous and should be extinct. This commit deletes ANYARGS from rb_catch, and fixes some bugs revealed by that.
* rb_ensure now free from ANYARGS卜部昌平2019-08-2717-37/+62
| | | | | | After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, I now think ANYARGS is dangerous and should be extinct. This commit deletes ANYARGS from rb_ensure, which also revealed many arity / type mismatches.
* rb_rescue / rb_rescue2 now free from ANYARGS卜部昌平2019-08-278-18/+20
| | | | | | After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, 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.
* rb_iterate now takes rb_block_call_func_t卜部昌平2019-08-273-3/+3
| | | | | | After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, I now think ANYARGS is dangerous and should be extinct. This commit makes rb_iterate free from ANYARGS.
* decouple compile.c usage of imemo_ifunc卜部昌平2019-08-277-36/+56
| | | | | | | After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, 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.
* #define RB_BLOCK_CALL_FUNC_STRICT 1卜部昌平2019-08-273-10/+6
| | | | | | After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, 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.
* fix function prototype mismatch of rb_block_call卜部昌平2019-08-271-2/+2
| | | | Nobu missed it in f0e73fc9862c8d2c57a89349fb79012b826b8245.
* delete rb_method_defined_by declaration.卜部昌平2019-08-271-1/+0
| | | | Ko1 missed this in d5893b91faa7dc77ca6c9728d1054dabd757aead.
* Revert "Explain which test task"Nobuyoshi Nakada2019-08-272-4/+4
| | | | | | This reverts commit 9bc1667a188392b94971b9b96507af76cbd5f413. `name` lines are not expanded.
* .github/workflows/coverage.yml: add a cron job for coverage in ActionsYusuke Endoh2019-08-271-0/+68
|
* Explain which test taskNobuyoshi Nakada2019-08-272-4/+4
|
* Use array indexing with considering clang's feelingNobuyoshi Nakada2019-08-271-1/+1
| | | | | | | | | | | | | | | | | ``` 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. ```
* compile.c: remove const from the first argument of dladdrYusuke Endoh2019-08-271-1/+1
| | | | Unfortunately, dladdr accepts void*, not const void*, in Solaris.
* signal.c: Don't mark ruby_abort as NORETURN on SolarisYusuke Endoh2019-08-271-0/+2
| | | | | | | | | | | to suppress a warning. ``` signal.c: In function 'ruby_abort': signal.c:987:1: warning: 'noreturn' function does return } ^ ```
* Fix the appropriate C++ compiler in OS X selectionKazuhiro NISHIYAMA2019-08-271-5/+5
| | | | | Merge space and slash to character class and add missing `CXX=` before `=g++-4.2` at 5e10cb04e88c8a95ee44f6cad2bdf264e0dff92a
* Added license comment [Bug #12230] [ci skip]Nobuyoshi Nakada2019-08-271-0/+1
|
* Remove duplicated delegationaycabta2019-08-271-1/+0
|
* Delegete an instance method to a class method correctlyaycabta2019-08-271-1/+1
|
* this iv table should also use the new update functionAaron Patterson2019-08-261-1/+1
|
* Save value to @ambiguous_width because of a accessoraycabta2019-08-271-3/+3
|
* Pick lib/readline.rb from ruby/relineaycabta2019-08-271-1/+2
|
* The "private" doesn't make sence for class methods and a constantaycabta2019-08-271-2/+0
|
* Use preposing "private" to define methodsaycabta2019-08-271-6/+4
|
* Adjust method forwardings of Relineaycabta2019-08-271-13/+19
|
* Try only updating hash value referencesAaron Patterson2019-08-261-1/+36
| | | | | | | 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.
* Make `gc_update_table_refs` match `mark_tbl_no_pin` a little more closelyAaron Patterson2019-08-261-2/+4
| | | | | This commit just makes `gc_update_table_refs` match `mark_tbl_no_pin` more closely.
* Fix use_lib_reline for test/readlineaycabta2019-08-271-1/+4
|
* Remove .freeze.manga_osyo2019-08-271-2/+2
|
* Add test with encoding.manga_osyo2019-08-271-10/+10
|
* Change to test file path.manga_osyo2019-08-271-0/+0
|
* Add support Windows in CI.manga_osyo2019-08-271-8/+8
|
* Add test reline.manga_osyo2019-08-271-0/+242
|
* Fix `Reline::Windows`.manga_osyo2019-08-271-1/+1
|
* Refactoring Reline.manga_osyo2019-08-274-634/+323
|
* Fix reference core method.manga_osyo2019-08-271-2/+2
|
* Remove test_mode in `lib/reline`.manga_osyo2019-08-272-7/+12
|
* Refactoring Reline accessor.manga_osyo2019-08-272-0/+307
|
* * 2019-08-27 [ci skip]git2019-08-271-1/+1
|
* Handle binding.irb for frozen objects and BasicObjects using a delegateJeremy Evans2019-08-271-1/+30
| | | | Fixes Ruby Bug 13264
* Move private call without arguments inside methodJeremy Evans2019-08-271-1/+1
| | | | | | 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.