rake-builder 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (382) hide show
  1. data/lib/rake/builder.rb +15 -10
  2. data/lib/rake/builder/local_config.rb +2 -0
  3. data/lib/rake/builder/task_definers/builder_collection_task_definer.rb +1 -5
  4. data/lib/rake/builder/task_definers/builder_task_definer.rb +24 -21
  5. data/lib/rake/builder/version.rb +1 -1
  6. data/lib/rake/path.rb +7 -35
  7. data/spec/unit/rake/builder/local_config_spec.rb +27 -0
  8. data/spec/unit/rake/builder/task_definers/builder_task_definer_spec.rb +85 -0
  9. data/spec/unit/rake/builder_spec.rb +53 -6
  10. data/spec/unit/rake/path_spec.rb +29 -0
  11. metadata +41 -427
  12. data/examples/03_search_paths/vendor/bundle/gems/json-1.7.6/Rakefile +0 -412
  13. data/examples/03_search_paths/vendor/bundle/gems/json-1.7.6/ext/json/ext/fbuffer/fbuffer.h +0 -185
  14. data/examples/03_search_paths/vendor/bundle/gems/json-1.7.6/ext/json/ext/generator/generator.c +0 -1427
  15. data/examples/03_search_paths/vendor/bundle/gems/json-1.7.6/ext/json/ext/generator/generator.h +0 -149
  16. data/examples/03_search_paths/vendor/bundle/gems/json-1.7.6/ext/json/ext/parser/parser.c +0 -2204
  17. data/examples/03_search_paths/vendor/bundle/gems/json-1.7.6/ext/json/ext/parser/parser.h +0 -77
  18. data/examples/03_search_paths/vendor/bundle/gems/rake-10.0.3/Rakefile +0 -374
  19. data/examples/03_search_paths/vendor/bundle/gems/rake-10.0.3/doc/example/a.c +0 -6
  20. data/examples/03_search_paths/vendor/bundle/gems/rake-10.0.3/doc/example/b.c +0 -6
  21. data/examples/03_search_paths/vendor/bundle/gems/rake-10.0.3/doc/example/main.c +0 -11
  22. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/Rakefile +0 -125
  23. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/binding_of_caller.c +0 -224
  24. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/192/debug.h +0 -36
  25. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/192/dln.h +0 -41
  26. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/192/eval_intern.h +0 -232
  27. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/192/gc.h +0 -77
  28. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/192/id.h +0 -173
  29. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/192/iseq.h +0 -104
  30. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/192/method.h +0 -103
  31. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/192/node.h +0 -483
  32. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/192/regenc.h +0 -211
  33. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/192/regint.h +0 -841
  34. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/192/regparse.h +0 -354
  35. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/192/thread_pthread.h +0 -27
  36. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/192/thread_win32.h +0 -33
  37. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/192/timev.h +0 -21
  38. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/192/transcode_data.h +0 -109
  39. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/192/version.h +0 -63
  40. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/192/vm_core.h +0 -703
  41. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/192/vm_exec.h +0 -184
  42. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/192/vm_insnhelper.h +0 -208
  43. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/192/vm_opts.h +0 -51
  44. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/193/addr2line.h +0 -21
  45. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/193/atomic.h +0 -56
  46. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/193/constant.h +0 -34
  47. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/193/debug.h +0 -41
  48. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/193/dln.h +0 -50
  49. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/193/encdb.h +0 -167
  50. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/193/eval_intern.h +0 -234
  51. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/193/gc.h +0 -98
  52. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/193/id.h +0 -175
  53. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/193/internal.h +0 -227
  54. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/193/iseq.h +0 -125
  55. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/193/method.h +0 -105
  56. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/193/node.h +0 -503
  57. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/193/parse.h +0 -186
  58. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/193/regenc.h +0 -219
  59. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/193/regint.h +0 -851
  60. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/193/regparse.h +0 -362
  61. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/193/revision.h +0 -1
  62. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/193/thread_pthread.h +0 -51
  63. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/193/thread_win32.h +0 -40
  64. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/193/timev.h +0 -21
  65. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/193/transcode_data.h +0 -117
  66. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/193/transdb.h +0 -189
  67. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/193/version.h +0 -52
  68. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/193/vm_core.h +0 -755
  69. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/193/vm_exec.h +0 -184
  70. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/193/vm_insnhelper.h +0 -220
  71. data/examples/04_zlib/vendor/bundle/gems/binding_of_caller-0.6.8/ext/binding_of_caller/ruby_headers/193/vm_opts.h +0 -51
  72. data/examples/04_zlib/vendor/bundle/gems/bond-0.4.3/Rakefile +0 -47
  73. data/examples/04_zlib/vendor/bundle/gems/bond-0.4.3/ext/readline_line_buffer/readline_line_buffer.c +0 -24
  74. data/examples/04_zlib/vendor/bundle/gems/coderay-1.0.8/Rakefile +0 -35
  75. data/examples/04_zlib/vendor/bundle/gems/columnize-0.3.6/Rakefile +0 -93
  76. data/examples/04_zlib/vendor/bundle/gems/debugger-1.2.4/Rakefile +0 -130
  77. data/examples/04_zlib/vendor/bundle/gems/debugger-1.2.4/ext/ruby_debug/192/breakpoint.c +0 -586
  78. data/examples/04_zlib/vendor/bundle/gems/debugger-1.2.4/ext/ruby_debug/192/ruby_debug.c +0 -2645
  79. data/examples/04_zlib/vendor/bundle/gems/debugger-1.2.4/ext/ruby_debug/192/ruby_debug.h +0 -148
  80. data/examples/04_zlib/vendor/bundle/gems/debugger-1.2.4/ext/ruby_debug/193/breakpoint.c +0 -586
  81. data/examples/04_zlib/vendor/bundle/gems/debugger-1.2.4/ext/ruby_debug/193/ruby_debug.c +0 -2626
  82. data/examples/04_zlib/vendor/bundle/gems/debugger-1.2.4/ext/ruby_debug/193/ruby_debug.h +0 -148
  83. data/examples/04_zlib/vendor/bundle/gems/debugger-1.2.4/ext/ruby_debug/breakpoint.c +0 -586
  84. data/examples/04_zlib/vendor/bundle/gems/debugger-1.2.4/ext/ruby_debug/ruby_debug.c +0 -2626
  85. data/examples/04_zlib/vendor/bundle/gems/debugger-1.2.4/ext/ruby_debug/ruby_debug.h +0 -148
  86. data/examples/04_zlib/vendor/bundle/gems/debugger-linecache-1.1.2/Rakefile +0 -71
  87. data/examples/04_zlib/vendor/bundle/gems/debugger-linecache-1.1.2/ext/trace_nums/trace_nums.c +0 -105
  88. data/examples/04_zlib/vendor/bundle/gems/debugger-linecache-1.1.2/ext/trace_nums/trace_nums.h +0 -111
  89. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/Rakefile +0 -32
  90. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p290/debug.h +0 -36
  91. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p290/dln.h +0 -41
  92. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p290/encdb.h +0 -163
  93. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p290/eval_intern.h +0 -232
  94. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p290/gc.h +0 -77
  95. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p290/id.h +0 -170
  96. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p290/iseq.h +0 -104
  97. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p290/method.h +0 -103
  98. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p290/node.h +0 -483
  99. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p290/parse.h +0 -187
  100. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p290/regenc.h +0 -211
  101. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p290/regint.h +0 -841
  102. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p290/regparse.h +0 -354
  103. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p290/revision.h +0 -1
  104. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p290/thread_pthread.h +0 -27
  105. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p290/thread_win32.h +0 -33
  106. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p290/timev.h +0 -21
  107. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p290/transcode_data.h +0 -109
  108. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p290/transdb.h +0 -179
  109. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p290/version.h +0 -55
  110. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p290/vm_core.h +0 -707
  111. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p290/vm_exec.h +0 -184
  112. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p290/vm_insnhelper.h +0 -208
  113. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p290/vm_opts.h +0 -51
  114. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p318/debug.h +0 -36
  115. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p318/dln.h +0 -41
  116. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p318/encdb.h +0 -163
  117. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p318/eval_intern.h +0 -232
  118. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p318/gc.h +0 -77
  119. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p318/id.h +0 -170
  120. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p318/iseq.h +0 -104
  121. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p318/method.h +0 -103
  122. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p318/node.h +0 -483
  123. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p318/parse.h +0 -186
  124. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p318/regenc.h +0 -211
  125. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p318/regint.h +0 -841
  126. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p318/regparse.h +0 -354
  127. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p318/revision.h +0 -1
  128. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p318/thread_pthread.h +0 -27
  129. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p318/thread_win32.h +0 -33
  130. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p318/timev.h +0 -21
  131. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p318/transcode_data.h +0 -109
  132. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p318/transdb.h +0 -179
  133. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p318/version.h +0 -55
  134. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p318/vm_core.h +0 -706
  135. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p318/vm_exec.h +0 -184
  136. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p318/vm_insnhelper.h +0 -208
  137. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p318/vm_opts.h +0 -51
  138. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p320/debug.h +0 -36
  139. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p320/dln.h +0 -41
  140. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p320/encdb.h +0 -163
  141. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p320/eval_intern.h +0 -232
  142. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p320/gc.h +0 -77
  143. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p320/id.h +0 -170
  144. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p320/iseq.h +0 -104
  145. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p320/method.h +0 -103
  146. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p320/node.h +0 -483
  147. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p320/parse.h +0 -186
  148. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p320/regenc.h +0 -211
  149. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p320/regint.h +0 -841
  150. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p320/regparse.h +0 -354
  151. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p320/revision.h +0 -1
  152. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p320/thread_pthread.h +0 -27
  153. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p320/thread_win32.h +0 -33
  154. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p320/timev.h +0 -21
  155. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p320/transcode_data.h +0 -109
  156. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p320/transdb.h +0 -179
  157. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p320/version.h +0 -55
  158. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p320/vm_core.h +0 -706
  159. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p320/vm_exec.h +0 -184
  160. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p320/vm_insnhelper.h +0 -208
  161. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.2-p320/vm_opts.h +0 -51
  162. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p0/addr2line.h +0 -21
  163. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p0/atomic.h +0 -56
  164. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p0/constant.h +0 -34
  165. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p0/debug.h +0 -41
  166. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p0/dln.h +0 -50
  167. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p0/encdb.h +0 -167
  168. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p0/eval_intern.h +0 -234
  169. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p0/gc.h +0 -98
  170. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p0/id.h +0 -175
  171. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p0/internal.h +0 -227
  172. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p0/iseq.h +0 -125
  173. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p0/method.h +0 -105
  174. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p0/node.h +0 -503
  175. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p0/parse.h +0 -186
  176. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p0/regenc.h +0 -219
  177. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p0/regint.h +0 -851
  178. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p0/regparse.h +0 -362
  179. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p0/revision.h +0 -1
  180. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p0/thread_pthread.h +0 -51
  181. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p0/thread_win32.h +0 -40
  182. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p0/timev.h +0 -21
  183. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p0/transcode_data.h +0 -117
  184. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p0/transdb.h +0 -189
  185. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p0/version.h +0 -52
  186. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p0/vm_core.h +0 -756
  187. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p0/vm_exec.h +0 -184
  188. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p0/vm_insnhelper.h +0 -220
  189. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p0/vm_opts.h +0 -51
  190. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p125/addr2line.h +0 -21
  191. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p125/atomic.h +0 -56
  192. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p125/constant.h +0 -34
  193. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p125/debug.h +0 -41
  194. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p125/dln.h +0 -50
  195. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p125/encdb.h +0 -167
  196. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p125/eval_intern.h +0 -234
  197. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p125/gc.h +0 -98
  198. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p125/id.h +0 -175
  199. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p125/internal.h +0 -231
  200. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p125/iseq.h +0 -125
  201. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p125/method.h +0 -105
  202. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p125/node.h +0 -503
  203. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p125/parse.h +0 -186
  204. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p125/regenc.h +0 -219
  205. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p125/regint.h +0 -850
  206. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p125/regparse.h +0 -362
  207. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p125/revision.h +0 -1
  208. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p125/thread_pthread.h +0 -51
  209. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p125/thread_win32.h +0 -40
  210. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p125/timev.h +0 -21
  211. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p125/transcode_data.h +0 -117
  212. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p125/transdb.h +0 -189
  213. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p125/version.h +0 -52
  214. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p125/vm_core.h +0 -756
  215. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p125/vm_exec.h +0 -184
  216. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p125/vm_insnhelper.h +0 -220
  217. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p125/vm_opts.h +0 -51
  218. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p194/addr2line.h +0 -21
  219. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p194/atomic.h +0 -56
  220. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p194/constant.h +0 -34
  221. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p194/debug.h +0 -41
  222. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p194/dln.h +0 -50
  223. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p194/encdb.h +0 -167
  224. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p194/eval_intern.h +0 -234
  225. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p194/gc.h +0 -98
  226. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p194/id.h +0 -175
  227. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p194/internal.h +0 -232
  228. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p194/iseq.h +0 -125
  229. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p194/method.h +0 -105
  230. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p194/node.h +0 -503
  231. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p194/parse.h +0 -186
  232. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p194/regenc.h +0 -219
  233. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p194/regint.h +0 -850
  234. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p194/regparse.h +0 -362
  235. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p194/revision.h +0 -1
  236. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p194/thread_pthread.h +0 -51
  237. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p194/thread_win32.h +0 -40
  238. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p194/timev.h +0 -21
  239. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p194/transcode_data.h +0 -117
  240. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p194/transdb.h +0 -189
  241. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p194/version.h +0 -52
  242. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p194/vm_core.h +0 -756
  243. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p194/vm_exec.h +0 -184
  244. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p194/vm_insnhelper.h +0 -220
  245. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p194/vm_opts.h +0 -51
  246. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p286/addr2line.h +0 -21
  247. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p286/atomic.h +0 -56
  248. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p286/constant.h +0 -34
  249. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p286/debug.h +0 -41
  250. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p286/dln.h +0 -50
  251. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p286/encdb.h +0 -167
  252. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p286/eval_intern.h +0 -234
  253. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p286/gc.h +0 -99
  254. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p286/id.h +0 -175
  255. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p286/internal.h +0 -232
  256. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p286/iseq.h +0 -125
  257. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p286/method.h +0 -105
  258. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p286/node.h +0 -503
  259. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p286/parse.h +0 -302
  260. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p286/regenc.h +0 -219
  261. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p286/regint.h +0 -850
  262. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p286/regparse.h +0 -362
  263. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p286/revision.h +0 -1
  264. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p286/thread_pthread.h +0 -51
  265. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p286/thread_win32.h +0 -40
  266. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p286/timev.h +0 -21
  267. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p286/transcode_data.h +0 -117
  268. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p286/transdb.h +0 -189
  269. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p286/version.h +0 -52
  270. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p286/vm_core.h +0 -756
  271. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p286/vm_exec.h +0 -184
  272. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p286/vm_insnhelper.h +0 -220
  273. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p286/vm_opts.h +0 -51
  274. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p327/addr2line.h +0 -21
  275. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p327/atomic.h +0 -56
  276. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p327/constant.h +0 -34
  277. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p327/debug.h +0 -41
  278. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p327/dln.h +0 -50
  279. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p327/encdb.h +0 -167
  280. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p327/eval_intern.h +0 -234
  281. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p327/gc.h +0 -99
  282. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p327/id.h +0 -175
  283. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p327/internal.h +0 -239
  284. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p327/iseq.h +0 -125
  285. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p327/method.h +0 -105
  286. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p327/node.h +0 -503
  287. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p327/parse.h +0 -302
  288. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p327/regenc.h +0 -219
  289. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p327/regint.h +0 -850
  290. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p327/regparse.h +0 -362
  291. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p327/revision.h +0 -1
  292. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p327/siphash.h +0 -48
  293. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p327/thread_pthread.h +0 -51
  294. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p327/thread_win32.h +0 -40
  295. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p327/timev.h +0 -21
  296. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p327/transcode_data.h +0 -117
  297. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p327/transdb.h +0 -189
  298. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p327/version.h +0 -52
  299. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p327/vm_core.h +0 -756
  300. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p327/vm_exec.h +0 -184
  301. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p327/vm_insnhelper.h +0 -220
  302. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p327/vm_opts.h +0 -51
  303. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p362/addr2line.h +0 -21
  304. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p362/constant.h +0 -34
  305. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p362/debug.h +0 -41
  306. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p362/dln.h +0 -50
  307. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p362/encdb.h +0 -167
  308. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p362/eval_intern.h +0 -234
  309. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p362/gc.h +0 -99
  310. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p362/id.h +0 -175
  311. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p362/internal.h +0 -239
  312. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p362/iseq.h +0 -127
  313. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p362/method.h +0 -105
  314. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p362/node.h +0 -503
  315. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p362/parse.h +0 -302
  316. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p362/regenc.h +0 -219
  317. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p362/regint.h +0 -850
  318. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p362/regparse.h +0 -362
  319. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p362/revision.h +0 -1
  320. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p362/ruby_atomic.h +0 -115
  321. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p362/siphash.h +0 -48
  322. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p362/thread_pthread.h +0 -51
  323. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p362/thread_win32.h +0 -40
  324. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p362/timev.h +0 -21
  325. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p362/transcode_data.h +0 -117
  326. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p362/transdb.h +0 -189
  327. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p362/version.h +0 -52
  328. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p362/vm_core.h +0 -756
  329. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p362/vm_exec.h +0 -184
  330. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p362/vm_insnhelper.h +0 -220
  331. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p362/vm_opts.h +0 -51
  332. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p374/addr2line.h +0 -21
  333. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p374/constant.h +0 -34
  334. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p374/debug.h +0 -41
  335. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p374/dln.h +0 -50
  336. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p374/encdb.h +0 -167
  337. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p374/eval_intern.h +0 -234
  338. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p374/gc.h +0 -99
  339. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p374/id.h +0 -175
  340. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p374/internal.h +0 -239
  341. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p374/iseq.h +0 -126
  342. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p374/method.h +0 -105
  343. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p374/node.h +0 -503
  344. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p374/parse.h +0 -302
  345. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p374/regenc.h +0 -219
  346. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p374/regint.h +0 -850
  347. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p374/regparse.h +0 -362
  348. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p374/revision.h +0 -1
  349. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p374/ruby_atomic.h +0 -115
  350. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p374/siphash.h +0 -48
  351. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p374/thread_pthread.h +0 -51
  352. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p374/thread_win32.h +0 -40
  353. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p374/timev.h +0 -21
  354. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p374/transcode_data.h +0 -117
  355. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p374/transdb.h +0 -189
  356. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p374/version.h +0 -52
  357. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p374/vm_core.h +0 -763
  358. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p374/vm_exec.h +0 -184
  359. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p374/vm_insnhelper.h +0 -220
  360. data/examples/04_zlib/vendor/bundle/gems/debugger-ruby_core_source-1.1.7/lib/debugger/ruby_core_source/ruby-1.9.3-p374/vm_opts.h +0 -51
  361. data/examples/04_zlib/vendor/bundle/gems/interception-0.3/Rakefile +0 -32
  362. data/examples/04_zlib/vendor/bundle/gems/interception-0.3/ext/interception.c +0 -73
  363. data/examples/04_zlib/vendor/bundle/gems/jist-1.3.1/Rakefile +0 -10
  364. data/examples/04_zlib/vendor/bundle/gems/json-1.7.6/Rakefile +0 -412
  365. data/examples/04_zlib/vendor/bundle/gems/json-1.7.6/ext/json/ext/fbuffer/fbuffer.h +0 -185
  366. data/examples/04_zlib/vendor/bundle/gems/json-1.7.6/ext/json/ext/generator/generator.c +0 -1427
  367. data/examples/04_zlib/vendor/bundle/gems/json-1.7.6/ext/json/ext/generator/generator.h +0 -149
  368. data/examples/04_zlib/vendor/bundle/gems/json-1.7.6/ext/json/ext/parser/parser.c +0 -2204
  369. data/examples/04_zlib/vendor/bundle/gems/json-1.7.6/ext/json/ext/parser/parser.h +0 -77
  370. data/examples/04_zlib/vendor/bundle/gems/method_source-0.8.1/Rakefile +0 -79
  371. data/examples/04_zlib/vendor/bundle/gems/pry-0.9.11.4/Rakefile +0 -136
  372. data/examples/04_zlib/vendor/bundle/gems/pry-debugger-0.2.1/Rakefile +0 -2
  373. data/examples/04_zlib/vendor/bundle/gems/pry-doc-0.4.4/Rakefile +0 -88
  374. data/examples/04_zlib/vendor/bundle/gems/pry-exception_explorer-0.2.3/Rakefile +0 -123
  375. data/examples/04_zlib/vendor/bundle/gems/pry-rescue-0.15/Rakefile +0 -22
  376. data/examples/04_zlib/vendor/bundle/gems/pry-stack_explorer-0.4.7/Rakefile +0 -109
  377. data/examples/04_zlib/vendor/bundle/gems/rake-10.0.3/Rakefile +0 -374
  378. data/examples/04_zlib/vendor/bundle/gems/rake-10.0.3/doc/example/a.c +0 -6
  379. data/examples/04_zlib/vendor/bundle/gems/rake-10.0.3/doc/example/b.c +0 -6
  380. data/examples/04_zlib/vendor/bundle/gems/rake-10.0.3/doc/example/main.c +0 -11
  381. data/examples/04_zlib/vendor/bundle/gems/slop-3.4.3/Rakefile +0 -29
  382. data/examples/04_zlib/vendor/bundle/gems/yard-0.8.3/Rakefile +0 -61
