From 319ce53328025f4e3069c03dc31ce21f858c0dcd Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 28 Jun 1997 19:31:35 +0000 Subject: [PATCH] (fatal, warn, berror): Use program_name. --- src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index 0b6e2464..4482286f 100644 --- a/src/main.c +++ b/src/main.c @@ -135,7 +135,7 @@ fatal(s) extern char *infile; if (infile == 0) - fprintf(stderr, _("bison: fatal error: %s\n"), s); + fprintf(stderr, _("%s: fatal error: %s\n"), program_name, s); else fprintf(stderr, _("%s:%d: fatal error: %s\n"), infile, lineno, s); done(1); @@ -163,7 +163,7 @@ warn(s) extern char *infile; if (infile == 0) - fprintf(stderr, _("bison: %s\n"), s); + fprintf(stderr, _("%s: %s\n"), program_name, s); else fprintf(stderr, _("%s:%d: %s\n"), infile, lineno, s); @@ -238,6 +238,6 @@ void berror(s) char *s; { - fprintf(stderr, _("bison: internal error: %s\n"), s); + fprintf(stderr, _("%s: internal error: %s\n"), program_name, s); abort(); } -- 2.47.2