# HG changeset patch # User lost@l-w.ca # Date 1279772495 21600 # Node ID e3567a9f0d543d84ecb478d16f3f746405efd357 # Parent c1d83336e1d1ba42b38780dc67efd9040c705f04 Fixed problem with include path handling diff -r c1d83336e1d1 -r e3567a9f0d54 lwasm/input.c --- a/lwasm/input.c Wed Jul 21 21:26:43 2010 -0600 +++ b/lwasm/input.c Wed Jul 21 22:21:35 2010 -0600 @@ -174,7 +174,7 @@ lw_error("Cannot open file '%s': %s", s, strerror(errno)); } input_pushpath(as, s); - break; + return; } /* relative path, check relative to "current file" directory */ @@ -186,8 +186,9 @@ { input_pushpath(as, p2); lw_free(p2); - break; + return; } + debug_message(as, 2, "Failed to open: (cd) %s (%s)\n", p2, strerror(errno)); lw_free(p2); /* now check relative to entries in the search path */ @@ -203,10 +204,12 @@ lw_free(p2); return; } + debug_message(as, 2, "Failed to open: (sp) %s (%s)\n", p2, strerror(errno)); lw_free(p2); lw_stringlist_next(as -> include_list); } lw_error("Cannot open include file '%s': %s", s, strerror(errno)); + break; case input_type_file: debug_message(as, 1, "Opening (reg): %s\n", s);