diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2018-08-23 14:16:13 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2018-08-23 14:16:13 +0000 |
commit | fc469ea850621ad85ab19d7482c03478fc263bcb (patch) | |
tree | 29ee64e3e0a1e94868f5a145d1dd55610ad040db /usr.bin/mandoc/mandoc_ohash.c | |
parent | 19b02c78f13b5e52f321e82720b4b70346dbb581 (diff) |
Implement the roff(7) .shift and .return requests,
for example used by groff_hdtbl(7) and groff_mom(7).
Also correctly interpolate arguments during nested macro execution
even after .shift and .return, implemented using a stack of argument
arrays.
Note that only read.c, but not roff.c can detect the end of a macro
execution, and the existence of .shift implies that arguments cannot
be interpolated up front, so unfortunately, this includes a partial
revert of roff.c rev. 1.209, moving argument interpolation back into
the function roff_res().
Diffstat (limited to 'usr.bin/mandoc/mandoc_ohash.c')
0 files changed, 0 insertions, 0 deletions