Skip to content

[GR-45621] Ruby 3.2.2 import follow-up #3821

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/cext/include/ruby/internal/globals.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ RUBY_EXTERN VALUE rb_cClass; /**< `Class` class. */
RUBY_EXTERN VALUE rb_cDir; /**< `Dir` class. */
RUBY_EXTERN VALUE rb_cEncoding; /**< `Encoding` class. */
RUBY_EXTERN VALUE rb_cEnumerator; /**< `Enumerator` class. */
RUBY_EXTERN VALUE rb_cArithSeq; /**< `Enumerator::ArithmeticSequence` class. */
RUBY_EXTERN VALUE rb_cFalseClass; /**< `FalseClass` class. */
RUBY_EXTERN VALUE rb_cFile; /**< `File` class. */
RUBY_EXTERN VALUE rb_cComplex; /**< `Complex` class. */
Expand Down
2 changes: 1 addition & 1 deletion lib/cext/include/truffleruby/truffleruby-abi-version.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
// $RUBY_VERSION must be the same as TruffleRuby.LANGUAGE_VERSION.
// $ABI_NUMBER starts at 1 and is incremented for every ABI-incompatible change.

#define TRUFFLERUBY_ABI_VERSION "3.3.7.1"
#define TRUFFLERUBY_ABI_VERSION "3.3.7.2"

#endif
4 changes: 2 additions & 2 deletions lib/truffle/truffle/cext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2113,7 +2113,7 @@ def rb_backref_get
end

def rb_backref_set(value)
Truffle::RegexpOperations::LAST_MATCH_SET.call(value, rb_get_special_vars())
Truffle::RegexpOperations::LAST_MATCH_SET.call(nil, value, rb_get_special_vars())
end

def rb_gv_set(name, value)
Expand Down Expand Up @@ -2152,7 +2152,7 @@ def rb_define_hooked_variable(name, gvar, getter, setter)
nil)
}

setter_proc = -> value {
setter_proc = -> _, value {
Primitive.call_with_c_mutex_and_frame(
POINTER3_TO_VOID_WRAPPER,
[setter, Primitive.cext_wrap(value), Primitive.cext_wrap(id), gvar],
Expand Down
6 changes: 5 additions & 1 deletion lib/truffle/truffle/cext_constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# GNU General Public License version 2, or
# GNU Lesser General Public License version 2.1.

# GENERATED BY tool/generate-cext-constants.rb
# GENERATED BY tool/generate-cext-constants.rb AND SHOULD NOT BE MODIFIED MANUALLY

module Truffle::CExt
def rb_cArray
Expand Down Expand Up @@ -51,6 +51,10 @@ def rb_cEnumerator
Enumerator
end

def rb_cArithSeq
Enumerator::ArithmeticSequence
end

def rb_cFalseClass
FalseClass
end
Expand Down
Loading
Loading