commit a73e9f76d9fd0691add07e42337884ee4a57cbef
Author: Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Sun Jul 19 09:46:56 2015 +0200
Commit: Roberto E. Vargas Caballero <[email protected]>
CommitDate: Sun Jul 19 09:46:56 2015 +0200
Add a space after the expansions of __FILE__ and __LINE__
This is needed in order to avoid concatenate with other
text in the input.
diff --git a/cc1/cpp.c b/cc1/cpp.c
index e741ee9..e715415 100644
--- a/cc1/cpp.c
+++ b/cc1/cpp.c
@@ -196,11 +196,11 @@ expand(char *begin, Symbol *sym)
macroname = sym->name;
if (sym == symfile) {
- elen = sprintf(buffer, "\"%s\"", input->fname);
+ elen = sprintf(buffer, "\"%s\" ", input->fname);
goto substitute;
}
if (sym == symline) {
- elen = sprintf(buffer, "%d", input->nline);
+ elen = sprintf(buffer, "%d ", input->nline);
goto substitute;
}