Small cleanup of error reporting:
authorschwarze <schwarze@openbsd.org>
Sun, 5 Jun 2022 10:19:47 +0000 (10:19 +0000)
committerschwarze <schwarze@openbsd.org>
Sun, 5 Jun 2022 10:19:47 +0000 (10:19 +0000)
commit7e16d1ae181db49e5c64905f3309bbb470a6a95e
tree17eb73ac72b620dad381816b3f3308729a3a483b
parent56fd04f19a61078618898230093b9b2dfacff435
Small cleanup of error reporting:
call mandoc_msg() only once at the end, not sometimes in the middle,
classify incomplete, non-expanding escape sequences as ESCAPE_ERROR,
and also reduce the number of return statemants;
no formatting change intended.
usr.bin/mandoc/roff_escape.c