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 | f0ed82f19fa760aaaa0d02bcbbda9f34357649f2 (patch) | |
tree | 09519b3f84b2237ede119005fb5bacd9b9dc9373 /mansearch.h | |
parent | 896b390bda7935b1fbc5244e7655b49a2a089bf5 (diff) | |
download | mandoc-f0ed82f19fa760aaaa0d02bcbbda9f34357649f2.tar.gz mandoc-f0ed82f19fa760aaaa0d02bcbbda9f34357649f2.tar.zst mandoc-f0ed82f19fa760aaaa0d02bcbbda9f34357649f2.zip |
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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mansearch.h b/mansearch.h index 2832ce31..eff5e371 100644 --- a/mansearch.h +++ b/mansearch.h @@ -1,4 +1,4 @@ -/* $Id: mansearch.h,v 1.14 2014/07/12 14:00:25 schwarze Exp $ */ +/* $Id: mansearch.h,v 1.15 2014/07/24 20:30:45 schwarze Exp $ */ /* * Copyright (c) 2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -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 */ }; |