From d9935ac14a6d74399cd18449d8e0aa8c7b374a41 Mon Sep 17 00:00:00 2001 From: "Roberto E. Vargas Caballero" Date: Fri, 5 Nov 2021 06:23:37 +0100 Subject: Add qbe identifier in error strings When qbe is used with other tools is a bit hard to identify what is the tool that is generating the error. Adding an identifier at the beginning of the line makes much easier to identify the tool generating the error. --- parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.c b/parse.c index 972c2e2..f681c40 100644 --- a/parse.c +++ b/parse.c @@ -142,7 +142,7 @@ err(char *s, ...) va_list ap; va_start(ap, s); - fprintf(stderr, "%s:%d: ", inpath, lnum); + fprintf(stderr, "qbe:%s:%d: ", inpath, lnum); vfprintf(stderr, s, ap); fprintf(stderr, "\n"); va_end(ap); -- cgit 1.4.1