]> git.cameronkatri.com Git - mandoc.git/commit
Refactor the handler function roff_block_sub() for clarity and simplicity.
authorIngo Schwarze <schwarze@openbsd.org>
Sat, 30 Apr 2022 11:32:42 +0000 (11:32 +0000)
committerIngo Schwarze <schwarze@openbsd.org>
Sat, 30 Apr 2022 11:32:42 +0000 (11:32 +0000)
commit321d39d1b0b5e3f541847788641246b8724cd4da
treef80d9ab6d4136a174e4cc8c8ead82266709e74b3
parentb3dd815817ebf3e3bb6e95b8e8b9cc6ed2c64ff8
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.
roff.c