]> git.cameronkatri.com Git - mandoc.git/commit
Avoid the layering violation of re-parsing for \E in roff_expand().
authorIngo Schwarze <schwarze@openbsd.org>
Thu, 2 Jun 2022 11:29:07 +0000 (11:29 +0000)
committerIngo Schwarze <schwarze@openbsd.org>
Thu, 2 Jun 2022 11:29:07 +0000 (11:29 +0000)
commit1ecd7d69278a7a53010b2bdde946bb18930ae850
tree64717d1f374ac110b1ac89cb113a09d6808709df
parent47c818f283c63fdbb7882e9aac6e2ab028666c9f
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.
roff.c
roff_escape.c
roff_int.h