summaryrefslogtreecommitdiff
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
* Use Fiddle::Importer directlyHiroshi SHIBATA2020-11-113-14/+5
|
* Removed win32/resolv.rb for 32bit envHiroshi SHIBATA2020-11-112-266/+0
|
* Removed win32apiHiroshi SHIBATA2020-11-111-47/+0
|
* Use fiddle (win32/importer) instead of Win32APINAKAMURA Usaku2020-11-101-310/+317
| | | | - ext/win32/lib/win32/sspi.rb: Use fiddle (win32/importer) instead of Win32API
* Complex and Rational is embedded classes nowHiroshi SHIBATA2020-11-102-2/+0
|
* ext/socket/rubysocket.h: avoid the conflict of T_DATA definition in AIXRei Odaira2020-11-011-1/+1
|
* Promote win32ole to default gems.Hiroshi SHIBATA2020-10-301-0/+21
| | | | | But win32ole gem is still experimental for 3.0.0-preview2. I'm working to extract this library on https://github.com/ruby/win32ole.
* Use public allocators for creating new T_OBJECT objectsAaron Patterson2020-10-282-4/+4
| | | | This way the header flags and object internals are set correctly
* Use rb_intern_const instead of rb_intern in Init functionsNobuyoshi Nakada2020-10-214-39/+39
| | | | | | | | | ``` find . -name \*.o -exec nm {} + |& sed '/Init_.*\.rbimpl_id/!d;s/^.* b //;s/\.[1-9][0-9]*$//;s/\.rbimpl_id$//' | uniq ``` should be empty.
* Don't redefine #rb_intern over and over againStefan Stüben2020-10-213-56/+49
|
* Update dependencies for macOSNobuyoshi Nakada2020-10-215-52/+860
|
* Implement a freeze: parser optionJean Boussier2020-10-205-45/+126
| | | | | | | If set to true all parsed objects will be immediately frozen, and strings will be deduplicated if the Ruby implementation allows it.
* Followed up with 708413807ae958afb79257b18475424e0a8a4a56Hiroshi SHIBATA2020-10-191-1/+12
| | | | | | * Added sync task for digest * Update doc/* for default gems * Update the latest version of gemspec
* Revisit to promote digest to default gems.Hiroshi SHIBATA2020-10-191-0/+34
| | | | This reverts commit f39021be7e0eac20ef7f06592769955ea482470f.
* keep proc on the stack so it does not moveAaron Patterson2020-10-161-3/+0
|
* Promote pathname to default gemsHiroshi SHIBATA2020-10-141-0/+25
|
* Adjusted indents [ci skip]Nobuyoshi Nakada2020-10-111-2/+3
|
* Respect the original styles [ci skip]Nobuyoshi Nakada2020-10-111-26/+29
|
* [ruby/io-console] Refined getch warningsNobuyoshi Nakada2020-10-111-3/+3
| | | | https://github.com/ruby/io-console/commit/f84e6abcce
* [ruby/io-console] Relaxed min: option warningNobuyoshi Nakada2020-10-111-1/+7
| | | | | | | | When `min: 0` is given to `IO#getch` with `time:` option, it is expected to return nil if timed out, and needed for source code the compatibility with unixen platforms. https://github.com/ruby/io-console/commit/a2afbe72bd
* [ruby/io-console] Fix timeout type error (#18)Nobuyoshi Nakada2020-10-111-1/+1
| | | | | | | | | | | | | | | | | Fixed TypeError when IO#getch timed out `rb_io_wait` returns a bit-flags Integer representing available events, or Qfalse if timed out. Also the result of `NUM2INT` is not a `VALUE`. ``` $ ./bin/ruby -v -rio/console -e "p IO.console.getch(intr: true, time: 0.1)" ruby 3.0.0dev (2020-10-09T20:27:30Z master 5ea2ea74cc) [x64-mingw32] -e:1:in `getch': no implicit conversion of false into Integer (TypeError) from -e:1:in `<main>' ``` https://github.com/ruby/io-console/commit/3bdfaf62df
* [ruby/io-console] Fixed "Rework console to use `rb_io_wait`."Nobuyoshi Nakada2020-10-112-30/+53
| | | | | | | * Fixed backward compatibility. * Added missing `rb_scheduler_timeout` declaration. https://github.com/ruby/io-console/commit/813806079f
* Fixed typo in commentIkko Ashimine2020-10-101-2/+2
| | | alway -> always
* Prevent objects from moving while iterating the heapAaron Patterson2020-10-061-6/+8
| | | | | | This iterator uses an st_table, but if objects move the references in the st table won't be updated. This patch just changes the st table to an identity hash.
* Appended a newline to suppress newline-eof warningNobuyoshi Nakada2020-10-061-1/+1
|
* STRUCT_ALIGNOF: use RUBY_ALIGNOF卜部昌平2020-10-061-2/+1
| | | | | This was a workaround for RUBY_ALIGNOF's glitch, which has already been fixed. See also https://github.com/ruby/ruby/pull/3570
* mark regex internal to string scannerAaron Patterson2020-10-021-1/+3
|
* Fix ObjectSpace.dump(obj, output: :stdout)Kazuhiro NISHIYAMA2020-10-031-2/+6
| | | | | | | RDoc says `ObjectSpace.dump(obj, output: :stdout) # => nil`, but it returns STDOUT since fbba6bd4e3dff7a61965208fecae908f10c4edbe. I think it is unintentional change.
* memory_view.c: Use ssize_t for ndim in memory_view (#3615)Kenta Murata2020-10-021-1/+1
| | | | | * memory_view.c: Use ssize_t for ndim in memory_view * include/ruby/memory_view.h: Fix the type of item_size argument
* strip trailing spaces [ci skip]Nobuyoshi Nakada2020-09-301-1/+1
|
* Fix up dependencies on internal/sanitizers.hNobuyoshi Nakada2020-09-292-13/+16
|
* Refactor common heap iteration codeAaron Patterson2020-09-281-125/+94
| | | | | We have code common to all heap iteration paths in this file. Refactor such that we keep ASAN checks and flags checks in one place
* Fix ASAN support when invalidating CCsAaron Patterson2020-09-281-2/+2
| | | | | Again, this code is walking the heap. Empty slots can be poisoned, so we need to unpoison before checking the type
* make ext/coverage ASAN friendlyAaron Patterson2020-09-281-0/+8
|
* Make ext/objspace ASAN friendlyAaron Patterson2020-09-282-0/+44
| | | | | ext/objspace iterates over the heap, but some slots in the heap are poisoned, so we need to take care of that when running with ASAN
* ext/socket/ipsocket.c: prevent "warning: unused variable 'resolv_timeout'"Yusuke Endoh2020-09-271-2/+1
|
* update-depsNARUSE, Yui2020-09-261-0/+100
| | | | https://github.com/ruby/ruby/runs/1169621878
* Return nil when argument to ObjectSpace.internal_class_of is T_IMEMOAlan Wu2020-09-251-2/+7
| | | | | | | The added test case crashes the interpreter because it makes ObjectSpace.internal_class_of return the second VALUE slot of an AST imemo object. The second VALUE slot of `struct rb_ast_struct` is not a VALUE and not a pointer to a Ruby object.
* ext/readline/depend: update-deps --fixKenta Murata2020-09-261-0/+50
|
* [ruby/readline-ext] Remove unnecessary header files from dependaycabta2020-09-251-150/+0
| | | | https://github.com/ruby/readline-ext/commit/f9783c0739
* Buffer protocol proposal (#3261)Kenta Murata2020-09-253-0/+567
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add buffer protocol * Modify for some review comments * Per-object buffer availability * Rename to MemoryView from Buffer and make compilable * Support integral repeat count in memory view format * Support 'x' for padding bytes * Add rb_memory_view_parse_item_format * Check type in rb_memory_view_register * Update dependencies in common.mk * Add test of MemoryView * Add test of rb_memory_view_init_as_byte_array * Add native size format test * Add MemoryView test utilities * Add test of rb_memory_view_fill_contiguous_strides * Skip spaces in format string * Support endianness specifiers * Update documentation * Support alignment * Use RUBY_ALIGNOF * Fix format parser to follow the pack format * Support the _ modifier * Parse count specifiers in get_format_size function. * Use STRUCT_ALIGNOF * Fix test * Fix test * Fix total size for the case with tail padding * Fix rb_memory_view_get_item_pointer * Fix rb_memory_view_parse_item_format again
* [flori/json] Fix JSON.load_file docJean Boussier2020-09-251-3/+3
| | | | https://github.com/flori/json/commit/cb61a00ba8
* [flori/json] Partial compliance with doc/method_documentation.rdocBurdetteLamar2020-09-251-17/+7
| | | | https://github.com/flori/json/commit/6dfa885134
* [flori/json] Enhanced RDoc for JSON.dump (#443)Burdette Lamar2020-09-251-11/+23
| | | | | * Enhanced RDoc for JSON.dump https://github.com/flori/json/commit/03f1699ec4
* bundle the LICENSE file in the gemJulien Feltesse2020-09-251-0/+1
|
* [flori/json] Nodoc for recurse_procBurdetteLamar2020-09-251-1/+1
| | | | https://github.com/flori/json/commit/f8c0fe2408
* [flori/json] RDoc for JSON.load with procBurdetteLamar2020-09-251-18/+58
| | | | https://github.com/flori/json/commit/a55c91934e
* unify json-java gemspec with the baselineKarol Bucek2020-09-251-6/+6
|
* [flori/json] RDoc example for JSON.loadBurdetteLamar2020-09-252-14/+88
| | | | https://github.com/flori/json/commit/e4eead665c
* [flori/json] Enhance RDoc for JSON.parseBurdetteLamar2020-09-251-9/+40
| | | | https://github.com/flori/json/commit/33e64ef255