diff options
author | Marius Kintel <marius@kintel.net> | 2013-05-27 01:55:00 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-05-27 01:55:00 (GMT) |
commit | 0967a26bff45951d7b86fe628e8b1156e6e40ede (patch) | |
tree | fa72ca81652700a373023dace3a4163036ece20e /src/lexer.l | |
parent | 837b574351cdaddaebed6c4b0ba281b7e20c2a0f (diff) |
Support locating previously missing modules. yet another part of #364
Diffstat (limited to 'src/lexer.l')
-rw-r--r-- | src/lexer.l | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lexer.l b/src/lexer.l index ae543eb..0b8048f 100644 --- a/src/lexer.l +++ b/src/lexer.l @@ -116,11 +116,12 @@ use[ \t\r\n>]*"<" { BEGIN(cond_use); } fs::path fullpath = find_valid_path(sourcepath(), fs::path(filename), &openfilenames); if (fullpath.empty()) { PRINTB("WARNING: Can't open library '%s'.", filename); + parserlval.text = strdup(filename.c_str()); } else { handle_dep(fullpath.string()); parserlval.text = strdup(fullpath.string().c_str()); - return TOK_USE; } + return TOK_USE; } } |