|
9 | 9 | RubyHeaderParser::FunctionDefinition.new(
|
10 | 10 | name: "rb_define_method",
|
11 | 11 | definition: "void rb_define_method(VALUE klass, const char *mid, VALUE (*func)(ANYARGS), int arity)",
|
12 |
| - typeref: typedef(type: "void"), |
| 12 | + typeref: typeref(type: "void"), |
13 | 13 | args: [
|
14 | 14 | argument(type: "VALUE", name: "klass"),
|
15 | 15 | argument(type: "char", name: "mid", pointer: :ref),
|
|
44 | 44 | RubyHeaderParser::FunctionDefinition.new(
|
45 | 45 | name: "rb_block_call",
|
46 | 46 | definition: "VALUE rb_block_call(VALUE obj, ID mid, int argc, const VALUE *argv, rb_block_call_func_t proc, VALUE data2)", # rubocop:disable Layout/LineLength
|
47 |
| - typeref: typedef(type: "VALUE"), |
| 47 | + typeref: typeref(type: "VALUE"), |
48 | 48 | args: [
|
49 | 49 | argument(type: "VALUE", name: "obj"),
|
50 | 50 | argument(type: "ID", name: "mid"),
|
|
81 | 81 | RubyHeaderParser::FunctionDefinition.new(
|
82 | 82 | name: "rb_funcallv",
|
83 | 83 | definition: "VALUE rb_funcallv(VALUE recv, ID mid, int argc, const VALUE *argv)",
|
84 |
| - typeref: typedef(type: "VALUE"), |
| 84 | + typeref: typeref(type: "VALUE"), |
85 | 85 | args: [
|
86 | 86 | argument(type: "VALUE", name: "recv"),
|
87 | 87 | argument(type: "ID", name: "mid"),
|
|
114 | 114 | RubyHeaderParser::FunctionDefinition.new(
|
115 | 115 | name: "rb_thread_call_with_gvl",
|
116 | 116 | definition: "void *rb_thread_call_with_gvl(void *(*func)(void *), void *data1)",
|
117 |
| - typeref: typedef(type: "void", pointer: :ref), |
| 117 | + typeref: typeref(type: "void", pointer: :ref), |
118 | 118 | args: [
|
119 | 119 | argument(type: "void", name: "arg1", pointer: :function),
|
120 | 120 | argument(type: "void", name: "data1", pointer: :ref),
|
|
145 | 145 | RubyHeaderParser::FunctionDefinition.new(
|
146 | 146 | name: "rb_uv_to_utf8",
|
147 | 147 | definition: "int rb_uv_to_utf8(char buf[6], unsigned long uv)",
|
148 |
| - typeref: typedef(type: "int"), |
| 148 | + typeref: typeref(type: "int"), |
149 | 149 | args: [
|
150 | 150 | argument(type: "char", name: "buf", pointer: :array, length: 6),
|
151 | 151 | argument(type: "unsigned long", name: "uv"),
|
|
176 | 176 | RubyHeaderParser::FunctionDefinition.new(
|
177 | 177 | name: "rb_errno_ptr",
|
178 | 178 | definition: "int *rb_errno_ptr(void)",
|
179 |
| - typeref: typedef(type: "int", pointer: :ref), |
| 179 | + typeref: typeref(type: "int", pointer: :ref), |
180 | 180 | args: [],
|
181 | 181 | )
|
182 | 182 | end
|
|
204 | 204 | RubyHeaderParser::FunctionDefinition.new(
|
205 | 205 | name: "rb_big2ll",
|
206 | 206 | definition: "rb_big2ll(VALUE)",
|
207 |
| - typeref: typedef(type: "long long"), |
| 207 | + typeref: typeref(type: "long long"), |
208 | 208 | args: [
|
209 | 209 | argument(type: "VALUE", name: "arg1"),
|
210 | 210 | ],
|
|
234 | 234 | RubyHeaderParser::FunctionDefinition.new(
|
235 | 235 | name: "rb_big2ull",
|
236 | 236 | definition: "rb_big2ull(VALUE)",
|
237 |
| - typeref: typedef(type: "unsigned long long"), |
| 237 | + typeref: typeref(type: "unsigned long long"), |
238 | 238 | args: [
|
239 | 239 | argument(type: "VALUE", name: "arg1"),
|
240 | 240 | ],
|
|
264 | 264 | RubyHeaderParser::FunctionDefinition.new(
|
265 | 265 | name: "rb_scan_args_set",
|
266 | 266 | definition: "rb_scan_args_set(int kw_flag, int argc, const VALUE *argv,",
|
267 |
| - typeref: typedef(type: "int"), |
| 267 | + typeref: typeref(type: "int"), |
268 | 268 | args: [
|
269 | 269 | argument(type: "int", name: "kw_flag"),
|
270 | 270 | argument(type: "int", name: "argc"),
|
|
310 | 310 | RubyHeaderParser::FunctionDefinition.new(
|
311 | 311 | name: "RSTRING_END",
|
312 | 312 | definition: "RSTRING_END(VALUE str)",
|
313 |
| - typeref: typedef(type: "char", pointer: :ref), |
| 313 | + typeref: typeref(type: "char", pointer: :ref), |
314 | 314 | args: [
|
315 | 315 | argument(type: "VALUE", name: "str"),
|
316 | 316 | ],
|
|
340 | 340 | RubyHeaderParser::FunctionDefinition.new(
|
341 | 341 | name: "rb_const_list",
|
342 | 342 | definition: "VALUE rb_const_list(void*)",
|
343 |
| - typeref: typedef(type: "VALUE"), |
| 343 | + typeref: typeref(type: "VALUE"), |
344 | 344 | args: [
|
345 | 345 | argument(type: "void", name: "arg1", pointer: :ref),
|
346 | 346 | ],
|
|
370 | 370 | RubyHeaderParser::FunctionDefinition.new(
|
371 | 371 | name: "rb_feature_provided",
|
372 | 372 | definition: "int rb_feature_provided(const char *feature, const char **loading)",
|
373 |
| - typeref: typedef(type: "int"), |
| 373 | + typeref: typeref(type: "int"), |
374 | 374 | args: [
|
375 | 375 | argument(type: "char", name: "feature", pointer: :ref),
|
376 | 376 | argument(type: "char", name: "loading", pointer: :sref, length: 2),
|
|
404 | 404 | RubyHeaderParser::FunctionDefinition.new(
|
405 | 405 | name: "rb_find_file_ext",
|
406 | 406 | definition: "int rb_find_file_ext(VALUE *feature, const char *const *exts)",
|
407 |
| - typeref: typedef(type: "int"), |
| 407 | + typeref: typeref(type: "int"), |
408 | 408 | args: [
|
409 | 409 | argument(type: "VALUE", name: "feature", pointer: :ref),
|
410 | 410 | argument(type: "char", name: "exts", pointer: :str_array),
|
|
440 | 440 | RubyHeaderParser::FunctionDefinition.new(
|
441 | 441 | name: "rb_data_typed_object_make",
|
442 | 442 | definition: "rb_data_typed_object_make(VALUE klass, const rb_data_type_t *type, void **datap, size_t size)",
|
443 |
| - typeref: typedef(type: "VALUE"), |
| 443 | + typeref: typeref(type: "VALUE"), |
444 | 444 | args: [
|
445 | 445 | argument(type: "VALUE", name: "klass"),
|
446 | 446 | argument(type: "rb_data_type_t", name: "type", pointer: :ref),
|
|
475 | 475 | RubyHeaderParser::FunctionDefinition.new(
|
476 | 476 | name: "rb_define_variable",
|
477 | 477 | definition: "void rb_define_variable(const char *name, VALUE *var)",
|
478 |
| - typeref: typedef(type: "void"), |
| 478 | + typeref: typeref(type: "void"), |
479 | 479 | args: [
|
480 | 480 | argument(type: "char", name: "name", pointer: :ref),
|
481 | 481 | argument(type: "VALUE", name: "var", pointer: :in_ref),
|
|
511 | 511 | RubyHeaderParser::FunctionDefinition.new(
|
512 | 512 | name:,
|
513 | 513 | definition: "",
|
514 |
| - typeref: typedef(type: "void"), |
| 514 | + typeref: typeref(type: "void"), |
515 | 515 | args: [],
|
516 | 516 | )
|
517 | 517 | end
|
|
0 commit comments