Skip to content
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
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ group :development do
gem "rake"
gem "rubocop", require: false
gem "rubocop_auto_corrector", require: false
gem "ruby_header_parser", ">= 0.4.1"
gem "ruby_header_parser", ">= 0.4.2"
gem "yard"
end

Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ GEM
rubocop_auto_corrector (0.5.0)
rubocop (>= 1.30.0)
ruby-progressbar (1.13.0)
ruby_header_parser (0.4.1)
ruby_header_parser (0.4.2)
securerandom (0.4.1)
serverspec (2.42.3)
multi_json
Expand Down Expand Up @@ -173,7 +173,7 @@ DEPENDENCIES
rspec-temp_dir
rubocop
rubocop_auto_corrector
ruby_header_parser (>= 0.4.1)
ruby_header_parser (>= 0.4.2)
serverspec
steep
test-unit
Expand Down
2 changes: 2 additions & 0 deletions _tools/ruby_h_to_go/exe/ruby_h_to_go
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,6 @@ include_paths ||= DEFAULT_INCLUDE_PATHS
dist_dir ||= DEFAULT_DIST_DIR
dist_preprocessed_header_file ||= DEFAULT_DIST_PREPROCESSED_HEADER_FILE

FileUtils.rm_f(dist_preprocessed_header_file)

RubyHToGo::Cli.new(header_file:, include_paths:, dist_dir:, dist_preprocessed_header_file:).perform
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@
RubyHeaderParser::FunctionDefinition.new(
name: "RSTRING_END",
definition: "RSTRING_END(VALUE str)",
typeref: typeref(type: "char", pointer: :ref),
typeref: typeref(type: "char", pointer: :raw),
args: [
argument(type: "VALUE", name: "str"),
],
Expand All @@ -318,8 +318,8 @@
// Original definition is following
//
// RSTRING_END(VALUE str)
func RSTRING_END(str VALUE) string {
return char2String(C.RSTRING_END(C.VALUE(str)))
func RSTRING_END(str VALUE) *Char {
return (*Char)(C.RSTRING_END(C.VALUE(str)))
}

GO
Expand Down
4 changes: 2 additions & 2 deletions ruby/function_ruby_3_3_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions ruby/function_ruby_3_4_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading