]> Shamusworld >> Repos - rmac/commit
Fixed bad char reporting, revamp of the error/warning system.
authorShamus Hammons <jlhamm@acm.org>
Sat, 24 Jun 2017 00:03:24 +0000 (19:03 -0500)
committerShamus Hammons <jlhamm@acm.org>
Sat, 24 Jun 2017 00:03:24 +0000 (19:03 -0500)
commit96a5cd69571096f11a3a2a40f6133374f0adc9bb
tree55bc933edc41a3a88b6dcaa5f9bd4b6c64cf3312
parent03dd34951a331e0b8971195ccef1600fffaea2e6
Fixed bad char reporting, revamp of the error/warning system.

Somehow I put a unicode character in my assembly source and RMAC then
barfed up an internal error #2. Chasing this down, I finally determined
that the debug traces weren't lying to me and the input file had a
problem. However, RMAC wasn't reporting the illegal character correctly
either, so that was fixed (who knew that gcc was silently killing bit 7
of chars now?). I also realized that having five separate functions for
reporting errors (and the cruft of using those crippled things) was just
a wee bit insane, so now we have proper variable argument error and
warning functions (they can be used just like a printf). Enjoy!
12 files changed:
direct.c
error.c
error.h
expr.c
macro.c
mark.c
procln.c
riscasm.c
rmac.h
token.c
token.h
version.h