debase-ruby_core_source 0.10.6 → 0.10.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (172) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/README.md +1 -1
  4. data/Rakefile +6 -3
  5. data/debase-ruby_core_source.gemspec +2 -1
  6. data/lib/debase/ruby_core_source.rb +1 -1
  7. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/addr2line.h +21 -0
  8. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/builtin.h +78 -0
  9. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/ccan/build_assert/build_assert.h +40 -0
  10. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/ccan/check_type/check_type.h +63 -0
  11. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/ccan/container_of/container_of.h +142 -0
  12. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/ccan/list/list.h +788 -0
  13. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/ccan/str/str.h +16 -0
  14. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/constant.h +50 -0
  15. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/debug_counter.h +390 -0
  16. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/dln.h +51 -0
  17. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/encindex.h +69 -0
  18. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/eval_intern.h +312 -0
  19. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/gc.h +131 -0
  20. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/hrtime.h +168 -0
  21. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/id.h +290 -0
  22. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/id_table.h +34 -0
  23. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/insns.inc +253 -0
  24. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/insns_info.inc +9197 -0
  25. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/internal.h +2697 -0
  26. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/iseq.h +312 -0
  27. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/known_errors.inc +791 -0
  28. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/method.h +229 -0
  29. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/mjit.h +177 -0
  30. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/mjit_compile.inc +7779 -0
  31. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/node.h +476 -0
  32. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/node_name.inc +208 -0
  33. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/opt_sc.inc +109 -0
  34. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/optinsn.inc +128 -0
  35. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/optunifs.inc +43 -0
  36. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/parse.h +210 -0
  37. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/probes_helper.h +42 -0
  38. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/regenc.h +254 -0
  39. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/regint.h +938 -0
  40. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/regparse.h +370 -0
  41. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/revision.h +2 -0
  42. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/ruby_assert.h +15 -0
  43. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/ruby_atomic.h +244 -0
  44. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/siphash.h +48 -0
  45. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/symbol.h +119 -0
  46. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/thread_pthread.h +75 -0
  47. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/thread_win32.h +36 -0
  48. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/timev.h +56 -0
  49. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/transcode_data.h +139 -0
  50. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/transient_heap.h +62 -0
  51. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/variable.h +9 -0
  52. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/version.h +77 -0
  53. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/vm.inc +5466 -0
  54. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/vm_call_iseq_optimized.inc +237 -0
  55. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/vm_core.h +1968 -0
  56. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/vm_debug.h +34 -0
  57. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/vm_exec.h +193 -0
  58. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/vm_insnhelper.h +267 -0
  59. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/vm_opts.h +72 -0
  60. data/lib/debase/ruby_core_source/ruby-2.7.0-p0/vmtc.inc +247 -0
  61. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/addr2line.h +20 -0
  62. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/builtin.h +83 -0
  63. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/ccan/build_assert/build_assert.h +40 -0
  64. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/ccan/check_type/check_type.h +63 -0
  65. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/ccan/container_of/container_of.h +142 -0
  66. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/ccan/list/list.h +788 -0
  67. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/ccan/str/str.h +16 -0
  68. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/constant.h +55 -0
  69. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/debug_counter.h +423 -0
  70. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/dln.h +36 -0
  71. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/encindex.h +70 -0
  72. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/eval_intern.h +312 -0
  73. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/gc.h +140 -0
  74. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/hrtime.h +168 -0
  75. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/id.h +290 -0
  76. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/id_table.h +36 -0
  77. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/insns.inc +249 -0
  78. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/insns_info.inc +8979 -0
  79. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal.h +107 -0
  80. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/array.h +114 -0
  81. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/bignum.h +246 -0
  82. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/bits.h +566 -0
  83. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/class.h +168 -0
  84. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/compar.h +50 -0
  85. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/compile.h +32 -0
  86. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/compilers.h +108 -0
  87. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/complex.h +29 -0
  88. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/cont.h +25 -0
  89. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/dir.h +17 -0
  90. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/enc.h +20 -0
  91. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/encoding.h +28 -0
  92. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/enum.h +19 -0
  93. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/enumerator.h +22 -0
  94. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/error.h +131 -0
  95. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/eval.h +33 -0
  96. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/file.h +39 -0
  97. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/fixnum.h +185 -0
  98. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/gc.h +154 -0
  99. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/hash.h +240 -0
  100. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/imemo.h +243 -0
  101. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/inits.h +51 -0
  102. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/io.h +35 -0
  103. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/load.h +19 -0
  104. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/loadpath.h +17 -0
  105. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/math.h +24 -0
  106. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/missing.h +19 -0
  107. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/mjit.h +29 -0
  108. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/numeric.h +252 -0
  109. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/object.h +83 -0
  110. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/parse.h +23 -0
  111. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/proc.h +32 -0
  112. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/process.h +136 -0
  113. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/random.h +17 -0
  114. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/range.h +37 -0
  115. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/rational.h +69 -0
  116. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/re.h +29 -0
  117. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/sanitizers.h +191 -0
  118. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/scheduler.h +35 -0
  119. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/serial.h +24 -0
  120. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/signal.h +22 -0
  121. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/static_assert.h +17 -0
  122. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/string.h +135 -0
  123. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/struct.h +154 -0
  124. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/symbol.h +41 -0
  125. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/thread.h +60 -0
  126. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/time.h +35 -0
  127. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/transcode.h +21 -0
  128. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/util.h +31 -0
  129. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/variable.h +83 -0
  130. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/vm.h +135 -0
  131. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/internal/warnings.h +17 -0
  132. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/iseq.h +304 -0
  133. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/known_errors.inc +791 -0
  134. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/method.h +245 -0
  135. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/mjit.h +197 -0
  136. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/mjit_compile.inc +8082 -0
  137. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/node.h +484 -0
  138. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/node_name.inc +210 -0
  139. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/opt_sc.inc +109 -0
  140. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/optinsn.inc +128 -0
  141. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/optunifs.inc +43 -0
  142. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/parse.h +211 -0
  143. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/probes_helper.h +44 -0
  144. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/ractor.h +271 -0
  145. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/ractor_pub.h +50 -0
  146. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/regenc.h +254 -0
  147. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/regint.h +938 -0
  148. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/regparse.h +370 -0
  149. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/revision.h +2 -0
  150. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/ruby_assert.h +15 -0
  151. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/ruby_atomic.h +236 -0
  152. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/siphash.h +48 -0
  153. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/symbol.h +119 -0
  154. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/thread_pthread.h +106 -0
  155. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/thread_win32.h +66 -0
  156. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/timev.h +57 -0
  157. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/transcode_data.h +138 -0
  158. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/transient_heap.h +61 -0
  159. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/variable.h +21 -0
  160. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/version.h +89 -0
  161. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/vm.inc +5360 -0
  162. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/vm_call_iseq_optimized.inc +244 -0
  163. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/vm_callinfo.h +457 -0
  164. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/vm_core.h +1952 -0
  165. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/vm_debug.h +116 -0
  166. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/vm_exec.h +196 -0
  167. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/vm_insnhelper.h +260 -0
  168. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/vm_opts.h +73 -0
  169. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/vm_sync.h +97 -0
  170. data/lib/debase/ruby_core_source/ruby-3.0.0-preview1/vmtc.inc +243 -0
  171. data/lib/debase/ruby_core_source/version.rb +1 -1
  172. metadata +183 -5
