[hackers] [scc] Emit error sequence in cc1 errors || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Fri, 21 Aug 2015 00:17:08 +0200 (CEST)

X-DEBUG-UPD: 0bf03263b1eb578bb353c6bc93f1636caaba89d0
commit 0bf03263b1eb578bb353c6bc93f1636caaba89d0
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Thu Aug 20 22:42:03 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Thu Aug 20 22:42:03 2015 +0200

    Emit error sequence in cc1 errors
    
    We need some way to transmit errors to the backend
    and the best way is to transmit this sequence which is
    impossible in a correct code.

diff --git a/cc1/error.c b/cc1/error.c
index b6335c1..ecd310d 100644
--- a/cc1/error.c
+++ b/cc1/error.c
_AT_@ -24,6 +24,10 @@ warn_error(int flag, char *fmt, va_list va)
         putc('\n', stderr);
 
         if (flag < 0) {
+ if (!failure) {
+ failure = 1;
+ puts("????");
+ }
                 failure = 1;
                 if (nerrors++ == MAXERRNUM) {
                         fputs("too many errors\n", stderr);
Received on Fri Aug 21 2015 - 00:17:08 CEST

This archive was generated by hypermail 2.3.0 : Fri Aug 21 2015 - 00:24:18 CEST