scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 044ed044112af8996f280664833682a4f437016f
parent b2537502d9aa8a69d9b4c2dfa1fd1c57116bba3e
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 31 Oct 2021 04:58:45 +0100

cc2: Prepend error lines with cc2

Error lines were printed without any prefix, making very
confusing reading debug output of cc, where lines of
different programs are printed.

Diffstat:
Msrc/cmd/cc/cc2/main.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/cmd/cc/cc2/main.c b/src/cmd/cc/cc2/main.c @@ -16,6 +16,7 @@ error(unsigned nerror, ...) { va_list va; va_start(va, nerror); + fputs("cc2:", stderr); vfprintf(stderr, errlist[nerror], va); va_end(va); putc('\n', stderr);