Commit ecd36557 by Nathan Sidwell Committed by Nathan Sidwell

* cpplib.c (do_pragma_dependency): Tidy warning messages.

From-SVN: r35033
parent c77a300f
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> 2000-07-14 Zack Weinberg <zack@wolery.cumb.org>
* .cvsignore: Correct typo. * .cvsignore: Correct typo.
......
...@@ -879,8 +879,8 @@ do_pragma_dependency (pfile) ...@@ -879,8 +879,8 @@ do_pragma_dependency (pfile)
{ {
const cpp_token *msg = _cpp_get_token (pfile); const cpp_token *msg = _cpp_get_token (pfile);
cpp_warning (pfile, "current file is older than %c%s%c", cpp_warning (pfile, "current file is older than %c%.*s%c",
left, name, right); left, (int)len, name, right);
if (msg->type != CPP_EOF) if (msg->type != CPP_EOF)
{ {
U_CHAR *text, *limit; U_CHAR *text, *limit;
...@@ -889,6 +889,9 @@ do_pragma_dependency (pfile) ...@@ -889,6 +889,9 @@ do_pragma_dependency (pfile)
_cpp_dump_list (pfile, &pfile->token_list, msg, 0); _cpp_dump_list (pfile, &pfile->token_list, msg, 0);
limit = pfile->limit; limit = pfile->limit;
pfile->limit = text; pfile->limit = text;
while (*text == ' ')
/* There must be something non-whitespace after. */
text++;
cpp_warning (pfile, "%.*s", (int)(limit - text), text); cpp_warning (pfile, "%.*s", (int)(limit - text), text);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment