Created
March 23, 2010 22:14
-
-
Save dolzenko/341753 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ext/internal/node/node_type_descrip.c.rpp b/ext/internal/node/node_type_descrip.c.rpp | |
index 10ae8a3..5ae8ca4 100644 | |
--- a/ext/internal/node/node_type_descrip.c.rpp | |
+++ b/ext/internal/node/node_type_descrip.c.rpp | |
@@ -3,7 +3,7 @@ | |
Node_Type_Descrip node_type_descrips_unsorted[] = { | |
#ruby <<END | |
-require 'node_type_descrip' | |
+require File.expand_path('../node_type_descrip', __FILE__) | |
NODE_TYPE_DESCRIPS.each do |descrip| | |
name = descrip.name | |
node1 = descrip.node1 | |
diff --git a/ext/internal/node/node_type_descrip.rb b/ext/internal/node/node_type_descrip.rb | |
index c11f658..5ec6e04 100644 | |
--- a/ext/internal/node/node_type_descrip.rb | |
+++ b/ext/internal/node/node_type_descrip.rb | |
@@ -1,6 +1,6 @@ | |
$: << '../..' | |
require 'ruby_source_dir' | |
-require 'nodes' | |
+require File.expand_path('../nodes', __FILE__) | |
NODE_TYPE_DESCRIPS = [] | |
diff --git a/ext/internal/node/nodeinfo.c.rpp b/ext/internal/node/nodeinfo.c.rpp | |
index 7b96a7f..3f1bf0a 100644 | |
--- a/ext/internal/node/nodeinfo.c.rpp | |
+++ b/ext/internal/node/nodeinfo.c.rpp | |
@@ -61,9 +61,9 @@ VALUE dump_node_elem(enum Node_Elem_Name nen, NODE * n, VALUE node_hash) | |
case NEN_NONE: | |
return Qnil; | |
#ruby <<END | |
- require 'read_node_h' | |
- require 'nodes' | |
- require 'node_type_descrip' | |
+ require File.expand_path('../read_node_h', __FILE__) | |
+ require File.expand_path('../nodes', __FILE__) | |
+ require File.expand_path('../node_type_descrip', __FILE__) | |
NODEINFO.sort.each do |node_elem_name, node_elem_ref| | |
puts <<-END | |
diff --git a/ext/internal/node/nodeinfo.h.rpp b/ext/internal/node/nodeinfo.h.rpp | |
index f804444..1ae6aff 100644 | |
--- a/ext/internal/node/nodeinfo.h.rpp | |
+++ b/ext/internal/node/nodeinfo.h.rpp | |
@@ -9,7 +9,7 @@ enum Node_Elem_Name | |
{ | |
NEN_NONE, | |
#ruby <<END | |
- require 'read_node_h.rb' | |
+ require File.expand_path('../read_node_h.rb', __FILE__) | |
NODEINFO.sort.each do |node_elem_name, node_elem_ref| | |
puts " NEN_#{node_elem_name.upcase}," | |
diff --git a/ext/ruby_source_dir.rb b/ext/ruby_source_dir.rb | |
index bb2673b..5ac6e37 100644 | |
--- a/ext/ruby_source_dir.rb | |
+++ b/ext/ruby_source_dir.rb | |
@@ -2,7 +2,7 @@ wd = Dir.pwd() | |
metaconfig_dir = File.join(File.dirname(__FILE__), '..') | |
Dir.chdir metaconfig_dir | |
begin | |
- require 'setup.rb' | |
+ load 'setup.rb' | |
require 'rbconfig' | |
config = ConfigTable.new(Config::CONFIG) | |
config.load_standard_entries |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment