diff options
Diffstat (limited to 'src/lexer.l')
-rw-r--r-- | src/lexer.l | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lexer.l b/src/lexer.l index 7f6586a..4e51e14 100644 --- a/src/lexer.l +++ b/src/lexer.l @@ -110,13 +110,13 @@ use[ \t\r\n>]*"<" { BEGIN(cond_use); } ">" { BEGIN(INITIAL); fs::path usepath; - if ( boosty::is_absolute( fs::path(filename) ) ) { + if (boosty::is_absolute(fs::path(filename))) { usepath = filename; } else { usepath = fs::path(parser_source_path) / filename; if (!fs::exists(usepath)) { - usepath = boosty::absolute(fs::path(librarydir) / filename); + usepath = boosty::absolute(fs::path(get_librarydir()) / filename); } } handle_dep(usepath.string()); @@ -199,7 +199,7 @@ void includefile() fs::path dirinfo = sourcepath(); if (!filepath.empty()) { - if (boosty::is_absolute( fs::path(filepath) ) ) { + if (boosty::is_absolute(fs::path(filepath))) { dirinfo = filepath; } else { @@ -209,7 +209,7 @@ void includefile() fs::path finfo = dirinfo / filename; if (!exists(finfo)) { - finfo = fs::path(librarydir) / filepath / filename; + finfo = fs::path(get_librarydir()) / filepath / filename; } filepath.clear(); |