Improve error and warning output

Improve error messages generated by `errx()`, `warnx()` and similar.

Set `progname` to a static string with the name of the program so that
the path of the binary isn't included in error messages.

Signed-off-by: AntonioND <antonio_nd@outlook.com>
This commit is contained in:
AntonioND
2017-04-03 21:16:00 +01:00
parent e4b4e427f1
commit 25be5c6561
5 changed files with 24 additions and 10 deletions

View File

@@ -298,7 +298,7 @@ main(int argc, char *argv[])
if (argc == 1)
usage();
progname = argv[0];
progname = "rgbasm";
/* yydebug=1; */