Really recurse from the lowest subparser back to the parent
This commit is contained in:
parent
ce0614492e
commit
d6c76ce077
|
@ -987,6 +987,7 @@ static char * _path_lookup(CppParser * cp, char const * path, int system)
|
|||
|
||||
if(system != 0)
|
||||
return cpp_path_lookup(cp->cpp, path);
|
||||
for(; cp->subparser != NULL; cp = cp->subparser);
|
||||
for(; cp != NULL; cp = cp->parent)
|
||||
{
|
||||
filename = parser_get_filename(cp->parser);
|
||||
|
|
Loading…
Reference in New Issue
Block a user