[hackers] [scc] [cc1] Fix pragma line emitted by -E || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Thu, 9 Mar 2017 09:31:45 +0100 (CET)

commit 041ec28fa0e9a9a2b35a76fd383e6adc20e6bbc3
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Thu Mar 9 09:25:43 2017 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Thu Mar 9 09:25:43 2017 +0100

    [cc1] Fix pragma line emitted by -E
    
    The correct format of a pragma line is
    
    but cc1 was printing the file without quotes.

diff --git a/cc1/cpp.c b/cc1/cpp.c
index 05f28e1..78276bb 100644
--- a/cc1/cpp.c
+++ b/cc1/cpp.c
_AT_@ -790,7 +790,7 @@ ppragmaln(void)
         putchar('\n');
         if (strcmp(file, filenam)) {
                 strcpy(file, filenam);
- s = "#line %u %s\n";
+ s = "#line %u \"%s\"\n";
         } else if (nline+1 != lineno) {
                 s = "#line %u\n";
         } else {
Received on Thu Mar 09 2017 - 09:31:45 CET

This archive was generated by hypermail 2.3.0 : Thu Mar 09 2017 - 09:36:28 CET