summaryrefslogtreecommitdiffstats
path: root/tbl.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-06-04 00:13:15 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-06-04 00:13:15 +0000
commitafcc0a6de7e295d807dddcf20b26811ab1e7803c (patch)
tree76794e8ec7bb9e27f2b19bec6d03de49933df4fa /tbl.c
parent90897efbceb54855c1943f8e19d5bba5a542ff65 (diff)
downloadmandoc-afcc0a6de7e295d807dddcf20b26811ab1e7803c.tar.gz
Pure preprocessor implementation of the roff(7) .ec and .eo requests
(escape character control), touching nothing after the preprocessing stage and keeping even the state variable local to the preprocessor. Since the escape character is also used for line continuation, this requires pulling the implementation of line continuation from the input reader to the preprocessor, which also considerably shortens the code required for that. When the escape character is changed, simply let the preprocessor replace bare by escaped backslashes and instances of the non-standard escape character with bare backslashes - that's all we need. Oh, and if anybody dares to use these requests in OpenBSD manuals, sending a medium-sized pack of axe-murderers after them might be a worthwhile part of the punishment, but probably insuffient on its own.
Diffstat (limited to 'tbl.c')
0 files changed, 0 insertions, 0 deletions