aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/makewhatis.8
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-08-17 20:53:50 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-08-17 20:53:50 +0000
commit6bc581d1a26667c00bfa4397c833b05ca718ee9a (patch)
tree74339035f630d5731c5b26bf1632e1e90c75b60e /makewhatis.8
parent6dae70845e149f75383a1bbb4b745deffd14632e (diff)
downloadmandoc-6bc581d1a26667c00bfa4397c833b05ca718ee9a.tar.gz
mandoc-6bc581d1a26667c00bfa4397c833b05ca718ee9a.tar.zst
mandoc-6bc581d1a26667c00bfa4397c833b05ca718ee9a.zip
Do not require getsubopt() to provide extern char *suboptarg.
We don't use it anyway in mandoc. Like this, fewer systems need the compat implementation. In particular, we can now use the stock getsubopt() on glibc and musl. Besides, the comment in the BSD getsubopt.c that error messages are tricky without *suboptarg is massively overblown. If you simply save a copy of the pointer you pass into getsubopt(), that's quite usable for an error message. People start campaigning for the addition of *suboptarg to C libraries on the grounds that mandoc wants it, but actually, i consider library functions manipulating global data quite ugly, so stop pushing people into that questionable direction. While here, add an explicit Copyright header to the test file. While it's obviously to me what Kristaps intended, others might consider this file copyrightable and wonder what's up.
Diffstat (limited to 'makewhatis.8')
0 files changed, 0 insertions, 0 deletions