diff options
author | Marius Kintel <marius@kintel.net> | 2012-02-02 22:11:54 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2012-02-02 22:11:54 (GMT) |
commit | 1ce1b8824968a55ecd2b9d689b2720594b59d632 (patch) | |
tree | 223d257dcf51fcf89690bebe9c227cfc98b2c488 /src/lexer.l | |
parent | 456a87efcc191f43abf25abeaed0345d0e07e3ef (diff) |
bugfix: Nested use and included of files inside libraries was broken. Fixes #78
Diffstat (limited to 'src/lexer.l')
-rw-r--r-- | src/lexer.l | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lexer.l b/src/lexer.l index 4e51e14..5644ded 100644 --- a/src/lexer.l +++ b/src/lexer.l @@ -114,7 +114,7 @@ use[ \t\r\n>]*"<" { BEGIN(cond_use); } usepath = filename; } else { - usepath = fs::path(parser_source_path) / filename; + usepath = sourcepath() / filename; if (!fs::exists(usepath)) { usepath = boosty::absolute(fs::path(get_librarydir()) / filename); } @@ -213,7 +213,7 @@ void includefile() } filepath.clear(); - path_stack.push_back(dirinfo); + path_stack.push_back(finfo.parent_path()); handle_dep(boosty::absolute(finfo).string()); yyin = fopen(boosty::absolute(finfo).string().c_str(), "r"); |