CVSROOT: /cvs Module name: src Changes by: schwa...@cvs.openbsd.org 2022/06/02 05:28:17
Modified files: usr.bin/mandoc : roff.c roff_escape.c roff_int.h Log message: Avoid the layering violation of re-parsing for \E in roff_expand(). To that end, add another argument to roff_escape() returning the index of the escape name. This also makes the code in roff_escape() a bit more uniform in so far as it no longer needs the "char esc_name" local variable but now does everything with indices into buf[]. No functional change.