Refactor the handler function roff_block_sub() for clarity and simplicity.
authorschwarze <schwarze@openbsd.org>
Sat, 30 Apr 2022 11:32:39 +0000 (11:32 +0000)
committerschwarze <schwarze@openbsd.org>
Sat, 30 Apr 2022 11:32:39 +0000 (11:32 +0000)
commited59e75be739f53d50448a9013dfa6bb55303939
tree42e5ebb8e3fe7376a18a69dca9b0a0c93b66bada
parentedb0e8e8bb7bd08d3e80e427fc6e91759a93c3ed
Refactor the handler function roff_block_sub() for clarity and simplicity.

1. Do not needlessly access the function pointer table roffs[].
Instead, simply call the block closing function directly.

2. Sort code: handle both cases of block closing at the beginning
of the function rather than one at the beginning and one at the end.

3. Trim excessive, partially repetitive and obvious comments, also
making the comments considerably more precise.

No functional change.
usr.bin/mandoc/roff.c