summaryrefslogtreecommitdiffstats
path: root/mansearch.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-07-24 20:30:45 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-07-24 20:30:45 +0000
commit5ca2f2ec3d00b0df8785d12283e1eff4e6a414f1 (patch)
tree01bff8de4048e5c059818ab7eb545f5ce4a80811 /mansearch.h
parent4d3e662fd848a0d5fbda1bc38e39aeb05d9b34dc (diff)
downloadmandoc-5ca2f2ec3d00b0df8785d12283e1eff4e6a414f1.tar.gz
Sort result pages first by section number, then by name.
By moving the sort from cgi.c to mansearch.c, we get two advantages: Easier access to the data needed for sorting, in particular the section number, and the apropos(1) command line utility profits as well. Feature requested by deraadt@.
Diffstat (limited to 'mansearch.h')
-rw-r--r--mansearch.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mansearch.h b/mansearch.h
index aa625108..7c5a7c00 100644
--- a/mansearch.h
+++ b/mansearch.h
@@ -74,6 +74,7 @@ struct manpage {
char *file; /* to be prefixed by manpath */
char *names; /* a list of names with sections */
char *output; /* user-defined additional output */
+ int sec; /* section number, 10 means invalid */
int form; /* 0 == catpage */
};