Sha256: 5c0199574c5e5a3f9a2e1f79040d14bc5be78e4ec7e7a1dc5e58941c33122faf
Contents?: true
Size: 826 Bytes
Versions: 1
Compression:
Stored size: 826 Bytes
Contents
#ifndef global_entry__h_ #define global_entry__h_ st_table * rb_global_tbl; #ruby <<END $: << '../..' $: << '.' # TODO: hack require 'ruby_source_dir' variable_c_location = "#{RUBY_SOURCE_DIR}/variable.c" File.open(variable_c_location) do |variable_c| write = false stopwrite = false prev_line = '' while (line = variable_c.gets) != nil do case line when /^rb_global_entry\(.*\)/, /^struct global_variable {/ puts prev_line write = true stopwrite = false when /^#define (global_entry|gvar_getter_t|gvar_setter_t|gvar_marker_t|undef_getter|undef_setter|undef_marker)/ puts line when /^\}/ stopwrite = true end puts line if write write = false if stopwrite prev_line = line end end END #endif
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-internal-0.7.3 | ext/internal/node/global_entry.h.rpp |