Sha256: 6444c4e4aae2669ee5cb96011074a204018ba9c6f307e33d51ccb73458411757

Contents?: true

Size: 570 Bytes

Versions: 11

Compression:

Stored size: 570 Bytes

Contents

#include "classpath.h"

#ruby <<END
$: << '../..'
require 'ruby_source_dir'

marshal_c_location = "#{RUBY_SOURCE_DIR}/marshal.c"
File.open(marshal_c_location) do |marshal_c|
  write = false
  stopwrite = false
  while (line = marshal_c.gets) != nil do
    case line
    when /^(path2class|path2module|class2path)/
      puts "VALUE" if not write
      write = true
      stopwrite = false
    when /^\}/
      stopwrite = true if write
    end
    puts line if write
    if stopwrite then
      stopwrite = false
      write = false
      puts ''
    end
  end
end
END

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ruby-internal-0.8.5 ext/internal/module/classpath.c.rpp
ruby-internal-0.8.4 ext/internal/module/classpath.c.rpp
ruby-internal-0.8.3 ext/internal/module/classpath.c.rpp
ruby-internal-0.8.2 ext/internal/module/classpath.c.rpp
ruby-internal-0.8.1 ext/internal/module/classpath.c.rpp
ruby-internal-0.8.0 ext/internal/module/classpath.c.rpp
ruby-internal-0.7.3 ext/internal/module/classpath.c.rpp
ruby-internal-0.7.2 ext/internal/module/classpath.c.rpp
ruby-internal-0.7.1 ext/internal/module/classpath.c.rpp
ruby-internal-0.7.0 ext/internal/module/classpath.c.rpp
ruby-internal-0.6.0 ext/internal/module/classpath.c.rpp