+2000-07-14 Nathan Sidwell <nathan@codesourcery.com>
+
+ * cpplib.c (do_pragma_dependency): Tidy warning messages.
+
2000-07-14 Zack Weinberg <zack@wolery.cumb.org>
* .cvsignore: Correct typo.
{
const cpp_token *msg = _cpp_get_token (pfile);
- cpp_warning (pfile, "current file is older than %c%s%c",
- left, name, right);
+ cpp_warning (pfile, "current file is older than %c%.*s%c",
+ left, (int)len, name, right);
if (msg->type != CPP_EOF)
{
U_CHAR *text, *limit;
_cpp_dump_list (pfile, &pfile->token_list, msg, 0);
limit = pfile->limit;
pfile->limit = text;
+ while (*text == ' ')
+ /* There must be something non-whitespace after. */
+ text++;
cpp_warning (pfile, "%.*s", (int)(limit - text), text);
}
}