Sha256: aaa8ed0f4533c84a59c60d0361b2f4ed109af6dd53840fde05ccb5fb1d3b51c6
Contents?: true
Size: 1.41 KB
Versions: 3
Compression:
Stored size: 1.41 KB
Contents
#ifndef ruby_internal_iseq_load__inc_ #define ruby_internal_iseq_load__inc_ #include "internal/yarv-headers/gc.h" #include "internal/yarv-headers/iseq.h" #ruby <<END ruby_version_code = RUBY_VERSION.gsub(/\./, '').to_i if ruby_version_code >= 191 then $: << '../../..' require 'ruby_source_dir' iseq_c_location = "#{RUBY_SOURCE_DIR}/iseq.c" write = false stopwrite = false prev_line = nil File.open(iseq_c_location) do |input| input.each_line do |line| case line when /^(iseq_load|iseq_alloc|iseq_mark|iseq_free|compile_data_free|make_compile_option|make_compile_option_value|prepare_iseq_build|cleanup_iseq_build|set_relation)/ write = true puts prev_line when /^static.*COMPILE_OPTION_DEFAULT.*=/ write = true when /^static.*COMPILE_OPTION_FALSE.*=/ write = true stopwrite = true when /^#define CHECK_/, /^static inline VALUE CHECK_/ write = true stopwrite = true when /^\}/ stopwrite = true end puts line if write if stopwrite then write = false stopwrite = false end prev_line = line end end elsif ruby_version_code >= 190 then puts <<-END /* Defined but not declared by ruby */ VALUE iseq_load(VALUE self, VALUE data, VALUE parent, VALUE opt); END end nil END #endif
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby-internal-0.7.2 | ext/internal/vm/iseq/iseq_load.inc.rpp |
ruby-internal-0.7.1 | ext/internal/vm/iseq/iseq_load.inc.rpp |
ruby-internal-0.7.0 | ext/internal/vm/iseq/iseq_load.inc.rpp |