[hackers] [scc] Fix output of string in only cpp mode || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Tue, 6 Oct 2015 09:23:25 +0200 (CEST)

commit 4d3bd7972a348bbadd872312a68a0b2570a8bd02
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Tue Oct 6 09:21:43 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Tue Oct 6 09:21:43 2015 +0200

    Fix output of string in only cpp mode
    
    The quotation marks were omitted.

diff --git a/cc1/cpp.c b/cc1/cpp.c
index 9063074..5473434 100644
--- a/cc1/cpp.c
+++ b/cc1/cpp.c
_AT_@ -741,7 +741,7 @@ outcpp(void)
                         printf("%s ", yytext);
                         continue;
                 }
- for (s = yylval.sym->u.s; c = *s; ++s) {
+ for (s = yytext; c = *s; ++s) {
                         switch (c) {
                         case '\n':
                                 t = "\\n";
_AT_@ -770,6 +770,7 @@ outcpp(void)
                                 break;
                         }
                 }
+ putchar(' ');
         }
         putchar('\n');
 }
Received on Tue Oct 06 2015 - 09:23:25 CEST

This archive was generated by hypermail 2.3.0 : Tue Oct 06 2015 - 09:24:13 CEST