@@ -0,0 +1,312 @@
1
+ /**********************************************************************
2
+
3
+ iseq.h -
4
+
5
+ $Author$
6
+ created at: 04/01/01 23:36:57 JST
7
+
8
+ Copyright (C) 2004-2008 Koichi Sasada
9
+
10
+ **********************************************************************/
11
+
12
+ #ifndef RUBY_ISEQ_H
13
+ #define RUBY_ISEQ_H 1
14
+
15
+ RUBY_EXTERN const int ruby_api_version[];
16
+ #define ISEQ_MAJOR_VERSION ((unsigned int)ruby_api_version[0])
17
+ #define ISEQ_MINOR_VERSION ((unsigned int)ruby_api_version[1])
18
+
19
+ #ifndef rb_iseq_t
20
+ typedef struct rb_iseq_struct rb_iseq_t;
21
+ #define rb_iseq_t rb_iseq_t
22
+ #endif
23
+
24
+ extern const ID rb_iseq_shared_exc_local_tbl[];
25
+
26
+ static inline size_t
27
+ rb_call_info_kw_arg_bytes(int keyword_len)
28
+ {
29
+ return rb_size_mul_add_or_raise(
30
+ keyword_len - 1, sizeof(VALUE), sizeof(struct rb_call_info_kw_arg),
31
+ rb_eRuntimeError);
32
+ }
33
+
34
+ #define ISEQ_COVERAGE(iseq) iseq->body->variable.coverage
35
+ #define ISEQ_COVERAGE_SET(iseq, cov) RB_OBJ_WRITE(iseq, &iseq->body->variable.coverage, cov)
36
+ #define ISEQ_LINE_COVERAGE(iseq) RARRAY_AREF(ISEQ_COVERAGE(iseq), COVERAGE_INDEX_LINES)
37
+ #define ISEQ_BRANCH_COVERAGE(iseq) RARRAY_AREF(ISEQ_COVERAGE(iseq), COVERAGE_INDEX_BRANCHES)
38
+
39
+ #define ISEQ_PC2BRANCHINDEX(iseq) iseq->body->variable.pc2branchindex
40
+ #define ISEQ_PC2BRANCHINDEX_SET(iseq, h) RB_OBJ_WRITE(iseq, &iseq->body->variable.pc2branchindex, h)
41
+
42
+ #define ISEQ_FLIP_CNT(iseq) (iseq)->body->variable.flip_count
43
+
44
+ static inline rb_snum_t
45
+ ISEQ_FLIP_CNT_INCREMENT(const rb_iseq_t *iseq)
46
+ {
47
+ rb_snum_t cnt = iseq->body->variable.flip_count;
48
+ iseq->body->variable.flip_count += 1;
49
+ return cnt;
50
+ }
51
+
52
+ static inline VALUE *
53
+ ISEQ_ORIGINAL_ISEQ(const rb_iseq_t *iseq)
54
+ {
55
+ return iseq->body->variable.original_iseq;
56
+ }
57
+
58
+ static inline void
59
+ ISEQ_ORIGINAL_ISEQ_CLEAR(const rb_iseq_t *iseq)
60
+ {
61
+ void *ptr = iseq->body->variable.original_iseq;
62
+ iseq->body->variable.original_iseq = NULL;
63
+ if (ptr) {
64
+ ruby_xfree(ptr);
65
+ }
66
+ }
67
+
68
+ static inline VALUE *
69
+ ISEQ_ORIGINAL_ISEQ_ALLOC(const rb_iseq_t *iseq, long size)
70
+ {
71
+ return iseq->body->variable.original_iseq =
72
+ ALLOC_N(VALUE, size);
73
+ }
74
+
75
+ #define ISEQ_TRACE_EVENTS (RUBY_EVENT_LINE | \
76
+ RUBY_EVENT_CLASS | \
77
+ RUBY_EVENT_END | \
78
+ RUBY_EVENT_CALL | \
79
+ RUBY_EVENT_RETURN| \
80
+ RUBY_EVENT_B_CALL| \
81
+ RUBY_EVENT_B_RETURN| \
82
+ RUBY_EVENT_COVERAGE_LINE| \
83
+ RUBY_EVENT_COVERAGE_BRANCH)
84
+
85
+ #define ISEQ_NOT_LOADED_YET IMEMO_FL_USER1
86
+ #define ISEQ_USE_COMPILE_DATA IMEMO_FL_USER2
87
+ #define ISEQ_TRANSLATED IMEMO_FL_USER3
88
+ #define ISEQ_MARKABLE_ISEQ IMEMO_FL_USER4
89
+
90
+ #define ISEQ_EXECUTABLE_P(iseq) (FL_TEST_RAW((iseq), ISEQ_NOT_LOADED_YET | ISEQ_USE_COMPILE_DATA) == 0)
91
+
92
+ struct iseq_compile_data {
93
+ /* GC is needed */
94
+ const VALUE err_info;
95
+ const VALUE catch_table_ary; /* Array */
96
+
97
+ /* GC is not needed */
98
+ struct iseq_label_data *start_label;
99
+ struct iseq_label_data *end_label;
100
+ struct iseq_label_data *redo_label;
101
+ const rb_iseq_t *current_block;
102
+ struct iseq_compile_data_ensure_node_stack *ensure_node_stack;
103
+ struct {
104
+ struct iseq_compile_data_storage *storage_head;
105
+ struct iseq_compile_data_storage *storage_current;
106
+ } node;
107
+ struct {
108
+ struct iseq_compile_data_storage *storage_head;
109
+ struct iseq_compile_data_storage *storage_current;
110
+ } insn;
111
+ int loopval_popped; /* used by NODE_BREAK */
112
+ int last_line;
113
+ int label_no;
114
+ int node_level;
115
+ unsigned int ci_index;
116
+ unsigned int ci_kw_index;
117
+ const rb_compile_option_t *option;
118
+ struct rb_id_table *ivar_cache_table;
119
+ const struct rb_builtin_function *builtin_function_table;
120
+ #if OPT_SUPPORT_JOKE
121
+ st_table *labels_table;
122
+ #endif
123
+ };
124
+
125
+ static inline struct iseq_compile_data *
126
+ ISEQ_COMPILE_DATA(const rb_iseq_t *iseq)
127
+ {
128
+ if (iseq->flags & ISEQ_USE_COMPILE_DATA) {
129
+ return iseq->aux.compile_data;
130
+ }
131
+ else {
132
+ return NULL;
133
+ }
134
+ }
135
+
136
+ static inline void
137
+ ISEQ_COMPILE_DATA_ALLOC(rb_iseq_t *iseq)
138
+ {
139
+ iseq->aux.compile_data = ZALLOC(struct iseq_compile_data);
140
+ iseq->flags |= ISEQ_USE_COMPILE_DATA;
141
+ }
142
+
143
+ static inline void
144
+ ISEQ_COMPILE_DATA_CLEAR(rb_iseq_t *iseq)
145
+ {
146
+ iseq->flags &= ~ISEQ_USE_COMPILE_DATA;
147
+ iseq->aux.compile_data = NULL;
148
+ }
149
+
150
+ static inline rb_iseq_t *
151
+ iseq_imemo_alloc(void)
152
+ {
153
+ return (rb_iseq_t *)rb_imemo_new(imemo_iseq, 0, 0, 0, 0);
154
+ }
155
+
156
+ VALUE rb_iseq_ibf_dump(const rb_iseq_t *iseq, VALUE opt);
157
+ void rb_ibf_load_iseq_complete(rb_iseq_t *iseq);
158
+ const rb_iseq_t *rb_iseq_ibf_load(VALUE str);
159
+ const rb_iseq_t *rb_iseq_ibf_load_bytes(const char *cstr, size_t);
160
+ VALUE rb_iseq_ibf_load_extra_data(VALUE str);
161
+ void rb_iseq_init_trace(rb_iseq_t *iseq);
162
+ int rb_iseq_add_local_tracepoint_recursively(const rb_iseq_t *iseq, rb_event_flag_t turnon_events, VALUE tpval, unsigned int target_line);
163
+ int rb_iseq_remove_local_tracepoint_recursively(const rb_iseq_t *iseq, VALUE tpval);
164
+ const rb_iseq_t *rb_iseq_load_iseq(VALUE fname);
165
+
166
+ #if VM_INSN_INFO_TABLE_IMPL == 2
167
+ unsigned int *rb_iseq_insns_info_decode_positions(const struct rb_iseq_constant_body *body);
168
+ #endif
169
+
170
+ RUBY_SYMBOL_EXPORT_BEGIN
171
+
172
+ /* compile.c */
173
+ VALUE rb_iseq_compile_node(rb_iseq_t *iseq, const NODE *node);
174
+ VALUE rb_iseq_compile_callback(rb_iseq_t *iseq, const struct rb_iseq_new_with_callback_callback_func * ifunc);
175
+ VALUE *rb_iseq_original_iseq(const rb_iseq_t *iseq);
176
+ void rb_iseq_build_from_ary(rb_iseq_t *iseq, VALUE misc,
177
+ VALUE locals, VALUE args,
178
+ VALUE exception, VALUE body);
179
+ void rb_iseq_mark_insn_storage(struct iseq_compile_data_storage *arena);
180
+
181
+ /* iseq.c */
182
+ VALUE rb_iseq_load(VALUE data, VALUE parent, VALUE opt);
183
+ VALUE rb_iseq_parameters(const rb_iseq_t *iseq, int is_proc);
184
+ unsigned int rb_iseq_line_no(const rb_iseq_t *iseq, size_t pos);
185
+ void rb_iseq_trace_set(const rb_iseq_t *iseq, rb_event_flag_t turnon_events);
186
+ void rb_iseq_trace_set_all(rb_event_flag_t turnon_events);
187
+ void rb_iseq_insns_info_encode_positions(const rb_iseq_t *iseq);
188
+
189
+ struct rb_iseq_constant_body *rb_iseq_constant_body_alloc(void);
190
+ VALUE rb_iseqw_new(const rb_iseq_t *iseq);
191
+ const rb_iseq_t *rb_iseqw_to_iseq(VALUE iseqw);
192
+
193
+ VALUE rb_iseq_absolute_path(const rb_iseq_t *iseq); /* obsolete */
194
+ VALUE rb_iseq_label(const rb_iseq_t *iseq);
195
+ VALUE rb_iseq_base_label(const rb_iseq_t *iseq);
196
+ VALUE rb_iseq_first_lineno(const rb_iseq_t *iseq);
197
+ VALUE rb_iseq_method_name(const rb_iseq_t *iseq);
198
+ void rb_iseq_code_location(const rb_iseq_t *iseq, int *first_lineno, int *first_column, int *last_lineno, int *last_column);
199
+
200
+ void rb_iseq_remove_coverage_all(void);
201
+
202
+ /* proc.c */
203
+ const rb_iseq_t *rb_method_iseq(VALUE body);
204
+ const rb_iseq_t *rb_proc_get_iseq(VALUE proc, int *is_proc);
205
+
206
+ struct rb_compile_option_struct {
207
+ unsigned int inline_const_cache: 1;
208
+ unsigned int peephole_optimization: 1;
209
+ unsigned int tailcall_optimization: 1;
210
+ unsigned int specialized_instruction: 1;
211
+ unsigned int operands_unification: 1;
212
+ unsigned int instructions_unification: 1;
213
+ unsigned int stack_caching: 1;
214
+ unsigned int frozen_string_literal: 1;
215
+ unsigned int debug_frozen_string_literal: 1;
216
+ unsigned int coverage_enabled: 1;
217
+ int debug_level;
218
+ };
219
+
220
+ struct iseq_insn_info_entry {
221
+ int line_no;
222
+ rb_event_flag_t events;
223
+ };
224
+
225
+ struct iseq_catch_table_entry {
226
+ enum catch_type {
227
+ CATCH_TYPE_RESCUE = INT2FIX(1),
228
+ CATCH_TYPE_ENSURE = INT2FIX(2),
229
+ CATCH_TYPE_RETRY = INT2FIX(3),
230
+ CATCH_TYPE_BREAK = INT2FIX(4),
231
+ CATCH_TYPE_REDO = INT2FIX(5),
232
+ CATCH_TYPE_NEXT = INT2FIX(6)
233
+ } type;
234
+
235
+ /*
236
+ * iseq type:
237
+ * CATCH_TYPE_RESCUE, CATCH_TYPE_ENSURE:
238
+ * use iseq as continuation.
239
+ *
240
+ * CATCH_TYPE_BREAK (iter):
241
+ * use iseq as key.
242
+ *
243
+ * CATCH_TYPE_BREAK (while), CATCH_TYPE_RETRY,
244
+ * CATCH_TYPE_REDO, CATCH_TYPE_NEXT:
245
+ * NULL.
246
+ */
247
+ rb_iseq_t *iseq;
248
+
249
+ unsigned int start;
250
+ unsigned int end;
251
+ unsigned int cont;
252
+ unsigned int sp;
253
+ };
254
+
255
+ PACKED_STRUCT_UNALIGNED(struct iseq_catch_table {
256
+ unsigned int size;
257
+ struct iseq_catch_table_entry entries[FLEX_ARY_LEN];
258
+ });
259
+
260
+ static inline int
261
+ iseq_catch_table_bytes(int n)
262
+ {
263
+ enum {
264
+ catch_table_entry_size = sizeof(struct iseq_catch_table_entry),
265
+ catch_table_entries_max = (INT_MAX - offsetof(struct iseq_catch_table, entries)) / catch_table_entry_size
266
+ };
267
+ if (n > catch_table_entries_max) rb_fatal("too large iseq_catch_table - %d", n);
268
+ return (int)(offsetof(struct iseq_catch_table, entries) +
269
+ n * catch_table_entry_size);
270
+ }
271
+
272
+ #define INITIAL_ISEQ_COMPILE_DATA_STORAGE_BUFF_SIZE (512)
273
+
274
+ struct iseq_compile_data_storage {
275
+ struct iseq_compile_data_storage *next;
276
+ unsigned int pos;
277
+ unsigned int size;
278
+ char buff[FLEX_ARY_LEN];
279
+ };
280
+
281
+ /* defined? */
282
+
283
+ enum defined_type {
284
+ DEFINED_NOT_DEFINED,
285
+ DEFINED_NIL = 1,
286
+ DEFINED_IVAR,
287
+ DEFINED_LVAR,
288
+ DEFINED_GVAR,
289
+ DEFINED_CVAR,
290
+ DEFINED_CONST,
291
+ DEFINED_METHOD,
292
+ DEFINED_YIELD,
293
+ DEFINED_ZSUPER,
294
+ DEFINED_SELF,
295
+ DEFINED_TRUE,
296
+ DEFINED_FALSE,
297
+ DEFINED_ASGN,
298
+ DEFINED_EXPR,
299
+ DEFINED_IVAR2,
300
+ DEFINED_REF,
301
+ DEFINED_FUNC,
302
+ DEFINED_CONST_FROM
303
+ };
304
+
305
+ VALUE rb_iseq_defined_string(enum defined_type type);
306
+
307
+ /* vm.c */
308
+ VALUE rb_iseq_local_variables(const rb_iseq_t *iseq);
309
+
310
+ RUBY_SYMBOL_EXPORT_END
311
+
312
+ #endif /* RUBY_ISEQ_H */
@@ -0,0 +1,791 @@
1
+ /** -*-c-*-
2
+ * DO NOT EDIT
3
+ * This file is automatically generated by tool/generic_erb.rb from
4
+ * template/known_errors.inc.tmpl and defs/known_errors.def.
5
+ */
6
+
7
+ #ifdef E2BIG
8
+ defined_error("E2BIG", E2BIG)
9
+ #else
10
+ undefined_error("E2BIG")
11
+ #endif
12
+ #ifdef EACCES
13
+ defined_error("EACCES", EACCES)
14
+ #else
15
+ undefined_error("EACCES")
16
+ #endif
17
+ #ifdef EADDRINUSE
18
+ defined_error("EADDRINUSE", EADDRINUSE)
19
+ #else
20
+ undefined_error("EADDRINUSE")
21
+ #endif
22
+ #ifdef EADDRNOTAVAIL
23
+ defined_error("EADDRNOTAVAIL", EADDRNOTAVAIL)
24
+ #else
25
+ undefined_error("EADDRNOTAVAIL")
26
+ #endif
27
+ #ifdef EADV
28
+ defined_error("EADV", EADV)
29
+ #else
30
+ undefined_error("EADV")
31
+ #endif
32
+ #ifdef EAFNOSUPPORT
33
+ defined_error("EAFNOSUPPORT", EAFNOSUPPORT)
34
+ #else
35
+ undefined_error("EAFNOSUPPORT")
36
+ #endif
37
+ #ifdef EAGAIN
38
+ defined_error("EAGAIN", EAGAIN)
39
+ #else
40
+ undefined_error("EAGAIN")
41
+ #endif
42
+ #ifdef EALREADY
43
+ defined_error("EALREADY", EALREADY)
44
+ #else
45
+ undefined_error("EALREADY")
46
+ #endif
47
+ #ifdef EAUTH
48
+ defined_error("EAUTH", EAUTH)
49
+ #else
50
+ undefined_error("EAUTH")
51
+ #endif
52
+ #ifdef EBADARCH
53
+ defined_error("EBADARCH", EBADARCH)
54
+ #else
55
+ undefined_error("EBADARCH")
56
+ #endif
57
+ #ifdef EBADE
58
+ defined_error("EBADE", EBADE)
59
+ #else
60
+ undefined_error("EBADE")
61
+ #endif
62
+ #ifdef EBADEXEC
63
+ defined_error("EBADEXEC", EBADEXEC)
64
+ #else
65
+ undefined_error("EBADEXEC")
66
+ #endif
67
+ #ifdef EBADF
68
+ defined_error("EBADF", EBADF)
69
+ #else
70
+ undefined_error("EBADF")
71
+ #endif
72
+ #ifdef EBADFD
73
+ defined_error("EBADFD", EBADFD)
74
+ #else
75
+ undefined_error("EBADFD")
76
+ #endif
77
+ #ifdef EBADMACHO
78
+ defined_error("EBADMACHO", EBADMACHO)
79
+ #else
80
+ undefined_error("EBADMACHO")
81
+ #endif
82
+ #ifdef EBADMSG
83
+ defined_error("EBADMSG", EBADMSG)
84
+ #else
85
+ undefined_error("EBADMSG")
86
+ #endif
87
+ #ifdef EBADR
88
+ defined_error("EBADR", EBADR)
89
+ #else
90
+ undefined_error("EBADR")
91
+ #endif
92
+ #ifdef EBADRPC
93
+ defined_error("EBADRPC", EBADRPC)
94
+ #else
95
+ undefined_error("EBADRPC")
96
+ #endif
97
+ #ifdef EBADRQC
98
+ defined_error("EBADRQC", EBADRQC)
99
+ #else
100
+ undefined_error("EBADRQC")
101
+ #endif
102
+ #ifdef EBADSLT
103
+ defined_error("EBADSLT", EBADSLT)
104
+ #else
105
+ undefined_error("EBADSLT")
106
+ #endif
107
+ #ifdef EBFONT
108
+ defined_error("EBFONT", EBFONT)
109
+ #else
110
+ undefined_error("EBFONT")
111
+ #endif
112
+ #ifdef EBUSY
113
+ defined_error("EBUSY", EBUSY)
114
+ #else
115
+ undefined_error("EBUSY")
116
+ #endif
117
+ #ifdef ECANCELED
118
+ defined_error("ECANCELED", ECANCELED)
119
+ #else
120
+ undefined_error("ECANCELED")
121
+ #endif
122
+ #ifdef ECAPMODE
123
+ defined_error("ECAPMODE", ECAPMODE)
124
+ #else
125
+ undefined_error("ECAPMODE")
126
+ #endif
127
+ #ifdef ECHILD
128
+ defined_error("ECHILD", ECHILD)
129
+ #else
130
+ undefined_error("ECHILD")
131
+ #endif
132
+ #ifdef ECHRNG
133
+ defined_error("ECHRNG", ECHRNG)
134
+ #else
135
+ undefined_error("ECHRNG")
136
+ #endif
137
+ #ifdef ECOMM
138
+ defined_error("ECOMM", ECOMM)
139
+ #else
140
+ undefined_error("ECOMM")
141
+ #endif
142
+ #ifdef ECONNABORTED
143
+ defined_error("ECONNABORTED", ECONNABORTED)
144
+ #else
145
+ undefined_error("ECONNABORTED")
146
+ #endif
147
+ #ifdef ECONNREFUSED
148
+ defined_error("ECONNREFUSED", ECONNREFUSED)
149
+ #else
150
+ undefined_error("ECONNREFUSED")
151
+ #endif
152
+ #ifdef ECONNRESET
153
+ defined_error("ECONNRESET", ECONNRESET)
154
+ #else
155
+ undefined_error("ECONNRESET")
156
+ #endif
157
+ #ifdef EDEADLK
158
+ defined_error("EDEADLK", EDEADLK)
159
+ #else
160
+ undefined_error("EDEADLK")
161
+ #endif
162
+ #ifdef EDEADLOCK
163
+ defined_error("EDEADLOCK", EDEADLOCK)
164
+ #else
165
+ undefined_error("EDEADLOCK")
166
+ #endif
167
+ #ifdef EDESTADDRREQ
168
+ defined_error("EDESTADDRREQ", EDESTADDRREQ)
169
+ #else
170
+ undefined_error("EDESTADDRREQ")
171
+ #endif
172
+ #ifdef EDEVERR
173
+ defined_error("EDEVERR", EDEVERR)
174
+ #else
175
+ undefined_error("EDEVERR")
176
+ #endif
177
+ #ifdef EDOM
178
+ defined_error("EDOM", EDOM)
179
+ #else
180
+ undefined_error("EDOM")
181
+ #endif
182
+ #ifdef EDOOFUS
183
+ defined_error("EDOOFUS", EDOOFUS)
184
+ #else
185
+ undefined_error("EDOOFUS")
186
+ #endif
187
+ #ifdef EDOTDOT
188
+ defined_error("EDOTDOT", EDOTDOT)
189
+ #else
190
+ undefined_error("EDOTDOT")
191
+ #endif
192
+ #ifdef EDQUOT
193
+ defined_error("EDQUOT", EDQUOT)
194
+ #else
195
+ undefined_error("EDQUOT")
196
+ #endif
197
+ #ifdef EEXIST
198
+ defined_error("EEXIST", EEXIST)
199
+ #else
200
+ undefined_error("EEXIST")
201
+ #endif
202
+ #ifdef EFAULT
203
+ defined_error("EFAULT", EFAULT)
204
+ #else
205
+ undefined_error("EFAULT")
206
+ #endif
207
+ #ifdef EFBIG
208
+ defined_error("EFBIG", EFBIG)
209
+ #else
210
+ undefined_error("EFBIG")
211
+ #endif
212
+ #ifdef EFTYPE
213
+ defined_error("EFTYPE", EFTYPE)
214
+ #else
215
+ undefined_error("EFTYPE")
216
+ #endif
217
+ #ifdef EHOSTDOWN
218
+ defined_error("EHOSTDOWN", EHOSTDOWN)
219
+ #else
220
+ undefined_error("EHOSTDOWN")
221
+ #endif
222
+ #ifdef EHOSTUNREACH
223
+ defined_error("EHOSTUNREACH", EHOSTUNREACH)
224
+ #else
225
+ undefined_error("EHOSTUNREACH")
226
+ #endif
227
+ #ifdef EHWPOISON
228
+ defined_error("EHWPOISON", EHWPOISON)
229
+ #else
230
+ undefined_error("EHWPOISON")
231
+ #endif
232
+ #ifdef EIDRM
233
+ defined_error("EIDRM", EIDRM)
234
+ #else
235
+ undefined_error("EIDRM")
236
+ #endif
237
+ #ifdef EILSEQ
238
+ defined_error("EILSEQ", EILSEQ)
239
+ #else
240
+ undefined_error("EILSEQ")
241
+ #endif
242
+ #ifdef EINPROGRESS
243
+ defined_error("EINPROGRESS", EINPROGRESS)
244
+ #else
245
+ undefined_error("EINPROGRESS")
246
+ #endif
247
+ #ifdef EINTR
248
+ defined_error("EINTR", EINTR)
249
+ #else
250
+ undefined_error("EINTR")
251
+ #endif
252
+ #ifdef EINVAL
253
+ defined_error("EINVAL", EINVAL)
254
+ #else
255
+ undefined_error("EINVAL")
256
+ #endif
257
+ #ifdef EIO
258
+ defined_error("EIO", EIO)
259
+ #else
260
+ undefined_error("EIO")
261
+ #endif
262
+ #ifdef EIPSEC
263
+ defined_error("EIPSEC", EIPSEC)
264
+ #else
265
+ undefined_error("EIPSEC")
266
+ #endif
267
+ #ifdef EISCONN
268
+ defined_error("EISCONN", EISCONN)
269
+ #else
270
+ undefined_error("EISCONN")
271
+ #endif
272
+ #ifdef EISDIR
273
+ defined_error("EISDIR", EISDIR)
274
+ #else
275
+ undefined_error("EISDIR")
276
+ #endif
277
+ #ifdef EISNAM
278
+ defined_error("EISNAM", EISNAM)
279
+ #else
280
+ undefined_error("EISNAM")
281
+ #endif
282
+ #ifdef EKEYEXPIRED
283
+ defined_error("EKEYEXPIRED", EKEYEXPIRED)
284
+ #else
285
+ undefined_error("EKEYEXPIRED")
286
+ #endif
287
+ #ifdef EKEYREJECTED
288
+ defined_error("EKEYREJECTED", EKEYREJECTED)
289
+ #else
290
+ undefined_error("EKEYREJECTED")
291
+ #endif
292
+ #ifdef EKEYREVOKED
293
+ defined_error("EKEYREVOKED", EKEYREVOKED)
294
+ #else
295
+ undefined_error("EKEYREVOKED")
296
+ #endif
297
+ #ifdef EL2HLT
298
+ defined_error("EL2HLT", EL2HLT)
299
+ #else
300
+ undefined_error("EL2HLT")
301
+ #endif
302
+ #ifdef EL2NSYNC
303
+ defined_error("EL2NSYNC", EL2NSYNC)
304
+ #else
305
+ undefined_error("EL2NSYNC")
306
+ #endif
307
+ #ifdef EL3HLT
308
+ defined_error("EL3HLT", EL3HLT)
309
+ #else
310
+ undefined_error("EL3HLT")
311
+ #endif
312
+ #ifdef EL3RST
313
+ defined_error("EL3RST", EL3RST)
314
+ #else
315
+ undefined_error("EL3RST")
316
+ #endif
317
+ #ifdef ELAST
318
+ defined_error("ELAST", ELAST)
319
+ #else
320
+ undefined_error("ELAST")
321
+ #endif
322
+ #ifdef ELIBACC
323
+ defined_error("ELIBACC", ELIBACC)
324
+ #else
325
+ undefined_error("ELIBACC")
326
+ #endif
327
+ #ifdef ELIBBAD
328
+ defined_error("ELIBBAD", ELIBBAD)
329
+ #else
330
+ undefined_error("ELIBBAD")
331
+ #endif
332
+ #ifdef ELIBEXEC
333
+ defined_error("ELIBEXEC", ELIBEXEC)
334
+ #else
335
+ undefined_error("ELIBEXEC")
336
+ #endif
337
+ #ifdef ELIBMAX
338
+ defined_error("ELIBMAX", ELIBMAX)
339
+ #else
340
+ undefined_error("ELIBMAX")
341
+ #endif
342
+ #ifdef ELIBSCN
343
+ defined_error("ELIBSCN", ELIBSCN)
344
+ #else
345
+ undefined_error("ELIBSCN")
346
+ #endif
347
+ #ifdef ELNRNG
348
+ defined_error("ELNRNG", ELNRNG)
349
+ #else
350
+ undefined_error("ELNRNG")
351
+ #endif
352
+ #ifdef ELOOP
353
+ defined_error("ELOOP", ELOOP)
354
+ #else
355
+ undefined_error("ELOOP")
356
+ #endif
357
+ #ifdef EMEDIUMTYPE
358
+ defined_error("EMEDIUMTYPE", EMEDIUMTYPE)
359
+ #else
360
+ undefined_error("EMEDIUMTYPE")
361
+ #endif
362
+ #ifdef EMFILE
363
+ defined_error("EMFILE", EMFILE)
364
+ #else
365
+ undefined_error("EMFILE")
366
+ #endif
367
+ #ifdef EMLINK
368
+ defined_error("EMLINK", EMLINK)
369
+ #else
370
+ undefined_error("EMLINK")
371
+ #endif
372
+ #ifdef EMSGSIZE
373
+ defined_error("EMSGSIZE", EMSGSIZE)
374
+ #else
375
+ undefined_error("EMSGSIZE")
376
+ #endif
377
+ #ifdef EMULTIHOP
378
+ defined_error("EMULTIHOP", EMULTIHOP)
379
+ #else
380
+ undefined_error("EMULTIHOP")
381
+ #endif
382
+ #ifdef ENAMETOOLONG
383
+ defined_error("ENAMETOOLONG", ENAMETOOLONG)
384
+ #else
385
+ undefined_error("ENAMETOOLONG")
386
+ #endif
387
+ #ifdef ENAVAIL
388
+ defined_error("ENAVAIL", ENAVAIL)
389
+ #else
390
+ undefined_error("ENAVAIL")
391
+ #endif
392
+ #ifdef ENEEDAUTH
393
+ defined_error("ENEEDAUTH", ENEEDAUTH)
394
+ #else
395
+ undefined_error("ENEEDAUTH")
396
+ #endif
397
+ #ifdef ENETDOWN
398
+ defined_error("ENETDOWN", ENETDOWN)
399
+ #else
400
+ undefined_error("ENETDOWN")
401
+ #endif
402
+ #ifdef ENETRESET
403
+ defined_error("ENETRESET", ENETRESET)
404
+ #else
405
+ undefined_error("ENETRESET")
406
+ #endif
407
+ #ifdef ENETUNREACH
408
+ defined_error("ENETUNREACH", ENETUNREACH)
409
+ #else
410
+ undefined_error("ENETUNREACH")
411
+ #endif
412
+ #ifdef ENFILE
413
+ defined_error("ENFILE", ENFILE)
414
+ #else
415
+ undefined_error("ENFILE")
416
+ #endif
417
+ #ifdef ENOANO
418
+ defined_error("ENOANO", ENOANO)
419
+ #else
420
+ undefined_error("ENOANO")
421
+ #endif
422
+ #ifdef ENOATTR
423
+ defined_error("ENOATTR", ENOATTR)
424
+ #else
425
+ undefined_error("ENOATTR")
426
+ #endif
427
+ #ifdef ENOBUFS
428
+ defined_error("ENOBUFS", ENOBUFS)
429
+ #else
430
+ undefined_error("ENOBUFS")
431
+ #endif
432
+ #ifdef ENOCSI
433
+ defined_error("ENOCSI", ENOCSI)
434
+ #else
435
+ undefined_error("ENOCSI")
436
+ #endif
437
+ #ifdef ENODATA
438
+ defined_error("ENODATA", ENODATA)
439
+ #else
440
+ undefined_error("ENODATA")
441
+ #endif
442
+ #ifdef ENODEV
443
+ defined_error("ENODEV", ENODEV)
444
+ #else
445
+ undefined_error("ENODEV")
446
+ #endif
447
+ #ifdef ENOENT
448
+ defined_error("ENOENT", ENOENT)
449
+ #else
450
+ undefined_error("ENOENT")
451
+ #endif
452
+ #ifdef ENOEXEC
453
+ defined_error("ENOEXEC", ENOEXEC)
454
+ #else
455
+ undefined_error("ENOEXEC")
456
+ #endif
457
+ #ifdef ENOKEY
458
+ defined_error("ENOKEY", ENOKEY)
459
+ #else
460
+ undefined_error("ENOKEY")
461
+ #endif
462
+ #ifdef ENOLCK
463
+ defined_error("ENOLCK", ENOLCK)
464
+ #else
465
+ undefined_error("ENOLCK")
466
+ #endif
467
+ #ifdef ENOLINK
468
+ defined_error("ENOLINK", ENOLINK)
469
+ #else
470
+ undefined_error("ENOLINK")
471
+ #endif
472
+ #ifdef ENOMEDIUM
473
+ defined_error("ENOMEDIUM", ENOMEDIUM)
474
+ #else
475
+ undefined_error("ENOMEDIUM")
476
+ #endif
477
+ #ifdef ENOMEM
478
+ defined_error("ENOMEM", ENOMEM)
479
+ #else
480
+ undefined_error("ENOMEM")
481
+ #endif
482
+ #ifdef ENOMSG
483
+ defined_error("ENOMSG", ENOMSG)
484
+ #else
485
+ undefined_error("ENOMSG")
486
+ #endif
487
+ #ifdef ENONET
488
+ defined_error("ENONET", ENONET)
489
+ #else
490
+ undefined_error("ENONET")
491
+ #endif
492
+ #ifdef ENOPKG
493
+ defined_error("ENOPKG", ENOPKG)
494
+ #else
495
+ undefined_error("ENOPKG")
496
+ #endif
497
+ #ifdef ENOPOLICY
498
+ defined_error("ENOPOLICY", ENOPOLICY)
499
+ #else
500
+ undefined_error("ENOPOLICY")
501
+ #endif
502
+ #ifdef ENOPROTOOPT
503
+ defined_error("ENOPROTOOPT", ENOPROTOOPT)
504
+ #else
505
+ undefined_error("ENOPROTOOPT")
506
+ #endif
507
+ #ifdef ENOSPC
508
+ defined_error("ENOSPC", ENOSPC)
509
+ #else
510
+ undefined_error("ENOSPC")
511
+ #endif
512
+ #ifdef ENOSR
513
+ defined_error("ENOSR", ENOSR)
514
+ #else
515
+ undefined_error("ENOSR")
516
+ #endif
517
+ #ifdef ENOSTR
518
+ defined_error("ENOSTR", ENOSTR)
519
+ #else
520
+ undefined_error("ENOSTR")
521
+ #endif
522
+ #ifdef ENOSYS
523
+ defined_error("ENOSYS", ENOSYS)
524
+ #else
525
+ undefined_error("ENOSYS")
526
+ #endif
527
+ #ifdef ENOTBLK
528
+ defined_error("ENOTBLK", ENOTBLK)
529
+ #else
530
+ undefined_error("ENOTBLK")
531
+ #endif
532
+ #ifdef ENOTCAPABLE
533
+ defined_error("ENOTCAPABLE", ENOTCAPABLE)
534
+ #else
535
+ undefined_error("ENOTCAPABLE")
536
+ #endif
537
+ #ifdef ENOTCONN
538
+ defined_error("ENOTCONN", ENOTCONN)
539
+ #else
540
+ undefined_error("ENOTCONN")
541
+ #endif
542
+ #ifdef ENOTDIR
543
+ defined_error("ENOTDIR", ENOTDIR)
544
+ #else
545
+ undefined_error("ENOTDIR")
546
+ #endif
547
+ #ifdef ENOTEMPTY
548
+ defined_error("ENOTEMPTY", ENOTEMPTY)
549
+ #else
550
+ undefined_error("ENOTEMPTY")
551
+ #endif
552
+ #ifdef ENOTNAM
553
+ defined_error("ENOTNAM", ENOTNAM)
554
+ #else
555
+ undefined_error("ENOTNAM")
556
+ #endif
557
+ #ifdef ENOTRECOVERABLE
558
+ defined_error("ENOTRECOVERABLE", ENOTRECOVERABLE)
559
+ #else
560
+ undefined_error("ENOTRECOVERABLE")
561
+ #endif
562
+ #ifdef ENOTSOCK
563
+ defined_error("ENOTSOCK", ENOTSOCK)
564
+ #else
565
+ undefined_error("ENOTSOCK")
566
+ #endif
567
+ #ifdef ENOTSUP
568
+ defined_error("ENOTSUP", ENOTSUP)
569
+ #else
570
+ undefined_error("ENOTSUP")
571
+ #endif
572
+ #ifdef ENOTTY
573
+ defined_error("ENOTTY", ENOTTY)
574
+ #else
575
+ undefined_error("ENOTTY")
576
+ #endif
577
+ #ifdef ENOTUNIQ
578
+ defined_error("ENOTUNIQ", ENOTUNIQ)
579
+ #else
580
+ undefined_error("ENOTUNIQ")
581
+ #endif
582
+ #ifdef ENXIO
583
+ defined_error("ENXIO", ENXIO)
584
+ #else
585
+ undefined_error("ENXIO")
586
+ #endif
587
+ #ifdef EOPNOTSUPP
588
+ defined_error("EOPNOTSUPP", EOPNOTSUPP)
589
+ #else
590
+ undefined_error("EOPNOTSUPP")
591
+ #endif
592
+ #ifdef EOVERFLOW
593
+ defined_error("EOVERFLOW", EOVERFLOW)
594
+ #else
595
+ undefined_error("EOVERFLOW")
596
+ #endif
597
+ #ifdef EOWNERDEAD
598
+ defined_error("EOWNERDEAD", EOWNERDEAD)
599
+ #else
600
+ undefined_error("EOWNERDEAD")
601
+ #endif
602
+ #ifdef EPERM
603
+ defined_error("EPERM", EPERM)
604
+ #else
605
+ undefined_error("EPERM")
606
+ #endif
607
+ #ifdef EPFNOSUPPORT
608
+ defined_error("EPFNOSUPPORT", EPFNOSUPPORT)
609
+ #else
610
+ undefined_error("EPFNOSUPPORT")
611
+ #endif
612
+ #ifdef EPIPE
613
+ defined_error("EPIPE", EPIPE)
614
+ #else
615
+ undefined_error("EPIPE")
616
+ #endif
617
+ #ifdef EPROCLIM
618
+ defined_error("EPROCLIM", EPROCLIM)
619
+ #else
620
+ undefined_error("EPROCLIM")
621
+ #endif
622
+ #ifdef EPROCUNAVAIL
623
+ defined_error("EPROCUNAVAIL", EPROCUNAVAIL)
624
+ #else
625
+ undefined_error("EPROCUNAVAIL")
626
+ #endif
627
+ #ifdef EPROGMISMATCH
628
+ defined_error("EPROGMISMATCH", EPROGMISMATCH)
629
+ #else
630
+ undefined_error("EPROGMISMATCH")
631
+ #endif
632
+ #ifdef EPROGUNAVAIL
633
+ defined_error("EPROGUNAVAIL", EPROGUNAVAIL)
634
+ #else
635
+ undefined_error("EPROGUNAVAIL")
636
+ #endif
637
+ #ifdef EPROTO
638
+ defined_error("EPROTO", EPROTO)
639
+ #else
640
+ undefined_error("EPROTO")
641
+ #endif
642
+ #ifdef EPROTONOSUPPORT
643
+ defined_error("EPROTONOSUPPORT", EPROTONOSUPPORT)
644
+ #else
645
+ undefined_error("EPROTONOSUPPORT")
646
+ #endif
647
+ #ifdef EPROTOTYPE
648
+ defined_error("EPROTOTYPE", EPROTOTYPE)
649
+ #else
650
+ undefined_error("EPROTOTYPE")
651
+ #endif
652
+ #ifdef EPWROFF
653
+ defined_error("EPWROFF", EPWROFF)
654
+ #else
655
+ undefined_error("EPWROFF")
656
+ #endif
657
+ #ifdef EQFULL
658
+ defined_error("EQFULL", EQFULL)
659
+ #else
660
+ undefined_error("EQFULL")
661
+ #endif
662
+ #ifdef ERANGE
663
+ defined_error("ERANGE", ERANGE)
664
+ #else
665
+ undefined_error("ERANGE")
666
+ #endif
667
+ #ifdef EREMCHG
668
+ defined_error("EREMCHG", EREMCHG)
669
+ #else
670
+ undefined_error("EREMCHG")
671
+ #endif
672
+ #ifdef EREMOTE
673
+ defined_error("EREMOTE", EREMOTE)
674
+ #else
675
+ undefined_error("EREMOTE")
676
+ #endif
677
+ #ifdef EREMOTEIO
678
+ defined_error("EREMOTEIO", EREMOTEIO)
679
+ #else
680
+ undefined_error("EREMOTEIO")
681
+ #endif
682
+ #ifdef ERESTART
683
+ defined_error("ERESTART", ERESTART)
684
+ #else
685
+ undefined_error("ERESTART")
686
+ #endif
687
+ #ifdef ERFKILL
688
+ defined_error("ERFKILL", ERFKILL)
689
+ #else
690
+ undefined_error("ERFKILL")
691
+ #endif
692
+ #ifdef EROFS
693
+ defined_error("EROFS", EROFS)
694
+ #else
695
+ undefined_error("EROFS")
696
+ #endif
697
+ #ifdef ERPCMISMATCH
698
+ defined_error("ERPCMISMATCH", ERPCMISMATCH)
699
+ #else
700
+ undefined_error("ERPCMISMATCH")
701
+ #endif
702
+ #ifdef ESHLIBVERS
703
+ defined_error("ESHLIBVERS", ESHLIBVERS)
704
+ #else
705
+ undefined_error("ESHLIBVERS")
706
+ #endif
707
+ #ifdef ESHUTDOWN
708
+ defined_error("ESHUTDOWN", ESHUTDOWN)
709
+ #else
710
+ undefined_error("ESHUTDOWN")
711
+ #endif
712
+ #ifdef ESOCKTNOSUPPORT
713
+ defined_error("ESOCKTNOSUPPORT", ESOCKTNOSUPPORT)
714
+ #else
715
+ undefined_error("ESOCKTNOSUPPORT")
716
+ #endif
717
+ #ifdef ESPIPE
718
+ defined_error("ESPIPE", ESPIPE)
719
+ #else
720
+ undefined_error("ESPIPE")
721
+ #endif
722
+ #ifdef ESRCH
723
+ defined_error("ESRCH", ESRCH)
724
+ #else
725
+ undefined_error("ESRCH")
726
+ #endif
727
+ #ifdef ESRMNT
728
+ defined_error("ESRMNT", ESRMNT)
729
+ #else
730
+ undefined_error("ESRMNT")
731
+ #endif
732
+ #ifdef ESTALE
733
+ defined_error("ESTALE", ESTALE)
734
+ #else
735
+ undefined_error("ESTALE")
736
+ #endif
737
+ #ifdef ESTRPIPE
738
+ defined_error("ESTRPIPE", ESTRPIPE)
739
+ #else
740
+ undefined_error("ESTRPIPE")
741
+ #endif
742
+ #ifdef ETIME
743
+ defined_error("ETIME", ETIME)
744
+ #else
745
+ undefined_error("ETIME")
746
+ #endif
747
+ #ifdef ETIMEDOUT
748
+ defined_error("ETIMEDOUT", ETIMEDOUT)
749
+ #else
750
+ undefined_error("ETIMEDOUT")
751
+ #endif
752
+ #ifdef ETOOMANYREFS
753
+ defined_error("ETOOMANYREFS", ETOOMANYREFS)
754
+ #else
755
+ undefined_error("ETOOMANYREFS")
756
+ #endif
757
+ #ifdef ETXTBSY
758
+ defined_error("ETXTBSY", ETXTBSY)
759
+ #else
760
+ undefined_error("ETXTBSY")
761
+ #endif
762
+ #ifdef EUCLEAN
763
+ defined_error("EUCLEAN", EUCLEAN)
764
+ #else
765
+ undefined_error("EUCLEAN")
766
+ #endif
767
+ #ifdef EUNATCH
768
+ defined_error("EUNATCH", EUNATCH)
769
+ #else
770
+ undefined_error("EUNATCH")
771
+ #endif
772
+ #ifdef EUSERS
773
+ defined_error("EUSERS", EUSERS)
774
+ #else
775
+ undefined_error("EUSERS")
776
+ #endif
777
+ #ifdef EWOULDBLOCK
778
+ defined_error("EWOULDBLOCK", EWOULDBLOCK)
779
+ #else
780
+ undefined_error("EWOULDBLOCK")
781
+ #endif
782
+ #ifdef EXDEV
783
+ defined_error("EXDEV", EXDEV)
784
+ #else
785
+ undefined_error("EXDEV")
786
+ #endif
787
+ #ifdef EXFULL
788
+ defined_error("EXFULL", EXFULL)
789
+ #else
790
+ undefined_error("EXFULL")
791
+ #endif