summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2021-10-26Add Class#descendantsJeremy Evans
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> Notes: Merged: https://github.com/ruby/ruby/pull/4974 Merged-By: jeremyevans <code@jeremyevans.net>
2021-10-26improve doc coverage [ci skip]卜部昌平
Just split the comment for struct's one and array's one.
2021-10-26just another evidence that @shyouhei is an idiot [ci skip]卜部昌平
(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)
2021-10-25[Feature #18239] Implement VWA for stringsPeter Zhu
This commit adds support for embedded strings with variable capacity and uses Variable Width Allocation to allocate strings. Notes: Merged: https://github.com/ruby/ruby/pull/4933
2021-10-25[Feature #18239] Add struct for embedded stringsPeter Zhu
Notes: Merged: https://github.com/ruby/ruby/pull/4933
2021-10-21Deprecate include/prepend in refinements and add Refinement#import_methods ↵Shugo Maeda
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]
2021-10-06Remove duplicate type qualifiersNobuyoshi Nakada
`rb_encoding` is defined as `const OnigEncodingType`. Fix lots of C4114 warnings for each files by MSVC.
2021-10-05Adjust types to rb_enc_left_char_headNobuyoshi Nakada
I dislike unnatural casts.
2021-10-05rb_enc_left_char_head(): take void*卜部昌平
Nobu doesn't like (char*) cast. Notes: Merged: https://github.com/ruby/ruby/pull/4909
2021-10-05include/ruby/encoding.h: convert macros into inline functions卜部昌平
Less macros == huge win. Notes: Merged: https://github.com/ruby/ruby/pull/4909
2021-10-05split include/ruby/encoding.h卜部昌平
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. Notes: Merged: https://github.com/ruby/ruby/pull/4909
2021-10-05rb_ractor_shareable_p(): fix doxygen卜部昌平
My bad. The document is clearly broken. Maybe I pressed my delete key too much. [ci skip] Notes: Merged: https://github.com/ruby/ruby/pull/4909
2021-09-30rb_fiber_raise(): add doxygen卜部昌平
Must not be a bad idea to improve documents. Notes: Merged: https://github.com/ruby/ruby/pull/4912
2021-09-27Introduce `RBIMPL_NONNULL_ARG` macroNobuyoshi Nakada
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. Notes: Merged: https://github.com/ruby/ruby/pull/4898 Merged-By: nobu <nobu@ruby-lang.org>
2021-09-24Align the implementation precedences with `rb_atomic_t` definitionNobuyoshi Nakada
On MinGW, where both of Win32 API and GCC built-ins are available, the mismatch of implementations to the definition caused lots of warnings.
2021-09-22RBIMPL_ATTR_NOALIAS: not until LLVM 12卜部昌平
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. Notes: Merged: https://github.com/ruby/ruby/pull/4848
2021-09-22include/ruby/atomic.h: rework卜部昌平
Reduce macros to do the same things in inline functions instead. This way assertions can be made granular. Notes: Merged: https://github.com/ruby/ruby/pull/4848
2021-09-20Expose `rb_fiber_raise` and tidy up the internal implementation.Samuel Williams
Notes: Merged: https://github.com/ruby/ruby/pull/4649
2021-09-15include/ruby/atomic.h: add doxygen卜部昌平
Must not be a bad idea to improve documents. [ci skip] Notes: Merged: https://github.com/ruby/ruby/pull/4835
2021-09-11Suppress deprecated rb_iterate declaration warnings in C++Nobuyoshi Nakada
Apply commit:733ffa74cd32a5c11ff744a5490782daa00ff1ae again.
2021-09-11Remove printf family from the mjit headerNobuyoshi Nakada
Linking printf family functions makes mjit objects to link unnecessary code. Notes: Merged: https://github.com/ruby/ruby/pull/4820
2021-09-10suppress GCC's -Wmissing-attribute卜部昌平
I was not aware of this because I use clang these days. Notes: Merged: https://github.com/ruby/ruby/pull/4815
2021-09-10rb_ary_new_from_values: can take NULLs卜部昌平
Explicit check done at runtime. Notes: Merged: https://github.com/ruby/ruby/pull/4815
2021-09-10suppress GCC's -Wsuggest-attribute=format卜部昌平
I was not aware of this because I use clang these days. Notes: Merged: https://github.com/ruby/ruby/pull/4815
2021-09-10ruby_scan_oct, ruby_scan_hex: are not pure卜部昌平
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. Notes: Merged: https://github.com/ruby/ruby/pull/4815
2021-09-10ruby_cleanup: fix MSVC compile error卜部昌平
See https://ci.appveyor.com/project/ruby/ruby/builds/40686153/job/1wihxw5m5kybtohj Notes: Merged: https://github.com/ruby/ruby/pull/4815
2021-09-10include/ruby.h: skip doxygen卜部昌平
Everything defined in this header file are for backwards compatibility only. No one practically need them any longer. [ci skip] Notes: Merged: https://github.com/ruby/ruby/pull/4815
2021-09-10include/ruby/backward.h: skip doxygen卜部昌平
There is nothing interesting here. [ci skip] Notes: Merged: https://github.com/ruby/ruby/pull/4815
2021-09-10include/ruby/debug.h: add doxygen卜部昌平
Must not be a bad idea to improve documents. [ci skip] Notes: Merged: https://github.com/ruby/ruby/pull/4815
2021-09-10include/ruby/defines.h: add doxygen卜部昌平
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] Notes: Merged: https://github.com/ruby/ruby/pull/4815
2021-09-10forgot to delete a redundant comment卜部昌平
Notes: Merged: https://github.com/ruby/ruby/pull/4815
2021-09-10include/ruby/encoding.h: add doxygen卜部昌平
Must not be a bad idea to improve documents. [ci skip] Notes: Merged: https://github.com/ruby/ruby/pull/4815
2021-09-10include/ruby/fiber/scheduler.h: add doxygen卜部昌平
Must not be a bad idea to improve documents. [ci skip] Notes: Merged: https://github.com/ruby/ruby/pull/4815
2021-09-10include/ruby/io.h: add doxyen卜部昌平
Must not be a bad idea to improve documents. [ci skip] Notes: Merged: https://github.com/ruby/ruby/pull/4815
2021-09-10include/ruby/memory_view.h: add doxygen卜部昌平
I'm just applying doc/memory_view.md as a doxygen comment. [ci skip] Notes: Merged: https://github.com/ruby/ruby/pull/4815
2021-09-10include/ruby/missing.h: skip doxygen卜部昌平
We don't want to document e.g. M_PI, which is an ISO C thing. Notes: Merged: https://github.com/ruby/ruby/pull/4815
2021-09-10include/ruby/ractor.h: add doxygen卜部昌平
Must not be a bad idea to improve documents. [ci skip] Notes: Merged: https://github.com/ruby/ruby/pull/4815
2021-09-10include/ruby/random.h: add doxygen卜部昌平
Must not be a bad idea to improve documents. [ci skip] Notes: Merged: https://github.com/ruby/ruby/pull/4815
2021-09-10include/ruby/re.h: add doxygen卜部昌平
Must not be a bad idea to improve documents. [ci skip] Notes: Merged: https://github.com/ruby/ruby/pull/4815
2021-09-10include/ruby/regex.h: skip doxygen卜部昌平
It seems this is a part of Onigmo's API, not Ruby's. Notes: Merged: https://github.com/ruby/ruby/pull/4815
2021-09-10include/ruby/ruby.h: add doxygen卜部昌平
Must not be a bad idea to improve documents. [ci skip] Notes: Merged: https://github.com/ruby/ruby/pull/4815
2021-09-10include/ruby/subst.h: skip doxygen卜部昌平
Nothing worth documenting in this file. [ci skip] Notes: Merged: https://github.com/ruby/ruby/pull/4815
2021-09-10include/ruby/thread.h: add doxygen卜部昌平
Must not be a bad idea to improve documents. [ci skip] Notes: Merged: https://github.com/ruby/ruby/pull/4815
2021-09-10include/ruby/thread_native.h: add doxygen卜部昌平
Must not be a bad idea to improve documents. [ci skip] Notes: Merged: https://github.com/ruby/ruby/pull/4815
2021-09-10include/ruby/util.h: add doxygen卜部昌平
Must not be a bad idea to improve documents. [ci skip] Notes: Merged: https://github.com/ruby/ruby/pull/4815
2021-09-10include/ruby/version.h: add doxygen卜部昌平
Must not be a bad idea to improve documents. [ci skip] Notes: Merged: https://github.com/ruby/ruby/pull/4815
2021-09-10include/ruby/vm.h: add doxygen卜部昌平
Must not be a bad idea to improve documents. [ci skip] Notes: Merged: https://github.com/ruby/ruby/pull/4815
2021-09-10include/ruby/backward/2/assume.h: add doxygen卜部昌平
Must not be a bad idea to improve documents. [ci skip] Notes: Merged: https://github.com/ruby/ruby/pull/4815
2021-09-10include/ruby/backward/2/attributes.h: skip doxygen卜部昌平
These macros are for backwards compatibility. No longer used in our public header files. People can safely forget about them. [ci skip] Notes: Merged: https://github.com/ruby/ruby/pull/4815
2021-09-10include/ruby/backward/2/bool.h: skip doxygen卜部昌平
It's 21st century, right? Just forget about them. [ci skip] Notes: Merged: https://github.com/ruby/ruby/pull/4815