Rudimentary implementation of the roff(7) .while request.
authorschwarze <schwarze@openbsd.org>
Fri, 24 Aug 2018 22:56:37 +0000 (22:56 +0000)
committerschwarze <schwarze@openbsd.org>
Fri, 24 Aug 2018 22:56:37 +0000 (22:56 +0000)
commitb7f92c5facc9c63232c7c76c88de8493b7d1ca0e
tree4ab09c47b28c5362b82a6ee516d7edbac704c12f
parenta2336a6b66f524a36c79fa2a661ecbfde8fa836b
Rudimentary implementation of the roff(7) .while request.
Needed for example by groff_hdtbl(7).

There are two limitations:
It does not support nested .while requests yet,
and each .while loop must start and end in the same scope.

The roff_parseln() return codes are now more flexible
and allow OR'ing options.
21 files changed:
regress/usr.bin/mandoc/roff/Makefile
regress/usr.bin/mandoc/roff/while/Makefile [new file with mode: 0644]
regress/usr.bin/mandoc/roff/while/badargs.in [new file with mode: 0644]
regress/usr.bin/mandoc/roff/while/badargs.out_ascii [new file with mode: 0644]
regress/usr.bin/mandoc/roff/while/badargs.out_lint [new file with mode: 0644]
regress/usr.bin/mandoc/roff/while/basic.in [new file with mode: 0644]
regress/usr.bin/mandoc/roff/while/basic.out_ascii [new file with mode: 0644]
regress/usr.bin/mandoc/roff/while/into.in [new file with mode: 0644]
regress/usr.bin/mandoc/roff/while/into.out_ascii [new file with mode: 0644]
regress/usr.bin/mandoc/roff/while/into.out_lint [new file with mode: 0644]
regress/usr.bin/mandoc/roff/while/nesting.in [new file with mode: 0644]
regress/usr.bin/mandoc/roff/while/nesting.out_ascii [new file with mode: 0644]
regress/usr.bin/mandoc/roff/while/nesting.out_lint [new file with mode: 0644]
regress/usr.bin/mandoc/roff/while/outof.in [new file with mode: 0644]
regress/usr.bin/mandoc/roff/while/outof.out_ascii [new file with mode: 0644]
regress/usr.bin/mandoc/roff/while/outof.out_lint [new file with mode: 0644]
share/man/man7/roff.7
usr.bin/mandoc/libmandoc.h
usr.bin/mandoc/mandoc.h
usr.bin/mandoc/read.c
usr.bin/mandoc/roff.c