| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
| |
This unused parameter seems to be accidently introduced by https://github.com/ruby/ruby/commit/9e6e39c
|
|
|
|
|
| |
Something weird results in int-in-bool-context and
stringop-overflow warnings.
|
|
|
|
| |
https://hackerone.com/reports/1306859
|
|
|
|
|
|
|
| |
Implements [Feature #18273]
Returns an array containing the receiver's direct subclasses without
singleton classes.
|
|
|
|
|
|
|
|
| |
Presence of RBIMPL_ATTR_NONNULL let C compilers to eliminate
must_not_null(). Because null pointers are not allowed to exist there
are no reason to call the function. In reality null pointers are still
passed to those functions in a number of ways. Runtime check for them
are definitely nice to have. fix [Feature#18280]
|
|
|
|
| |
Must not be a bad idea to improve documents. [ci skip]
|
|
|
|
| |
Wrong parameter name. [ci skip]
|
|
|
|
| |
Wrong parameter name. [ci skip]
|
| |
|
|
|
|
|
| |
Because `make install` installs this header to target systems, it must
be ready to be `#include`d form a C++ program.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
invalidate_mark_stack_chunk
This commit deprecates rb_gc_force_recycle and coverts it to a no-op
function. Also removes invalidate_mark_stack_chunk since only
rb_gc_force_recycle uses it.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Doesn't include receiver or singleton classes.
Implements [Feature #14394]
Co-authored-by: fatkodima <fatkodima123@gmail.com>
Co-authored-by: Benoit Daloze <eregontp@gmail.com>
|
|
|
|
| |
Just split the comment for struct's one and array's one.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(gdb) ptype/o struct RString
/* offset | size */ type = struct RString {
/* 0 | 16 */ struct RBasic {
/* 0 | 8 */ VALUE flags;
/* 8 | 8 */ const VALUE klass;
/* total size (bytes): 16 */
} basic;
/* 16 | 24 */ union {
/* 24 */ struct {
/* 16 | 8 */ long len;
/* 24 | 8 */ char *ptr;
/* 32 | 8 */ union {
/* 8 */ long capa;
/* 8 */ VALUE shared;
/* total size (bytes): 8 */
} aux;
/* total size (bytes): 24 */
} heap;
/* 24 */ struct {
/* 16 | 24 */ char ary[24];
/* total size (bytes): 24 */
} embed;
/* XXX 8-byte padding */
/* total size (bytes): 24 */
} as;
/* total size (bytes): 40 */
}
(gdb)
|
|
|
|
|
| |
This commit adds support for embedded strings with variable capacity and
uses Variable Width Allocation to allocate strings.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
instead
Refinement#import_methods imports methods from modules.
Unlike Module#include, it copies methods and adds them into the refinement,
so the refinement is activated in the imported methods.
[Bug #17429] [ruby-core:101639]
|
|
|
|
|
| |
`rb_encoding` is defined as `const OnigEncodingType`.
Fix lots of C4114 warnings for each files by MSVC.
|
|
|
|
| |
I dislike unnatural casts.
|
|
|
|
| |
Nobu doesn't like (char*) cast.
|
|
|
|
| |
Less macros == huge win.
|
|
|
|
|
|
| |
2,291 lines are too much! include/ruby/encoding.h became the biggest
header file once it had doxygen comments. Let us split it into smaller
parts, so that we can better organise their contents.
|
|
|
|
|
| |
My bad. The document is clearly broken. Maybe I pressed my delete key
too much. [ci skip]
|
|
|
|
| |
Must not be a bad idea to improve documents.
|
|
|
|
|
| |
Runtime assertion for the argument declared as non-null.
This macro does nothing if `RBIMPL_ATTR_NONNULL` is effective,
otherwise asserts that the argument is non-null.
|
|
|
|
|
|
| |
On MinGW, where both of Win32 API and GCC built-ins are available,
the mismatch of implementations to the definition caused lots of
warnings.
|
|
|
|
|
|
|
|
| |
I observed CI failures.
https://github.com/ruby/ruby/actions/runs/1240165911
It turns out that RBIMPL_ATTR_NOALIAS was not mature before. Skip
using it for old clang, and everything work as expected.
|
|
|
|
|
| |
Reduce macros to do the same things in inline functions instead. This
way assertions can be made granular.
|
| |
|
|
|
|
| |
Must not be a bad idea to improve documents. [ci skip]
|
|
|
|
| |
Apply commit:733ffa74cd32a5c11ff744a5490782daa00ff1ae again.
|
|
|
|
|
| |
Linking printf family functions makes mjit objects to link
unnecessary code.
|
|
|
|
| |
I was not aware of this because I use clang these days.
|
|
|
|
| |
Explicit check done at runtime.
|
|
|
|
| |
I was not aware of this because I use clang these days.
|
|
|
|
|
|
|
|
|
| |
Silly bug, they write back consumed bytes through passed pointers. Must
never be pure functions.
ruby_scan_oct does not refer any static variables so it can still be
__declspec(noalias), while ruby_scan_hex is not because it reads from
ruby_digit36_to_number_table.
|
|
|
|
| |
See https://ci.appveyor.com/project/ruby/ruby/builds/40686153/job/1wihxw5m5kybtohj
|
|
|
|
|
| |
Everything defined in this header file are for backwards compatibility
only. No one practically need them any longer. [ci skip]
|
|
|
|
| |
There is nothing interesting here. [ci skip]
|
|
|
|
| |
Must not be a bad idea to improve documents. [ci skip]
|
|
|
|
|
|
|
|
|
| |
The only thing that remains in this file which is still worth
documenting is the RUBY macro. Everything else were split into many
files in
https://github.com/ruby/ruby/pull/2991/commits/1ff4cee2b172bf7653c29a8522c132907172b975
[ci skip]
|
| |
|