File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
_tools/ruby_h_to_go/lib/ruby_h_to_go Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -76,9 +76,6 @@ def generate_function_header_lines
76
76
# - after_call_function_lines [Array<String>]
77
77
def analyze_args
78
78
casted_go_args = [ ]
79
- char_var_count = args . count { |c_arg | c_arg . type == "char" && c_arg . pointer == :ref }
80
- chars_var_count = args . count { |c_arg | c_arg . type == "char" && c_arg . pointer == :str_array }
81
-
82
79
before_call_function_lines = [ ]
83
80
after_call_function_lines = [ ]
84
81
@@ -93,6 +90,16 @@ def analyze_args
93
90
[ casted_go_args , before_call_function_lines , after_call_function_lines ]
94
91
end
95
92
93
+ # @return [Integer]
94
+ def char_var_count
95
+ args . count { |c_arg | c_arg . type == "char" && c_arg . pointer == :ref }
96
+ end
97
+
98
+ # @return [Integer]
99
+ def chars_var_count
100
+ args . count { |c_arg | c_arg . type == "char" && c_arg . pointer == :str_array }
101
+ end
102
+
96
103
# @param go_function_lines [Array<String>]
97
104
# @param call_c_method [String]
98
105
# @param before_call_function_lines [Array<String>]
You can’t perform that action at this time.
0 commit comments