diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-24 20:30:45 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-24 20:30:45 +0000 |
commit | 5ca2f2ec3d00b0df8785d12283e1eff4e6a414f1 (patch) | |
tree | 01bff8de4048e5c059818ab7eb545f5ce4a80811 /mansearch.h | |
parent | 4d3e662fd848a0d5fbda1bc38e39aeb05d9b34dc (diff) | |
download | mandoc-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.h | 1 |
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 */ }; |