aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mansearch.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-06-06 19:00:28 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-06-06 19:00:28 +0000
commit16c0e4b5b5dbe4e742237f62abe437332875589b (patch)
tree7ee2b7918541e6bb5cc018233d641841372f15b3 /mansearch.c
parent7f4a49958ba60f5c3043ee9fc9c6f2bd80186c8f (diff)
downloadmandoc-16c0e4b5b5dbe4e742237f62abe437332875589b.tar.gz
mandoc-16c0e4b5b5dbe4e742237f62abe437332875589b.tar.zst
mandoc-16c0e4b5b5dbe4e742237f62abe437332875589b.zip
Optimize stradds() and putkeys() to not call ohash_qlookupi()
and ohash_find() twice. As a bonus, this allows to drop hashget(). While here, rename index to slot to match the terminology in the ohash manual; it also prevents potential clashes with index(3). Drop the slot variable altogether where it is used only once.
Diffstat (limited to 'mansearch.c')
0 files changed, 0 insertions, 0 deletions