Refactor warnings and errors (#1728)

* Remove `err` and `warn`, keep `errx` and `warnx`, using them in RGBGFX too

* Separate RGBGFX and RGBLINK warnings/errors from main options

* Separate `report` function into `error` and `fatal` messages

* Implicit newlines for most RGBASM errors
This commit is contained in:
Rangi
2025-07-08 12:58:23 -04:00
committed by GitHub
parent 991b74dd0d
commit 35962dedc4
39 changed files with 753 additions and 757 deletions

View File

@@ -84,6 +84,7 @@ rgblink_obj := \
src/link/sdas_obj.o \
src/link/section.o \
src/link/symbol.o \
src/link/warning.o \
src/extern/getopt.o \
src/extern/utf8decoder.o \
src/error.o \
@@ -107,6 +108,7 @@ rgbgfx_obj := \
src/gfx/proto_palette.o \
src/gfx/reverse.o \
src/gfx/rgba.o \
src/gfx/warning.o \
src/extern/getopt.o \
src/error.o