Line | Count | Source |
1 | | // -*- c -*- |
2 | | // DO NOT MODIFY THIS FILE DIRECTLY. |
3 | | // auto-generated file |
4 | | // by ./tool/mk_builtin_loader.rb |
5 | | // with dir.rb |
6 | | #include "internal/compilers.h" /* for MAYBE_UNUSED */ |
7 | | #include "internal/warnings.h" /* for COMPILER_WARNING_PUSH */ |
8 | | #include "ruby/ruby.h" /* for VALUE */ |
9 | | #include "builtin.h" /* for RB_BUILTIN_FUNCTION */ |
10 | | struct rb_execution_context_struct; /* in vm_core.h */ |
11 | | |
12 | | void Init_builtin_dir(void) |
13 | 0 | { |
14 | | // table definition |
15 | 0 | static const struct rb_builtin_function dir_table[] = { |
16 | 0 | RB_BUILTIN_FUNCTION(0, dir_s_open, dir_s_open, 2), |
17 | 0 | RB_BUILTIN_FUNCTION(1, dir_s_close, dir_s_close, 1), |
18 | 0 | RB_BUILTIN_FUNCTION(2, dir_initialize, dir_initialize, 2), |
19 | 0 | RB_BUILTIN_FUNCTION(3, dir_s_aref, dir_s_aref, 3), |
20 | 0 | RB_BUILTIN_FUNCTION(4, dir_s_glob, dir_s_glob, 4), |
21 | 0 | RB_BUILTIN_FUNCTION(-1, NULL, NULL, 0), |
22 | 0 | }; |
23 | | |
24 | | // arity_check |
25 | 0 | COMPILER_WARNING_PUSH |
26 | 0 | #if GCC_VERSION_SINCE(5, 1, 0) || defined __clang__ |
27 | 0 | COMPILER_WARNING_ERROR(-Wincompatible-pointer-types) |
28 | 0 | #endif |
29 | 0 | if (0) rb_builtin_function_check_arity2(dir_s_open); |
30 | 0 | if (0) rb_builtin_function_check_arity1(dir_s_close); |
31 | 0 | if (0) rb_builtin_function_check_arity2(dir_initialize); |
32 | 0 | if (0) rb_builtin_function_check_arity3(dir_s_aref); |
33 | 0 | if (0) rb_builtin_function_check_arity4(dir_s_glob); |
34 | 0 | COMPILER_WARNING_POP |
35 | | |
36 | | // load |
37 | 0 | rb_load_with_builtin_functions("dir", dir_table); |
38 | 0 | } |