From 5ca2f2ec3d00b0df8785d12283e1eff4e6a414f1 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 24 Jul 2014 20:30:45 +0000 Subject: 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@. --- mansearch.h | 1 + 1 file changed, 1 insertion(+) (limited to 'mansearch.h') 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 */ }; -- cgit