Files
mruby-mruby/mrbgems/mruby-set/mrbgem.rake
T
google-labs-jules[bot] dfd7251223 Refactor: Improve Set GC marking and freeing
This commit addresses feedback on the initial Set GC marking implementation.

Changes include:
- Renamed set marking function to `mrb_gc_mark_set` and updated its
  return type to `size_t`.
- Introduced an explicit `mrb_gc_free_set` function for Set objects.
- Updated `gc_mark_children` to use the new mark function signature.
- Added an explicit `case MRB_TT_SET:` in `obj_free` to call `mrb_gc_free_set`.
- Adjusted `set_get_khash` in `mruby-set` to work with `MRB_TT_SET` directly,
  rather than relying on `mrb_data_get_ptr`.
- Corrected type checks in `set_init_copy` to use `MRB_TT_SET`.
- Updated function prototypes in internal headers and stubs in mrbc.
2025-06-24 04:02:41 +00:00

9 lines
282 B
Ruby

MRuby::Gem::Specification.new('mruby-set') do |spec|
spec.license = 'MIT'
spec.authors = 'yui-knk'
spec.build.defines << "MRB_USE_SET"
spec.add_dependency "mruby-hash-ext", :core => "mruby-hash-ext"
spec.add_dependency "mruby-enumerator", :core => "mruby-enumerator"
end