Skip to content

fix: address upstream review comments on TypedData migration#7

Merged
takaokouji merged 1 commit intomasterfrom
fix/typed-data-review-feedback
Mar 29, 2026
Merged

fix: address upstream review comments on TypedData migration#7
takaokouji merged 1 commit intomasterfrom
fix/typed-data-review-feedback

Conversation

@takaokouji
Copy link
Copy Markdown

Summary

upstream PR (ohai#30) のレビューコメントに対応。

  • DEFINE_DATA_TYPE マクロの型名に "ruby-sdl2/" プレフィックスを追加
  • フラグを 0 から RUBY_TYPED_FREE_IMMEDIATELY に変更
  • 全ファイルで ALLOC + TypedData_Wrap_StructTypedData_Make_Struct に統一

Test Coverage

  • Ruby 3.3.9, 3.4.9, 4.0.2 でビルド成功(deprecation warning なし)
  • smalruby3 コマンドで examples/01_move.rb の動作確認済み

Related

- Add "ruby-sdl2/" prefix to type names in DEFINE_DATA_TYPE macro
- Use RUBY_TYPED_FREE_IMMEDIATELY flag instead of 0
- Replace ALLOC + TypedData_Wrap_Struct with TypedData_Make_Struct

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@takaokouji takaokouji merged commit 7a92616 into master Mar 29, 2026
@takaokouji takaokouji deleted the fix/typed-data-review-feedback branch March 29, 2026 15:31
takaokouji added a commit to smalruby/smalruby3-editor that referenced this pull request Mar 29, 2026
Update ruby-sdl2 to include upstream review feedback:
- Add "ruby-sdl2/" prefix to type names
- Use RUBY_TYPED_FREE_IMMEDIATELY flag
- Use TypedData_Make_Struct across all files

See smalruby/ruby-sdl2#7

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant