Sha256: 7ced9e41307f758f4aae00bf25e6ad5094467e4a19361d3d97e3725fe5061342

Contents?: true

Size: 827 Bytes

Versions: 26

Compression:

Stored size: 827 Bytes

Contents

#ifndef ruby_internal_block__h_
#define ruby_internal_block__h_

#include <ruby.h>

#ifndef RUBY_VM
#include "env.h"
#endif

#ruby <<END
  $: << '../..'
  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

26 entries across 11 versions & 1 rubygems

Version Path
ruby-internal-0.8.5 ext/internal/proc/block.h.rpp
ruby-internal-0.8.5 ext/internal/binding/block.h.rpp
ruby-internal-0.8.4 ext/internal/binding/block.h.rpp
ruby-internal-0.8.4 ext/internal/proc/block.h.rpp
ruby-internal-0.8.3 ext/internal/binding/block.h.rpp
ruby-internal-0.8.3 ext/internal/proc/block.h.rpp
ruby-internal-0.8.2 ext/internal/proc/block.h.rpp
ruby-internal-0.8.2 ext/internal/binding/block.h.rpp
ruby-internal-0.8.1 ext/internal/proc/block.h.rpp
ruby-internal-0.8.1 ext/internal/binding/block.h.rpp
ruby-internal-0.8.0 ext/internal/binding/block.h.rpp
ruby-internal-0.8.0 ext/internal/proc/block.h.rpp
ruby-internal-0.7.3 ext/internal/proc/block.h.rpp
ruby-internal-0.7.3 ext/internal/binding/block.h.rpp
ruby-internal-0.7.2 ext/internal/proc/block.h.rpp
ruby-internal-0.7.2 ext/internal/binding/block.h.rpp
ruby-internal-0.7.2 ext/internal/node/block.h.rpp
ruby-internal-0.7.1 ext/internal/node/block.h.rpp
ruby-internal-0.7.1 ext/internal/proc/block.h.rpp
ruby-internal-0.7.1 ext/internal/binding/block.h.rpp