# HG changeset patch # User David A. Holland # Date 1370916006 14400 # Node ID 594495750d840d47f1913b6b880ed74ac596e262 # Parent 64d275661bf0bd6e895ce59f9fe8926d94271328 If we get a malformed #include, print it. (both before and after macro expansion) This way the user has a fighting chance of figuring out what happened. diff -r 64d275661bf0 -r 594495750d84 directive.c --- a/directive.c Mon Jun 10 21:57:50 2013 -0400 +++ b/directive.c Mon Jun 10 22:00:06 2013 -0400 @@ -384,8 +384,10 @@ dostrfree(text); return; } + complain(p, "Illegal #include directive"); + complain(p, "Before macro expansion: #include %s", line); + complain(p, "After macro expansion: #include %s", text); dostrfree(text); - complain(p, "Illegal #include directive"); complain_fail(); }