aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-08-20 17:25:09 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-08-20 17:25:09 +0000
commite0b77e5e8f276f44afbb5520fbcaab68991655b2 (patch)
tree43ee0421756c3a11616baa1fc9a6d38982f77c6d /mandoc.c
parentd3cd8071fec1187df23e51c90476a5a42e9c54c3 (diff)
downloadmandoc-e0b77e5e8f276f44afbb5520fbcaab68991655b2.tar.gz
mandoc-e0b77e5e8f276f44afbb5520fbcaab68991655b2.tar.zst
mandoc-e0b77e5e8f276f44afbb5520fbcaab68991655b2.zip
Expand \n(.$ (the number of macro arguments) right in roff_userdef(),
before even reparsing the expanded macro. That is the least dirty way to fix the bug that \(.$ remained set after execution of the user-defined macro ended. Any other way to fix it would probably require changes to read.c, which really shouldn't be bothered with such roff(7) internals.
Diffstat (limited to 'mandoc.c')
0 files changed, 0 insertions, 0 deletions