Skip to content

Commit

Permalink
Revert "Workaround for issue #50"
Browse files Browse the repository at this point in the history
This reverts commit 99c370c.
  • Loading branch information
goldhoorn committed May 21, 2015
1 parent 99c370c commit b80c6e3
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions lib/orogen/gen/typekit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1341,12 +1341,11 @@ def resolve_toplevel_include_mapping(toplevel_files, options)
preprocessed.each_line do |line|
if line =~ /# (\d+) "(.*)"(?: (\d))?/
lineno, file, mode = Integer($1), $2, $3

if mode == "1"
toplevel_file =
if toplevel_files.include? file
file
else
current_file.last[0]
if toplevel_files.include?(file) then file
else current_file.last[0]
end
current_file.push [toplevel_file, file, lineno]
elsif mode == "2"
Expand Down Expand Up @@ -1407,15 +1406,7 @@ def perform_pending_loads
file_registry.merge opaque_registry

preprocess_options, options = make_load_options(loads, user_options)
preprocessed = ""
include_mappings = Hash.new

loads.each do |l|
_, incl_mapp = resolve_toplevel_include_mapping([l], preprocess_options)
include_mappings.merge!(incl_mapp)
end
preprocessed , _ = resolve_toplevel_include_mapping(loads, preprocess_options)

preprocessed, include_mappings = resolve_toplevel_include_mapping(loads, preprocess_options)

include_path = include_dirs.map { |d| Pathname.new(d) }
pending_loads_to_relative = loads.inject(Hash.new) do |map, path|
Expand Down

0 comments on commit b80c6e3

Please sign in to comment.