diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-06-26 19:53:01 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-06-26 19:53:01 +0000 |
commit | 938a14f5a35fc5f3da4eb6a9cfbd3956156dd870 (patch) | |
tree | 9d491d7f51a1b547f4fc963166416cfef1bf748e /regress/usr.bin/mandoc/eqn/unary/bold.in | |
parent | a9809ed178dc74023a2b4fd700d8128ef3b3ed32 (diff) |
Complete rewrite of the lexer in a single function with four operation
modes instead of four functions, resulting in considerable
simplification, fifty lines less of code, fifteen fewer automatic
variables, and several bug fixes, for example:
1. The delim control statement consumes exactly two bytes of input,
requires no whitespace after these two bytes, and does not treat
quotes in any special way.
2. If the argument of left, right, gfont, gsize, or size is defined
as an alias, only the first word of the value is used as the
delimiter, font name, or font size.
3. If a back, fwd, down, or up keyword is followed by another keyword
instead of the required number, GNU eqn does nothing useful, but
typically errors out. So no need to have special handling (with
an ugly goto!) for it in mandoc.
Also getting rid of one pointless static buffer and twelve redundant
calls to strlcpy(3).
Diffstat (limited to 'regress/usr.bin/mandoc/eqn/unary/bold.in')
0 files changed, 0 insertions, 0 deletions