mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
dfd7251223
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.
9 lines
282 B
Ruby
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
|