mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix problem with "// in sss.c" filenames not being relative
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
394f0d42b1
commit
6ca63fe204
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Wed Dec 31 11:20:34 2003 <dave@pragprog.com>
|
||||||
|
|
||||||
|
* lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::do_methods): Make
|
||||||
|
file referenced in "// in sss.c" relative to current file.
|
||||||
|
|
||||||
Wed Dec 31 11:17:37 2003 Dave Thomas <dave@pragprog.com>
|
Wed Dec 31 11:17:37 2003 Dave Thomas <dave@pragprog.com>
|
||||||
|
|
||||||
* lib/rdoc/generators/html_generator.rb: Fix problem when
|
* lib/rdoc/generators/html_generator.rb: Fix problem when
|
||||||
|
|
|
@ -133,6 +133,7 @@ module RDoc
|
||||||
@options = options
|
@options = options
|
||||||
@top_level = top_level
|
@top_level = top_level
|
||||||
@classes = Hash.new
|
@classes = Hash.new
|
||||||
|
@file_dir = File.dirname(file_name)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Extract the classes/modules and methods from a C file
|
# Extract the classes/modules and methods from a C file
|
||||||
|
@ -326,7 +327,8 @@ module RDoc
|
||||||
end
|
end
|
||||||
|
|
||||||
if source_file
|
if source_file
|
||||||
body = (@@known_bodies[source_file] ||= File.read(source_file))
|
file_name = File.join(@file_dir, source_file)
|
||||||
|
body = (@@known_bodies[source_file] ||= File.read(file_name))
|
||||||
else
|
else
|
||||||
body = @body
|
body = @body
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue