Skip to content

Commit b7d62a5

Browse files
committed
Add str_array pointer type
1 parent 86e8fad commit b7d62a5

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

_tools/ruby_h_to_go/lib/ruby_header_parser/data.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def initialize
1414

1515
# @param function_name [String]
1616
# @param pos [Integer] arg position (1 origin)
17-
# @return [Symbol] :ref, :array, :ref_array, :function, :sref
17+
# @return [Symbol] :ref, :array, :ref_array, :function, :sref, :str_array
1818
def function_arg_pointer_hint(function_name:, pos:)
1919
pointer_hint = data["function"]["pointer_hint"].dig(function_name, pos)
2020
return pointer_hint.to_sym if pointer_hint

_tools/ruby_h_to_go/lib/ruby_header_parser/data.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ function:
8383
1: function
8484
rb_feature_provided:
8585
2: sref
86+
rb_find_file_ext:
87+
2: str_array
8688
rb_funcallv:
8789
4: array
8890
rb_funcallv_public:

_tools/ruby_h_to_go/spec/ruby_header_parser/parser_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
let(:args) do
9090
[
9191
argument(type: "VALUE", name: "feature", pointer: :ref),
92-
argument(type: "char", name: "exts", pointer: :ref),
92+
argument(type: "char", name: "exts", pointer: :str_array),
9393
]
9494
end
9595

0 commit comments

Comments
 (0)