Sha256: cbc4527ec2b82e730ffe90ddc255009e2a09f689a4af9eb2b06dcd9f63861650
Contents?: true
Size: 852 Bytes
Versions: 7
Compression:
Stored size: 852 Bytes
Contents
#ifndef ruby_internal_block__h_ #define ruby_internal_block__h_ #include <ruby.h> #ifndef RUBY_VM #include "env.h" #endif #ruby <<END $: << '../..' $: << '.' # TODO: hack require 'ruby_source_dir' vm_c_location = "#{RUBY_SOURCE_DIR}/vm.c" eval_c_location = "#{RUBY_SOURCE_DIR}/eval.c" [ vm_c_location, eval_c_location ].each do |file| next if not File.exist?(file) File.open(file) do |eval_c| write = false stopwrite = false while (line = eval_c.gets) != nil do case line when /^struct (BLOCK)/ write = true stopwrite = false when /^\}/ stopwrite = true end puts line if write if write and stopwrite then stopwrite = false write = false puts '' end end end end nil END #endif
Version data entries
7 entries across 7 versions & 1 rubygems