diff options
author | 2017-06-04 00:13:15 +0000 | |
---|---|---|
committer | 2017-06-04 00:13:15 +0000 | |
commit | d019f1f6d4b986db56f6fa599968bc395d7ce072 (patch) | |
tree | dde68bc644d6109fea6ba0717068a41e15879a7e /test-strlcat.c | |
parent | 34091a7ac02b59ae92c9258e551d73f383869db9 (diff) | |
download | mandoc-d019f1f6d4b986db56f6fa599968bc395d7ce072.tar.gz mandoc-d019f1f6d4b986db56f6fa599968bc395d7ce072.tar.zst mandoc-d019f1f6d4b986db56f6fa599968bc395d7ce072.zip |
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 'test-strlcat.c')
0 files changed, 0 insertions, 0 deletions