@@ -1,21 +0,0 @@
1
- #ifndef RUBY_TIMEV_H
2
- #define RUBY_TIMEV_H
3
-
4
- struct vtm {
5
- VALUE year; /* 2000 for example. Integer. */
6
- int mon; /* 1..12 */
7
- int mday; /* 1..31 */
8
- int hour; /* 0..23 */
9
- int min; /* 0..59 */
10
- int sec; /* 0..60 */
11
- VALUE subsecx; /* 0 <= subsecx < TIME_SCALE. possibly Rational. */
12
- VALUE utc_offset; /* -3600 as -01:00 for example. possibly Rational. */
13
- int wday; /* 0:Sunday, 1:Monday, ..., 6:Saturday */
14
- int yday; /* 1..366 */
15
- int isdst; /* 0:StandardTime 1:DayLightSavingTime */
16
- const char *zone; /* "JST", "EST", "EDT", etc. */
17
- };
18
-
19
- #define TIME_SCALE 1000000000
20
-
21
- #endif
@@ -1,117 +0,0 @@
1
- /**********************************************************************
2
-
3
- transcode_data.h -
4
-
5
- $Author: nobu $
6
- created at: Mon 10 Dec 2007 14:01:47 JST 2007
7
-
8
- Copyright (C) 2007 Martin Duerst
9
-
10
- **********************************************************************/
11
-
12
- #include "ruby/ruby.h"
13
-
14
- #ifndef RUBY_TRANSCODE_DATA_H
15
- #define RUBY_TRANSCODE_DATA_H 1
16
-
17
- #if defined __GNUC__ && __GNUC__ >= 4
18
- #pragma GCC visibility push(default)
19
- #endif
20
-
21
- #define WORDINDEX_SHIFT_BITS 2
22
- #define WORDINDEX2INFO(widx) ((widx) << WORDINDEX_SHIFT_BITS)
23
- #define INFO2WORDINDEX(info) ((info) >> WORDINDEX_SHIFT_BITS)
24
- #define BYTE_LOOKUP_BASE(bl) ((bl)[0])
25
- #define BYTE_LOOKUP_INFO(bl) ((bl)[1])
26
-
27
- #define PType (unsigned int)
28
-
29
- #define NOMAP (PType 0x01) /* direct map */
30
- #define ONEbt (0x02) /* one byte payload */
31
- #define TWObt (0x03) /* two bytes payload */
32
- #define THREEbt (0x05) /* three bytes payload */
33
- #define FOURbt (0x06) /* four bytes payload, UTF-8 only, macros start at getBT0 */
34
- #define INVALID (PType 0x07) /* invalid byte sequence */
35
- #define UNDEF (PType 0x09) /* legal but undefined */
36
- #define ZERObt (PType 0x0A) /* zero bytes of payload, i.e. remove */
37
- #define FUNii (PType 0x0B) /* function from info to info */
38
- #define FUNsi (PType 0x0D) /* function from start to info */
39
- #define FUNio (PType 0x0E) /* function from info to output */
40
- #define FUNso (PType 0x0F) /* function from start to output */
41
- #define STR1 (PType 0x11) /* string 4 <= len <= 259 bytes: 1byte length + content */
42
- #define GB4bt (PType 0x12) /* GB18030 four bytes payload */
43
- #define FUNsio (PType 0x13) /* function from start and info to output */
44
-
45
- #define STR1_LENGTH(byte_addr) (unsigned int)(*(byte_addr) + 4)
46
- #define STR1_BYTEINDEX(w) ((w) >> 6)
47
- #define makeSTR1(bi) (((bi) << 6) | STR1)
48
- #define makeSTR1LEN(len) ((len)-4)
49
-
50
- #define o1(b1) (PType((((unsigned char)(b1))<<8)|ONEbt))
51
- #define o2(b1,b2) (PType((((unsigned char)(b1))<<8)|(((unsigned char)(b2))<<16)|TWObt))
52
- #define o3(b1,b2,b3) (PType(((((unsigned char)(b1))<<8)|(((unsigned char)(b2))<<16)|(((unsigned int)(unsigned char)(b3))<<24)|THREEbt)&0xffffffffU))
53
- #define o4(b0,b1,b2,b3) (PType(((((unsigned char)(b1))<<8)|(((unsigned char)(b2))<<16)|(((unsigned char)(b3))<<24)|((((unsigned char)(b0))&0x07)<<5)|FOURbt)&0xffffffffU))
54
- #define g4(b0,b1,b2,b3) (PType(((((unsigned char)(b0))<<8)|(((unsigned char)(b2))<<16)|((((unsigned char)(b1))&0x0f)<<24)|((((unsigned int)(unsigned char)(b3))&0x0f)<<28)|GB4bt)&0xffffffffU))
55
- #define funsio(diff) (PType((((unsigned int)(diff))<<8)|FUNsio))
56
-
57
- #define getBT1(a) ((unsigned char)((a)>> 8))
58
- #define getBT2(a) ((unsigned char)((a)>>16))
59
- #define getBT3(a) ((unsigned char)((a)>>24))
60
- #define getBT0(a) (((unsigned char)((a)>> 5)&0x07)|0xF0) /* for UTF-8 only!!! */
61
-
62
- #define getGB4bt0(a) ((unsigned char)((a)>> 8))
63
- #define getGB4bt1(a) (((unsigned char)((a)>>24)&0x0F)|0x30)
64
- #define getGB4bt2(a) ((unsigned char)((a)>>16))
65
- #define getGB4bt3(a) (((unsigned char)((a)>>28)&0x0F)|0x30)
66
-
67
- #define o2FUNii(b1,b2) (PType((((unsigned char)(b1))<<8)|(((unsigned char)(b2))<<16)|FUNii))
68
-
69
- /* do we need these??? maybe not, can be done with simple tables */
70
- #define ONETRAIL /* legal but undefined if one more trailing UTF-8 */
71
- #define TWOTRAIL /* legal but undefined if two more trailing UTF-8 */
72
- #define THREETRAIL /* legal but undefined if three more trailing UTF-8 */
73
-
74
- typedef enum {
75
- asciicompat_converter, /* ASCII-compatible -> ASCII-compatible */
76
- asciicompat_decoder, /* ASCII-incompatible -> ASCII-compatible */
77
- asciicompat_encoder /* ASCII-compatible -> ASCII-incompatible */
78
- /* ASCII-incompatible -> ASCII-incompatible is intentionally omitted. */
79
- } rb_transcoder_asciicompat_type_t;
80
-
81
- typedef struct rb_transcoder rb_transcoder;
82
-
83
- /* static structure, one per supported encoding pair */
84
- struct rb_transcoder {
85
- const char *src_encoding;
86
- const char *dst_encoding;
87
- unsigned int conv_tree_start;
88
- const unsigned char *byte_array;
89
- unsigned int byte_array_length;
90
- const unsigned int *word_array;
91
- unsigned int word_array_length;
92
- int word_size;
93
- int input_unit_length;
94
- int max_input;
95
- int max_output;
96
- rb_transcoder_asciicompat_type_t asciicompat_type;
97
- size_t state_size;
98
- int (*state_init_func)(void*); /* ret==0:success ret!=0:failure(errno) */
99
- int (*state_fini_func)(void*); /* ret==0:success ret!=0:failure(errno) */
100
- VALUE (*func_ii)(void*, VALUE); /* info -> info */
101
- VALUE (*func_si)(void*, const unsigned char*, size_t); /* start -> info */
102
- ssize_t (*func_io)(void*, VALUE, const unsigned char*, size_t); /* info -> output */
103
- ssize_t (*func_so)(void*, const unsigned char*, size_t, unsigned char*, size_t); /* start -> output */
104
- ssize_t (*finish_func)(void*, unsigned char*, size_t); /* -> output */
105
- ssize_t (*resetsize_func)(void*); /* -> len */
106
- ssize_t (*resetstate_func)(void*, unsigned char*, size_t); /* -> output */
107
- ssize_t (*func_sio)(void*, const unsigned char*, size_t, VALUE, unsigned char*, size_t); /* start -> output */
108
- };
109
-
110
- void rb_declare_transcoder(const char *enc1, const char *enc2, const char *lib);
111
- void rb_register_transcoder(const rb_transcoder *);
112
-
113
- #if defined __GNUC__ && __GNUC__ >= 4
114
- #pragma GCC visibility pop
115
- #endif
116
-
117
- #endif /* RUBY_TRANSCODE_DATA_H */
@@ -1,189 +0,0 @@
1
- rb_declare_transcoder("Big5", "UTF-8", "big5");
2
- rb_declare_transcoder("UTF-8", "Big5", "big5");
3
- rb_declare_transcoder("CP950", "UTF-8", "big5");
4
- rb_declare_transcoder("UTF-8", "CP950", "big5");
5
- rb_declare_transcoder("Big5-HKSCS", "UTF-8", "big5");
6
- rb_declare_transcoder("UTF-8", "Big5-HKSCS", "big5");
7
- rb_declare_transcoder("CP951", "UTF-8", "big5");
8
- rb_declare_transcoder("UTF-8", "CP951", "big5");
9
- rb_declare_transcoder("Big5-UAO", "UTF-8", "big5");
10
- rb_declare_transcoder("UTF-8", "Big5-UAO", "big5");
11
- rb_declare_transcoder("GB2312", "UTF-8", "chinese");
12
- rb_declare_transcoder("GB12345", "UTF-8", "chinese");
13
- rb_declare_transcoder("UTF-8", "GB2312", "chinese");
14
- rb_declare_transcoder("UTF-8", "GB12345", "chinese");
15
- rb_declare_transcoder("UTF8-DoCoMo", "UTF8-KDDI", "emoji");
16
- rb_declare_transcoder("UTF8-DoCoMo", "UTF8-SoftBank", "emoji");
17
- rb_declare_transcoder("UTF8-DoCoMo", "UTF-8", "emoji");
18
- rb_declare_transcoder("UTF8-KDDI", "UTF8-DoCoMo", "emoji");
19
- rb_declare_transcoder("UTF8-KDDI", "UTF8-SoftBank", "emoji");
20
- rb_declare_transcoder("UTF8-KDDI", "UTF-8", "emoji");
21
- rb_declare_transcoder("UTF8-SoftBank", "UTF8-DoCoMo", "emoji");
22
- rb_declare_transcoder("UTF8-SoftBank", "UTF8-KDDI", "emoji");
23
- rb_declare_transcoder("UTF8-SoftBank", "UTF-8", "emoji");
24
- rb_declare_transcoder("UTF-8", "UTF8-DoCoMo", "emoji");
25
- rb_declare_transcoder("UTF-8", "UTF8-KDDI", "emoji");
26
- rb_declare_transcoder("UTF-8", "UTF8-SoftBank", "emoji");
27
- rb_declare_transcoder("stateless-ISO-2022-JP-KDDI", "UTF8-KDDI", "emoji_iso2022_kddi");
28
- rb_declare_transcoder("UTF8-KDDI", "stateless-ISO-2022-JP-KDDI", "emoji_iso2022_kddi");
29
- rb_declare_transcoder("ISO-2022-JP-KDDI", "stateless-ISO-2022-JP-KDDI", "emoji_iso2022_kddi");
30
- rb_declare_transcoder("stateless-ISO-2022-JP-KDDI", "ISO-2022-JP-KDDI", "emoji_iso2022_kddi");
31
- rb_declare_transcoder("SJIS-DOCOMO", "UTF8-DOCOMO", "emoji_sjis_docomo");
32
- rb_declare_transcoder("UTF8-DOCOMO", "SJIS-DOCOMO", "emoji_sjis_docomo");
33
- rb_declare_transcoder("SJIS-KDDI", "UTF8-KDDI", "emoji_sjis_kddi");
34
- rb_declare_transcoder("UTF8-KDDI", "SJIS-KDDI", "emoji_sjis_kddi");
35
- rb_declare_transcoder("SJIS-SoftBank", "UTF8-SoftBank", "emoji_sjis_softbank");
36
- rb_declare_transcoder("UTF8-SoftBank", "SJIS-SoftBank", "emoji_sjis_softbank");
37
- rb_declare_transcoder("", "amp_escape", "escape");
38
- rb_declare_transcoder("", "xml_text_escape", "escape");
39
- rb_declare_transcoder("", "xml_attr_content_escape", "escape");
40
- rb_declare_transcoder("", "xml_attr_quote", "escape");
41
- rb_declare_transcoder("GB18030", "UTF-8", "gb18030");
42
- rb_declare_transcoder("UTF-8", "GB18030", "gb18030");
43
- rb_declare_transcoder("GBK", "UTF-8", "gbk");
44
- rb_declare_transcoder("UTF-8", "GBK", "gbk");
45
- rb_declare_transcoder("ISO-2022-JP", "stateless-ISO-2022-JP", "iso2022");
46
- rb_declare_transcoder("stateless-ISO-2022-JP", "ISO-2022-JP", "iso2022");
47
- rb_declare_transcoder("stateless-ISO-2022-JP", "EUC-JP", "iso2022");
48
- rb_declare_transcoder("EUC-JP", "stateless-ISO-2022-JP", "iso2022");
49
- rb_declare_transcoder("CP50220", "cp51932", "iso2022");
50
- rb_declare_transcoder("CP50221", "cp51932", "iso2022");
51
- rb_declare_transcoder("CP51932", "CP50221", "iso2022");
52
- rb_declare_transcoder("CP51932", "CP50220", "iso2022");
53
- rb_declare_transcoder("EUC-JP", "Shift_JIS", "japanese");
54
- rb_declare_transcoder("Shift_JIS", "EUC-JP", "japanese");
55
- rb_declare_transcoder("EUC-JP", "UTF-8", "japanese_euc");
56
- rb_declare_transcoder("eucJP-ms", "UTF-8", "japanese_euc");
57
- rb_declare_transcoder("CP51932", "UTF-8", "japanese_euc");
58
- rb_declare_transcoder("UTF-8", "EUC-JP", "japanese_euc");
59
- rb_declare_transcoder("UTF-8", "eucJP-ms", "japanese_euc");
60
- rb_declare_transcoder("UTF-8", "CP51932", "japanese_euc");
61
- rb_declare_transcoder("Shift_JIS", "UTF-8", "japanese_sjis");
62
- rb_declare_transcoder("Windows-31J", "UTF-8", "japanese_sjis");
63
- rb_declare_transcoder("UTF-8", "Shift_JIS", "japanese_sjis");
64
- rb_declare_transcoder("UTF-8", "Windows-31J", "japanese_sjis");
65
- rb_declare_transcoder("UTF-8", "EUC-KR", "korean");
66
- rb_declare_transcoder("EUC-KR", "UTF-8", "korean");
67
- rb_declare_transcoder("UTF-8", "CP949", "korean");
68
- rb_declare_transcoder("CP949", "UTF-8", "korean");
69
- rb_declare_transcoder("", "universal_newline", "newline");
70
- rb_declare_transcoder("", "crlf_newline", "newline");
71
- rb_declare_transcoder("", "cr_newline", "newline");
72
- rb_declare_transcoder("US-ASCII", "UTF-8", "single_byte");
73
- rb_declare_transcoder("UTF-8", "US-ASCII", "single_byte");
74
- rb_declare_transcoder("ASCII-8BIT", "UTF-8", "single_byte");
75
- rb_declare_transcoder("UTF-8", "ASCII-8BIT", "single_byte");
76
- rb_declare_transcoder("ISO-8859-1", "UTF-8", "single_byte");
77
- rb_declare_transcoder("UTF-8", "ISO-8859-1", "single_byte");
78
- rb_declare_transcoder("ISO-8859-2", "UTF-8", "single_byte");
79
- rb_declare_transcoder("UTF-8", "ISO-8859-2", "single_byte");
80
- rb_declare_transcoder("ISO-8859-3", "UTF-8", "single_byte");
81
- rb_declare_transcoder("UTF-8", "ISO-8859-3", "single_byte");
82
- rb_declare_transcoder("ISO-8859-4", "UTF-8", "single_byte");
83
- rb_declare_transcoder("UTF-8", "ISO-8859-4", "single_byte");
84
- rb_declare_transcoder("ISO-8859-5", "UTF-8", "single_byte");
85
- rb_declare_transcoder("UTF-8", "ISO-8859-5", "single_byte");
86
- rb_declare_transcoder("ISO-8859-6", "UTF-8", "single_byte");
87
- rb_declare_transcoder("UTF-8", "ISO-8859-6", "single_byte");
88
- rb_declare_transcoder("ISO-8859-7", "UTF-8", "single_byte");
89
- rb_declare_transcoder("UTF-8", "ISO-8859-7", "single_byte");
90
- rb_declare_transcoder("ISO-8859-8", "UTF-8", "single_byte");
91
- rb_declare_transcoder("UTF-8", "ISO-8859-8", "single_byte");
92
- rb_declare_transcoder("ISO-8859-9", "UTF-8", "single_byte");
93
- rb_declare_transcoder("UTF-8", "ISO-8859-9", "single_byte");
94
- rb_declare_transcoder("ISO-8859-10", "UTF-8", "single_byte");
95
- rb_declare_transcoder("UTF-8", "ISO-8859-10", "single_byte");
96
- rb_declare_transcoder("ISO-8859-11", "UTF-8", "single_byte");
97
- rb_declare_transcoder("UTF-8", "ISO-8859-11", "single_byte");
98
- rb_declare_transcoder("ISO-8859-13", "UTF-8", "single_byte");
99
- rb_declare_transcoder("UTF-8", "ISO-8859-13", "single_byte");
100
- rb_declare_transcoder("ISO-8859-14", "UTF-8", "single_byte");
101
- rb_declare_transcoder("UTF-8", "ISO-8859-14", "single_byte");
102
- rb_declare_transcoder("ISO-8859-15", "UTF-8", "single_byte");
103
- rb_declare_transcoder("UTF-8", "ISO-8859-15", "single_byte");
104
- rb_declare_transcoder("WINDOWS-874", "UTF-8", "single_byte");
105
- rb_declare_transcoder("UTF-8", "WINDOWS-874", "single_byte");
106
- rb_declare_transcoder("WINDOWS-1250", "UTF-8", "single_byte");
107
- rb_declare_transcoder("UTF-8", "WINDOWS-1250", "single_byte");
108
- rb_declare_transcoder("WINDOWS-1251", "UTF-8", "single_byte");
109
- rb_declare_transcoder("UTF-8", "WINDOWS-1251", "single_byte");
110
- rb_declare_transcoder("WINDOWS-1252", "UTF-8", "single_byte");
111
- rb_declare_transcoder("UTF-8", "WINDOWS-1252", "single_byte");
112
- rb_declare_transcoder("WINDOWS-1253", "UTF-8", "single_byte");
113
- rb_declare_transcoder("UTF-8", "WINDOWS-1253", "single_byte");
114
- rb_declare_transcoder("WINDOWS-1254", "UTF-8", "single_byte");
115
- rb_declare_transcoder("UTF-8", "WINDOWS-1254", "single_byte");
116
- rb_declare_transcoder("WINDOWS-1255", "UTF-8", "single_byte");
117
- rb_declare_transcoder("UTF-8", "WINDOWS-1255", "single_byte");
118
- rb_declare_transcoder("WINDOWS-1256", "UTF-8", "single_byte");
119
- rb_declare_transcoder("UTF-8", "WINDOWS-1256", "single_byte");
120
- rb_declare_transcoder("WINDOWS-1257", "UTF-8", "single_byte");
121
- rb_declare_transcoder("UTF-8", "WINDOWS-1257", "single_byte");
122
- rb_declare_transcoder("IBM437", "UTF-8", "single_byte");
123
- rb_declare_transcoder("UTF-8", "IBM437", "single_byte");
124
- rb_declare_transcoder("IBM775", "UTF-8", "single_byte");
125
- rb_declare_transcoder("UTF-8", "IBM775", "single_byte");
126
- rb_declare_transcoder("IBM737", "UTF-8", "single_byte");
127
- rb_declare_transcoder("UTF-8", "IBM737", "single_byte");
128
- rb_declare_transcoder("IBM852", "UTF-8", "single_byte");
129
- rb_declare_transcoder("UTF-8", "IBM852", "single_byte");
130
- rb_declare_transcoder("IBM855", "UTF-8", "single_byte");
131
- rb_declare_transcoder("UTF-8", "IBM855", "single_byte");
132
- rb_declare_transcoder("IBM857", "UTF-8", "single_byte");
133
- rb_declare_transcoder("UTF-8", "IBM857", "single_byte");
134
- rb_declare_transcoder("IBM860", "UTF-8", "single_byte");
135
- rb_declare_transcoder("UTF-8", "IBM860", "single_byte");
136
- rb_declare_transcoder("IBM861", "UTF-8", "single_byte");
137
- rb_declare_transcoder("UTF-8", "IBM861", "single_byte");
138
- rb_declare_transcoder("IBM862", "UTF-8", "single_byte");
139
- rb_declare_transcoder("UTF-8", "IBM862", "single_byte");
140
- rb_declare_transcoder("IBM863", "UTF-8", "single_byte");
141
- rb_declare_transcoder("UTF-8", "IBM863", "single_byte");
142
- rb_declare_transcoder("IBM865", "UTF-8", "single_byte");
143
- rb_declare_transcoder("UTF-8", "IBM865", "single_byte");
144
- rb_declare_transcoder("IBM866", "UTF-8", "single_byte");
145
- rb_declare_transcoder("UTF-8", "IBM866", "single_byte");
146
- rb_declare_transcoder("IBM869", "UTF-8", "single_byte");
147
- rb_declare_transcoder("UTF-8", "IBM869", "single_byte");
148
- rb_declare_transcoder("MACCROATIAN", "UTF-8", "single_byte");
149
- rb_declare_transcoder("UTF-8", "MACCROATIAN", "single_byte");
150
- rb_declare_transcoder("MACCYRILLIC", "UTF-8", "single_byte");
151
- rb_declare_transcoder("UTF-8", "MACCYRILLIC", "single_byte");
152
- rb_declare_transcoder("MACGREEK", "UTF-8", "single_byte");
153
- rb_declare_transcoder("UTF-8", "MACGREEK", "single_byte");
154
- rb_declare_transcoder("MACICELAND", "UTF-8", "single_byte");
155
- rb_declare_transcoder("UTF-8", "MACICELAND", "single_byte");
156
- rb_declare_transcoder("MACROMAN", "UTF-8", "single_byte");
157
- rb_declare_transcoder("UTF-8", "MACROMAN", "single_byte");
158
- rb_declare_transcoder("MACROMANIA", "UTF-8", "single_byte");
159
- rb_declare_transcoder("UTF-8", "MACROMANIA", "single_byte");
160
- rb_declare_transcoder("MACTURKISH", "UTF-8", "single_byte");
161
- rb_declare_transcoder("UTF-8", "MACTURKISH", "single_byte");
162
- rb_declare_transcoder("MACUKRAINE", "UTF-8", "single_byte");
163
- rb_declare_transcoder("UTF-8", "MACUKRAINE", "single_byte");
164
- rb_declare_transcoder("KOI8-U", "UTF-8", "single_byte");
165
- rb_declare_transcoder("UTF-8", "KOI8-U", "single_byte");
166
- rb_declare_transcoder("KOI8-R", "UTF-8", "single_byte");
167
- rb_declare_transcoder("UTF-8", "KOI8-R", "single_byte");
168
- rb_declare_transcoder("TIS-620", "UTF-8", "single_byte");
169
- rb_declare_transcoder("UTF-8", "TIS-620", "single_byte");
170
- rb_declare_transcoder("CP850", "UTF-8", "single_byte");
171
- rb_declare_transcoder("UTF-8", "CP850", "single_byte");
172
- rb_declare_transcoder("CP852", "UTF-8", "single_byte");
173
- rb_declare_transcoder("UTF-8", "CP852", "single_byte");
174
- rb_declare_transcoder("CP855", "UTF-8", "single_byte");
175
- rb_declare_transcoder("UTF-8", "CP855", "single_byte");
176
- rb_declare_transcoder("UTF-8", "UTF8-MAC", "utf8_mac");
177
- rb_declare_transcoder("UTF8-MAC", "UTF-8", "utf8_mac");
178
- rb_declare_transcoder("UTF-16BE", "UTF-8", "utf_16_32");
179
- rb_declare_transcoder("UTF-8", "UTF-16BE", "utf_16_32");
180
- rb_declare_transcoder("UTF-16LE", "UTF-8", "utf_16_32");
181
- rb_declare_transcoder("UTF-8", "UTF-16LE", "utf_16_32");
182
- rb_declare_transcoder("UTF-32BE", "UTF-8", "utf_16_32");
183
- rb_declare_transcoder("UTF-8", "UTF-32BE", "utf_16_32");
184
- rb_declare_transcoder("UTF-32LE", "UTF-8", "utf_16_32");
185
- rb_declare_transcoder("UTF-8", "UTF-32LE", "utf_16_32");
186
- rb_declare_transcoder("UTF-16", "UTF-8", "utf_16_32");
187
- rb_declare_transcoder("UTF-32", "UTF-8", "utf_16_32");
188
- rb_declare_transcoder("UTF-8", "UTF-16", "utf_16_32");
189
- rb_declare_transcoder("UTF-8", "UTF-32", "utf_16_32");
@@ -1,52 +0,0 @@
1
- #define RUBY_VERSION "1.9.3"
2
- #define RUBY_PATCHLEVEL 194
3
-
4
- #define RUBY_RELEASE_DATE "2012-04-20"
5
- #define RUBY_RELEASE_YEAR 2012
6
- #define RUBY_RELEASE_MONTH 4
7
- #define RUBY_RELEASE_DAY 20
8
-
9
- #include "ruby/version.h"
10
-
11
- #if !defined RUBY_LIB_VERSION && defined RUBY_LIB_VERSION_STYLE
12
- # if RUBY_LIB_VERSION_STYLE == 3
13
- # define RUBY_LIB_VERSION STRINGIZE(RUBY_API_VERSION_MAJOR)"."STRINGIZE(RUBY_API_VERSION_MINOR)"."STRINGIZE(RUBY_API_VERSION_TEENY)
14
- # elif RUBY_LIB_VERSION_STYLE == 2
15
- # define RUBY_LIB_VERSION STRINGIZE(RUBY_API_VERSION_MAJOR)"."STRINGIZE(RUBY_API_VERSION_MINOR)
16
- # endif
17
- #endif
18
-
19
- #if RUBY_PATCHLEVEL == -1
20
- #define RUBY_PATCHLEVEL_STR "dev"
21
- #else
22
- #define RUBY_PATCHLEVEL_STR "p"STRINGIZE(RUBY_PATCHLEVEL)
23
- #endif
24
-
25
- #ifndef RUBY_REVISION
26
- # include "revision.h"
27
- #endif
28
- # ifndef RUBY_REVISION
29
- # define RUBY_REVISION 0
30
- #endif
31
-
32
- #if RUBY_REVISION
33
- # ifdef RUBY_BRANCH_NAME
34
- # define RUBY_REVISION_STR " "RUBY_BRANCH_NAME" "STRINGIZE(RUBY_REVISION)
35
- # else
36
- # define RUBY_REVISION_STR " revision "STRINGIZE(RUBY_REVISION)
37
- # endif
38
- #else
39
- # define RUBY_REVISION_STR ""
40
- #endif
41
-
42
- # define RUBY_DESCRIPTION \
43
- "ruby "RUBY_VERSION \
44
- RUBY_PATCHLEVEL_STR \
45
- " ("RUBY_RELEASE_DATE \
46
- RUBY_REVISION_STR") " \
47
- "["RUBY_PLATFORM"]"
48
- # define RUBY_COPYRIGHT \
49
- "ruby - Copyright (C) " \
50
- STRINGIZE(RUBY_BIRTH_YEAR)"-" \
51
- STRINGIZE(RUBY_RELEASE_YEAR)" " \
52
- RUBY_AUTHOR
@@ -1,756 +0,0 @@
1
- /**********************************************************************
2
-
3
- vm_core.h -
4
-
5
- $Author: marcandre $
6
- created at: 04/01/01 19:41:38 JST
7
-
8
- Copyright (C) 2004-2007 Koichi Sasada
9
-
10
- **********************************************************************/
11
-
12
- #ifndef RUBY_VM_CORE_H
13
- #define RUBY_VM_CORE_H
14
-
15
- #define RUBY_VM_THREAD_MODEL 2
16
-
17
- #include "ruby/ruby.h"
18
- #include "ruby/st.h"
19
-
20
- #include "node.h"
21
- #include "debug.h"
22
- #include "vm_opts.h"
23
- #include "id.h"
24
- #include "method.h"
25
- #include "atomic.h"
26
-
27
- #if defined(_WIN32)
28
- #include "thread_win32.h"
29
- #elif defined(HAVE_PTHREAD_H)
30
- #include "thread_pthread.h"
31
- #else
32
- #error "unsupported thread type"
33
- #endif
34
-
35
- #ifndef ENABLE_VM_OBJSPACE
36
- #ifdef _WIN32
37
- /*
38
- * TODO: object space independent st_table.
39
- * socklist needs st_table in rb_w32_sysinit(), before object space
40
- * initialization.
41
- * It is too early now to change st_hash_type, since it breaks binary
42
- * compatibility.
43
- */
44
- #define ENABLE_VM_OBJSPACE 0
45
- #else
46
- #define ENABLE_VM_OBJSPACE 1
47
- #endif
48
- #endif
49
-
50
- #include <setjmp.h>
51
- #include <signal.h>
52
-
53
- #ifndef NSIG
54
- # define NSIG (_SIGMAX + 1) /* For QNX */
55
- #endif
56
-
57
- #define RUBY_NSIG NSIG
58
-
59
- #ifdef HAVE_STDARG_PROTOTYPES
60
- #include <stdarg.h>
61
- #define va_init_list(a,b) va_start((a),(b))
62
- #else
63
- #include <varargs.h>
64
- #define va_init_list(a,b) va_start((a))
65
- #endif
66
-
67
- #if defined(SIGSEGV) && defined(HAVE_SIGALTSTACK) && defined(SA_SIGINFO) && !defined(__NetBSD__)
68
- #define USE_SIGALTSTACK
69
- #endif
70
-
71
- /*****************/
72
- /* configuration */
73
- /*****************/
74
-
75
- /* gcc ver. check */
76
- #if defined(__GNUC__) && __GNUC__ >= 2
77
-
78
- #if OPT_TOKEN_THREADED_CODE
79
- #if OPT_DIRECT_THREADED_CODE
80
- #undef OPT_DIRECT_THREADED_CODE
81
- #endif
82
- #endif
83
-
84
- #else /* defined(__GNUC__) && __GNUC__ >= 2 */
85
-
86
- /* disable threaded code options */
87
- #if OPT_DIRECT_THREADED_CODE
88
- #undef OPT_DIRECT_THREADED_CODE
89
- #endif
90
- #if OPT_TOKEN_THREADED_CODE
91
- #undef OPT_TOKEN_THREADED_CODE
92
- #endif
93
- #endif
94
-
95
- /* call threaded code */
96
- #if OPT_CALL_THREADED_CODE
97
- #if OPT_DIRECT_THREADED_CODE
98
- #undef OPT_DIRECT_THREADED_CODE
99
- #endif /* OPT_DIRECT_THREADED_CODE */
100
- #if OPT_STACK_CACHING
101
- #undef OPT_STACK_CACHING
102
- #endif /* OPT_STACK_CACHING */
103
- #endif /* OPT_CALL_THREADED_CODE */
104
-
105
- /* likely */
106
- #if __GNUC__ >= 3
107
- #define LIKELY(x) (__builtin_expect((x), 1))
108
- #define UNLIKELY(x) (__builtin_expect((x), 0))
109
- #else /* __GNUC__ >= 3 */
110
- #define LIKELY(x) (x)
111
- #define UNLIKELY(x) (x)
112
- #endif /* __GNUC__ >= 3 */
113
-
114
- #if __GNUC__ >= 3
115
- #define UNINITIALIZED_VAR(x) x = x
116
- #else
117
- #define UNINITIALIZED_VAR(x) x
118
- #endif
119
-
120
- typedef unsigned long rb_num_t;
121
-
122
- /* iseq data type */
123
-
124
- struct iseq_compile_data_ensure_node_stack;
125
-
126
- typedef struct rb_compile_option_struct rb_compile_option_t;
127
-
128
- struct iseq_inline_cache_entry {
129
- VALUE ic_vmstat;
130
- VALUE ic_class;
131
- union {
132
- VALUE value;
133
- rb_method_entry_t *method;
134
- long index;
135
- } ic_value;
136
- };
137
-
138
- #if 1
139
- #define GetCoreDataFromValue(obj, type, ptr) do { \
140
- (ptr) = (type*)DATA_PTR(obj); \
141
- } while (0)
142
- #else
143
- #define GetCoreDataFromValue(obj, type, ptr) Data_Get_Struct((obj), type, (ptr))
144
- #endif
145
-
146
- #define GetISeqPtr(obj, ptr) \
147
- GetCoreDataFromValue((obj), rb_iseq_t, (ptr))
148
-
149
- struct rb_iseq_struct;
150
-
151
- struct rb_iseq_struct {
152
- /***************/
153
- /* static data */
154
- /***************/
155
-
156
- enum iseq_type {
157
- ISEQ_TYPE_TOP,
158
- ISEQ_TYPE_METHOD,
159
- ISEQ_TYPE_BLOCK,
160
- ISEQ_TYPE_CLASS,
161
- ISEQ_TYPE_RESCUE,
162
- ISEQ_TYPE_ENSURE,
163
- ISEQ_TYPE_EVAL,
164
- ISEQ_TYPE_MAIN,
165
- ISEQ_TYPE_DEFINED_GUARD
166
- } type; /* instruction sequence type */
167
-
168
- VALUE name; /* String: iseq name */
169
- VALUE filename; /* file information where this sequence from */
170
- VALUE filepath; /* real file path or nil */
171
- VALUE *iseq; /* iseq (insn number and operands) */
172
- VALUE *iseq_encoded; /* encoded iseq */
173
- unsigned long iseq_size;
174
- VALUE mark_ary; /* Array: includes operands which should be GC marked */
175
- VALUE coverage; /* coverage array */
176
- unsigned short line_no;
177
-
178
- /* insn info, must be freed */
179
- struct iseq_insn_info_entry *insn_info_table;
180
- size_t insn_info_size;
181
-
182
- ID *local_table; /* must free */
183
- int local_table_size;
184
-
185
- /* method, class frame: sizeof(vars) + 1, block frame: sizeof(vars) */
186
- int local_size;
187
-
188
- struct iseq_inline_cache_entry *ic_entries;
189
- int ic_size;
190
-
191
- /**
192
- * argument information
193
- *
194
- * def m(a1, a2, ..., aM, # mandatory
195
- * b1=(...), b2=(...), ..., bN=(...), # optional
196
- * *c, # rest
197
- * d1, d2, ..., dO, # post
198
- * &e) # block
199
- * =>
200
- *
201
- * argc = M
202
- * arg_rest = M+N+1 // or -1 if no rest arg
203
- * arg_opts = N+1 // or 0 if no optional arg
204
- * arg_opt_table = [ (arg_opts entries) ]
205
- * arg_post_len = O // 0 if no post arguments
206
- * arg_post_start = M+N+2
207
- * arg_block = M+N + 1 + O + 1 // -1 if no block arg
208
- * arg_simple = 0 if not simple arguments.
209
- * = 1 if no opt, rest, post, block.
210
- * = 2 if ambiguous block parameter ({|a|}).
211
- * arg_size = argument size.
212
- */
213
-
214
- int argc;
215
- int arg_simple;
216
- int arg_rest;
217
- int arg_block;
218
- int arg_opts;
219
- int arg_post_len;
220
- int arg_post_start;
221
- int arg_size;
222
- VALUE *arg_opt_table;
223
-
224
- size_t stack_max; /* for stack overflow check */
225
-
226
- /* catch table */
227
- struct iseq_catch_table_entry *catch_table;
228
- int catch_table_size;
229
-
230
- /* for child iseq */
231
- struct rb_iseq_struct *parent_iseq;
232
- struct rb_iseq_struct *local_iseq;
233
-
234
- /****************/
235
- /* dynamic data */
236
- /****************/
237
-
238
- VALUE self;
239
- VALUE orig; /* non-NULL if its data have origin */
240
-
241
- /* block inlining */
242
- /*
243
- * NODE *node;
244
- * void *special_block_builder;
245
- * void *cached_special_block_builder;
246
- * VALUE cached_special_block;
247
- */
248
-
249
- /* klass/module nest information stack (cref) */
250
- NODE *cref_stack;
251
- VALUE klass;
252
-
253
- /* misc */
254
- ID defined_method_id; /* for define_method */
255
-
256
- /* used at compile time */
257
- struct iseq_compile_data *compile_data;
258
- };
259
-
260
- enum ruby_special_exceptions {
261
- ruby_error_reenter,
262
- ruby_error_nomemory,
263
- ruby_error_sysstack,
264
- ruby_error_closed_stream,
265
- ruby_special_error_count
266
- };
267
-
268
- #define GetVMPtr(obj, ptr) \
269
- GetCoreDataFromValue((obj), rb_vm_t, (ptr))
270
-
271
- #if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE
272
- struct rb_objspace;
273
- void rb_objspace_free(struct rb_objspace *);
274
- #endif
275
-
276
- typedef struct rb_vm_struct {
277
- VALUE self;
278
-
279
- rb_global_vm_lock_t gvl;
280
-
281
- struct rb_thread_struct *main_thread;
282
- struct rb_thread_struct *running_thread;
283
-
284
- st_table *living_threads;
285
- VALUE thgroup_default;
286
-
287
- int running;
288
- int inhibit_thread_creation;
289
- int thread_abort_on_exception;
290
- unsigned long trace_flag;
291
- volatile int sleeper;
292
-
293
- /* object management */
294
- VALUE mark_object_ary;
295
-
296
- VALUE special_exceptions[ruby_special_error_count];
297
-
298
- /* load */
299
- VALUE top_self;
300
- VALUE load_path;
301
- VALUE loaded_features;
302
- struct st_table *loading_table;
303
-
304
- /* signal */
305
- struct {
306
- VALUE cmd;
307
- int safe;
308
- } trap_list[RUBY_NSIG];
309
-
310
- /* hook */
311
- rb_event_hook_t *event_hooks;
312
-
313
- int src_encoding_index;
314
-
315
- VALUE verbose, debug, progname;
316
- VALUE coverages;
317
-
318
- struct unlinked_method_entry_list_entry *unlinked_method_entry_list;
319
-
320
- #if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE
321
- struct rb_objspace *objspace;
322
- #endif
323
-
324
- /*
325
- * @shyouhei notes that this is not for storing normal Ruby
326
- * objects so do *NOT* mark this when you GC.
327
- */
328
- struct RArray at_exit;
329
- } rb_vm_t;
330
-
331
- typedef struct {
332
- VALUE *pc; /* cfp[0] */
333
- VALUE *sp; /* cfp[1] */
334
- VALUE *bp; /* cfp[2] */
335
- rb_iseq_t *iseq; /* cfp[3] */
336
- VALUE flag; /* cfp[4] */
337
- VALUE self; /* cfp[5] / block[0] */
338
- VALUE *lfp; /* cfp[6] / block[1] */
339
- VALUE *dfp; /* cfp[7] / block[2] */
340
- rb_iseq_t *block_iseq; /* cfp[8] / block[3] */
341
- VALUE proc; /* cfp[9] / block[4] */
342
- const rb_method_entry_t *me;/* cfp[10] */
343
- } rb_control_frame_t;
344
-
345
- typedef struct rb_block_struct {
346
- VALUE self; /* share with method frame if it's only block */
347
- VALUE *lfp; /* share with method frame if it's only block */
348
- VALUE *dfp; /* share with method frame if it's only block */
349
- rb_iseq_t *iseq;
350
- VALUE proc;
351
- } rb_block_t;
352
-
353
- extern const rb_data_type_t ruby_threadptr_data_type;
354
-
355
- #define GetThreadPtr(obj, ptr) \
356
- TypedData_Get_Struct((obj), rb_thread_t, &ruby_threadptr_data_type, (ptr))
357
-
358
- enum rb_thread_status {
359
- THREAD_TO_KILL,
360
- THREAD_RUNNABLE,
361
- THREAD_STOPPED,
362
- THREAD_STOPPED_FOREVER,
363
- THREAD_KILLED
364
- };
365
-
366
- typedef RUBY_JMP_BUF rb_jmpbuf_t;
367
-
368
- struct rb_vm_tag {
369
- rb_jmpbuf_t buf;
370
- VALUE tag;
371
- VALUE retval;
372
- struct rb_vm_tag *prev;
373
- };
374
-
375
- struct rb_vm_protect_tag {
376
- struct rb_vm_protect_tag *prev;
377
- };
378
-
379
- struct rb_unblock_callback {
380
- rb_unblock_function_t *func;
381
- void *arg;
382
- };
383
-
384
- struct rb_mutex_struct;
385
-
386
- #ifdef SIGSTKSZ
387
- #define ALT_STACK_SIZE (SIGSTKSZ*2)
388
- #else
389
- #define ALT_STACK_SIZE (4*1024)
390
- #endif
391
-
392
- typedef struct rb_thread_struct {
393
- VALUE self;
394
- rb_vm_t *vm;
395
-
396
- /* execution information */
397
- VALUE *stack; /* must free, must mark */
398
- unsigned long stack_size;
399
- rb_control_frame_t *cfp;
400
- int safe_level;
401
- int raised_flag;
402
- VALUE last_status; /* $? */
403
-
404
- /* passing state */
405
- int state;
406
-
407
- int waiting_fd;
408
-
409
- /* for rb_iterate */
410
- const rb_block_t *passed_block;
411
-
412
- /* for bmethod */
413
- const rb_method_entry_t *passed_me;
414
-
415
- /* for load(true) */
416
- VALUE top_self;
417
- VALUE top_wrapper;
418
-
419
- /* eval env */
420
- rb_block_t *base_block;
421
-
422
- VALUE *local_lfp;
423
- VALUE local_svar;
424
-
425
- /* thread control */
426
- rb_thread_id_t thread_id;
427
- enum rb_thread_status status;
428
- int priority;
429
-
430
- native_thread_data_t native_thread_data;
431
- void *blocking_region_buffer;
432
-
433
- VALUE thgroup;
434
- VALUE value;
435
-
436
- VALUE errinfo;
437
- VALUE thrown_errinfo;
438
-
439
- rb_atomic_t interrupt_flag;
440
- rb_thread_lock_t interrupt_lock;
441
- struct rb_unblock_callback unblock;
442
- VALUE locking_mutex;
443
- struct rb_mutex_struct *keeping_mutexes;
444
-
445
- struct rb_vm_tag *tag;
446
- struct rb_vm_protect_tag *protect_tag;
447
-
448
- int parse_in_eval;
449
- int mild_compile_error;
450
-
451
- /* storage */
452
- st_table *local_storage;
453
-
454
- struct rb_thread_struct *join_list_next;
455
- struct rb_thread_struct *join_list_head;
456
-
457
- VALUE first_proc;
458
- VALUE first_args;
459
- VALUE (*first_func)(ANYARGS);
460
-
461
- /* for GC */
462
- VALUE *machine_stack_start;
463
- VALUE *machine_stack_end;
464
- size_t machine_stack_maxsize;
465
- #ifdef __ia64
466
- VALUE *machine_register_stack_start;
467
- VALUE *machine_register_stack_end;
468
- size_t machine_register_stack_maxsize;
469
- #endif
470
- jmp_buf machine_regs;
471
- int mark_stack_len;
472
-
473
- /* statistics data for profiler */
474
- VALUE stat_insn_usage;
475
-
476
- /* tracer */
477
- rb_event_hook_t *event_hooks;
478
- rb_event_flag_t event_flags;
479
- int tracing;
480
-
481
- /* fiber */
482
- VALUE fiber;
483
- VALUE root_fiber;
484
- rb_jmpbuf_t root_jmpbuf;
485
-
486
- /* misc */
487
- int method_missing_reason;
488
- int abort_on_exception;
489
- #ifdef USE_SIGALTSTACK
490
- void *altstack;
491
- #endif
492
- unsigned long running_time_us;
493
- } rb_thread_t;
494
-
495
- /* iseq.c */
496
- #if defined __GNUC__ && __GNUC__ >= 4
497
- #pragma GCC visibility push(default)
498
- #endif
499
- VALUE rb_iseq_new(NODE*, VALUE, VALUE, VALUE, VALUE, enum iseq_type);
500
- VALUE rb_iseq_new_top(NODE *node, VALUE name, VALUE filename, VALUE filepath, VALUE parent);
501
- VALUE rb_iseq_new_main(NODE *node, VALUE filename, VALUE filepath);
502
- VALUE rb_iseq_new_with_bopt(NODE*, VALUE, VALUE, VALUE, VALUE, VALUE, enum iseq_type, VALUE);
503
- VALUE rb_iseq_new_with_opt(NODE*, VALUE, VALUE, VALUE, VALUE, VALUE, enum iseq_type, const rb_compile_option_t*);
504
- VALUE rb_iseq_compile(VALUE src, VALUE file, VALUE line);
505
- VALUE rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE filepath, VALUE line, VALUE opt);
506
- VALUE rb_iseq_disasm(VALUE self);
507
- int rb_iseq_disasm_insn(VALUE str, VALUE *iseqval, size_t pos, rb_iseq_t *iseq, VALUE child);
508
- const char *ruby_node_name(int node);
509
- int rb_iseq_first_lineno(rb_iseq_t *iseq);
510
-
511
- RUBY_EXTERN VALUE rb_cISeq;
512
- RUBY_EXTERN VALUE rb_cRubyVM;
513
- RUBY_EXTERN VALUE rb_cEnv;
514
- RUBY_EXTERN VALUE rb_mRubyVMFrozenCore;
515
- #if defined __GNUC__ && __GNUC__ >= 4
516
- #pragma GCC visibility pop
517
- #endif
518
-
519
- /* each thread has this size stack : 128KB */
520
- #define RUBY_VM_THREAD_STACK_SIZE (128 * 1024)
521
-
522
- #define GetProcPtr(obj, ptr) \
523
- GetCoreDataFromValue((obj), rb_proc_t, (ptr))
524
-
525
- typedef struct {
526
- rb_block_t block;
527
-
528
- VALUE envval; /* for GC mark */
529
- VALUE blockprocval;
530
- int safe_level;
531
- int is_from_method;
532
- int is_lambda;
533
- } rb_proc_t;
534
-
535
- #define GetEnvPtr(obj, ptr) \
536
- GetCoreDataFromValue((obj), rb_env_t, (ptr))
537
-
538
- typedef struct {
539
- VALUE *env;
540
- int env_size;
541
- int local_size;
542
- VALUE prev_envval; /* for GC mark */
543
- rb_block_t block;
544
- } rb_env_t;
545
-
546
- #define GetBindingPtr(obj, ptr) \
547
- GetCoreDataFromValue((obj), rb_binding_t, (ptr))
548
-
549
- typedef struct {
550
- VALUE env;
551
- VALUE filename;
552
- unsigned short line_no;
553
- } rb_binding_t;
554
-
555
- /* used by compile time and send insn */
556
- #define VM_CALL_ARGS_SPLAT_BIT (0x01 << 1)
557
- #define VM_CALL_ARGS_BLOCKARG_BIT (0x01 << 2)
558
- #define VM_CALL_FCALL_BIT (0x01 << 3)
559
- #define VM_CALL_VCALL_BIT (0x01 << 4)
560
- #define VM_CALL_TAILCALL_BIT (0x01 << 5)
561
- #define VM_CALL_TAILRECURSION_BIT (0x01 << 6)
562
- #define VM_CALL_SUPER_BIT (0x01 << 7)
563
- #define VM_CALL_OPT_SEND_BIT (0x01 << 8)
564
-
565
- enum vm_special_object_type {
566
- VM_SPECIAL_OBJECT_VMCORE = 1,
567
- VM_SPECIAL_OBJECT_CBASE,
568
- VM_SPECIAL_OBJECT_CONST_BASE
569
- };
570
-
571
- #define VM_FRAME_MAGIC_METHOD 0x11
572
- #define VM_FRAME_MAGIC_BLOCK 0x21
573
- #define VM_FRAME_MAGIC_CLASS 0x31
574
- #define VM_FRAME_MAGIC_TOP 0x41
575
- #define VM_FRAME_MAGIC_FINISH 0x51
576
- #define VM_FRAME_MAGIC_CFUNC 0x61
577
- #define VM_FRAME_MAGIC_PROC 0x71
578
- #define VM_FRAME_MAGIC_IFUNC 0x81
579
- #define VM_FRAME_MAGIC_EVAL 0x91
580
- #define VM_FRAME_MAGIC_LAMBDA 0xa1
581
- #define VM_FRAME_MAGIC_MASK_BITS 8
582
- #define VM_FRAME_MAGIC_MASK (~(~0<<VM_FRAME_MAGIC_MASK_BITS))
583
-
584
- #define VM_FRAME_TYPE(cfp) ((cfp)->flag & VM_FRAME_MAGIC_MASK)
585
-
586
- /* other frame flag */
587
- #define VM_FRAME_FLAG_PASSED 0x0100
588
-
589
- #define RUBYVM_CFUNC_FRAME_P(cfp) \
590
- (VM_FRAME_TYPE(cfp) == VM_FRAME_MAGIC_CFUNC)
591
-
592
- /* inline cache */
593
- typedef struct iseq_inline_cache_entry *IC;
594
-
595
- void rb_vm_change_state(void);
596
-
597
- typedef VALUE CDHASH;
598
-
599
- #ifndef FUNC_FASTCALL
600
- #define FUNC_FASTCALL(x) x
601
- #endif
602
-
603
- typedef rb_control_frame_t *
604
- (FUNC_FASTCALL(*rb_insn_func_t))(rb_thread_t *, rb_control_frame_t *);
605
-
606
- #define GC_GUARDED_PTR(p) ((VALUE)((VALUE)(p) | 0x01))
607
- #define GC_GUARDED_PTR_REF(p) ((void *)(((VALUE)(p)) & ~0x03))
608
- #define GC_GUARDED_PTR_P(p) (((VALUE)(p)) & 0x01)
609
-
610
- #define RUBY_VM_PREVIOUS_CONTROL_FRAME(cfp) ((cfp)+1)
611
- #define RUBY_VM_NEXT_CONTROL_FRAME(cfp) ((cfp)-1)
612
- #define RUBY_VM_END_CONTROL_FRAME(th) \
613
- ((rb_control_frame_t *)((th)->stack + (th)->stack_size))
614
- #define RUBY_VM_VALID_CONTROL_FRAME_P(cfp, ecfp) \
615
- ((void *)(ecfp) > (void *)(cfp))
616
- #define RUBY_VM_CONTROL_FRAME_STACK_OVERFLOW_P(th, cfp) \
617
- (!RUBY_VM_VALID_CONTROL_FRAME_P((cfp), RUBY_VM_END_CONTROL_FRAME(th)))
618
-
619
- #define RUBY_VM_IFUNC_P(ptr) (BUILTIN_TYPE(ptr) == T_NODE)
620
- #define RUBY_VM_NORMAL_ISEQ_P(ptr) \
621
- ((ptr) && !RUBY_VM_IFUNC_P(ptr))
622
-
623
- #define RUBY_VM_GET_BLOCK_PTR_IN_CFP(cfp) ((rb_block_t *)(&(cfp)->self))
624
- #define RUBY_VM_GET_CFP_FROM_BLOCK_PTR(b) \
625
- ((rb_control_frame_t *)((VALUE *)(b) - 5))
626
-
627
- /* VM related object allocate functions */
628
- VALUE rb_thread_alloc(VALUE klass);
629
- VALUE rb_proc_alloc(VALUE klass);
630
-
631
- /* for debug */
632
- extern void rb_vmdebug_stack_dump_raw(rb_thread_t *, rb_control_frame_t *);
633
- #define SDR() rb_vmdebug_stack_dump_raw(GET_THREAD(), GET_THREAD()->cfp)
634
- #define SDR2(cfp) rb_vmdebug_stack_dump_raw(GET_THREAD(), (cfp))
635
- void rb_vm_bugreport(void);
636
-
637
- /* functions about thread/vm execution */
638
- #if defined __GNUC__ && __GNUC__ >= 4
639
- #pragma GCC visibility push(default)
640
- #endif
641
- VALUE rb_iseq_eval(VALUE iseqval);
642
- VALUE rb_iseq_eval_main(VALUE iseqval);
643
- void rb_enable_interrupt(void);
644
- void rb_disable_interrupt(void);
645
- #if defined __GNUC__ && __GNUC__ >= 4
646
- #pragma GCC visibility pop
647
- #endif
648
- int rb_thread_method_id_and_class(rb_thread_t *th, ID *idp, VALUE *klassp);
649
-
650
- VALUE rb_vm_invoke_proc(rb_thread_t *th, rb_proc_t *proc, VALUE self,
651
- int argc, const VALUE *argv, const rb_block_t *blockptr);
652
- VALUE rb_vm_make_proc(rb_thread_t *th, const rb_block_t *block, VALUE klass);
653
- VALUE rb_vm_make_env_object(rb_thread_t *th, rb_control_frame_t *cfp);
654
- void rb_vm_rewrite_dfp_in_errinfo(rb_thread_t *th, rb_control_frame_t *cfp);
655
- void rb_vm_inc_const_missing_count(void);
656
- void rb_vm_gvl_destroy(rb_vm_t *vm);
657
- VALUE rb_vm_call(rb_thread_t *th, VALUE recv, VALUE id, int argc,
658
- const VALUE *argv, const rb_method_entry_t *me);
659
- void rb_unlink_method_entry(rb_method_entry_t *me);
660
- void rb_gc_mark_unlinked_live_method_entries(void *pvm);
661
-
662
- void rb_thread_start_timer_thread(void);
663
- void rb_thread_stop_timer_thread(int);
664
- void rb_thread_reset_timer_thread(void);
665
- void rb_thread_wakeup_timer_thread(void);
666
-
667
- int ruby_thread_has_gvl_p(void);
668
- VALUE rb_make_backtrace(void);
669
- typedef int rb_backtrace_iter_func(void *, VALUE, int, VALUE);
670
- int rb_backtrace_each(rb_backtrace_iter_func *iter, void *arg);
671
- rb_control_frame_t *rb_vm_get_ruby_level_next_cfp(rb_thread_t *th, rb_control_frame_t *cfp);
672
- int rb_vm_get_sourceline(const rb_control_frame_t *);
673
- VALUE rb_name_err_mesg_new(VALUE obj, VALUE mesg, VALUE recv, VALUE method);
674
- void rb_vm_stack_to_heap(rb_thread_t *th);
675
- void ruby_thread_init_stack(rb_thread_t *th);
676
-
677
- NOINLINE(void rb_gc_save_machine_context(rb_thread_t *));
678
- void rb_gc_mark_machine_stack(rb_thread_t *th);
679
-
680
- #define sysstack_error GET_VM()->special_exceptions[ruby_error_sysstack]
681
-
682
- /* for thread */
683
-
684
- #if RUBY_VM_THREAD_MODEL == 2
685
- RUBY_EXTERN rb_thread_t *ruby_current_thread;
686
- extern rb_vm_t *ruby_current_vm;
687
-
688
- #define GET_VM() ruby_current_vm
689
- #define GET_THREAD() ruby_current_thread
690
- #define rb_thread_set_current_raw(th) (void)(ruby_current_thread = (th))
691
- #define rb_thread_set_current(th) do { \
692
- if ((th)->vm->running_thread != (th)) { \
693
- (th)->vm->running_thread->running_time_us = 0; \
694
- } \
695
- rb_thread_set_current_raw(th); \
696
- (th)->vm->running_thread = (th); \
697
- } while (0)
698
-
699
- #else
700
- #error "unsupported thread model"
701
- #endif
702
-
703
- #define RUBY_VM_SET_TIMER_INTERRUPT(th) ATOMIC_OR((th)->interrupt_flag, 0x01)
704
- #define RUBY_VM_SET_INTERRUPT(th) ATOMIC_OR((th)->interrupt_flag, 0x02)
705
- #define RUBY_VM_SET_FINALIZER_INTERRUPT(th) ATOMIC_OR((th)->interrupt_flag, 0x04)
706
- #define RUBY_VM_INTERRUPTED(th) ((th)->interrupt_flag & 0x02)
707
-
708
- int rb_signal_buff_size(void);
709
- void rb_signal_exec(rb_thread_t *th, int sig);
710
- void rb_threadptr_check_signal(rb_thread_t *mth);
711
- void rb_threadptr_signal_raise(rb_thread_t *th, int sig);
712
- void rb_threadptr_signal_exit(rb_thread_t *th);
713
- void rb_threadptr_execute_interrupts(rb_thread_t *);
714
- void rb_threadptr_interrupt(rb_thread_t *th);
715
- void rb_threadptr_unlock_all_locking_mutexes(rb_thread_t *th);
716
-
717
- void rb_thread_lock_unlock(rb_thread_lock_t *);
718
- void rb_thread_lock_destroy(rb_thread_lock_t *);
719
-
720
- #define RUBY_VM_CHECK_INTS_TH(th) do { \
721
- if (UNLIKELY((th)->interrupt_flag)) { \
722
- rb_threadptr_execute_interrupts(th); \
723
- } \
724
- } while (0)
725
-
726
- #define RUBY_VM_CHECK_INTS() \
727
- RUBY_VM_CHECK_INTS_TH(GET_THREAD())
728
-
729
- /* tracer */
730
- void
731
- rb_threadptr_exec_event_hooks(rb_thread_t *th, rb_event_flag_t flag, VALUE self, ID id, VALUE klass);
732
-
733
- #define EXEC_EVENT_HOOK(th, flag, self, id, klass) do { \
734
- rb_event_flag_t wait_event__ = (th)->event_flags; \
735
- if (UNLIKELY(wait_event__)) { \
736
- if (wait_event__ & ((flag) | RUBY_EVENT_VM)) { \
737
- rb_threadptr_exec_event_hooks((th), (flag), (self), (id), (klass)); \
738
- } \
739
- } \
740
- } while (0)
741
-
742
- #if defined __GNUC__ && __GNUC__ >= 4
743
- #pragma GCC visibility push(default)
744
- #endif
745
-
746
- int rb_thread_check_trap_pending(void);
747
-
748
- extern VALUE rb_get_coverages(void);
749
- extern void rb_set_coverages(VALUE);
750
- extern void rb_reset_coverages(void);
751
-
752
- #if defined __GNUC__ && __GNUC__ >= 4
753
- #pragma GCC visibility pop
754
- #endif
755
-
756
- #endif /* RUBY_VM_CORE_H */