=================================================================== RCS file: /cvs/mandoc/mansearch.h,v retrieving revision 1.13 retrieving revision 1.15 diff -u -p -r1.13 -r1.15 --- mandoc/mansearch.h 2014/04/11 15:46:52 1.13 +++ mandoc/mansearch.h 2014/07/24 20:30:45 1.15 @@ -1,4 +1,4 @@ -/* $Id: mansearch.h,v 1.13 2014/04/11 15:46:52 schwarze Exp $ */ +/* $Id: mansearch.h,v 1.15 2014/07/24 20:30:45 schwarze Exp $ */ /* * Copyright (c) 2012 Kristaps Dzonsons * Copyright (c) 2013, 2014 Ingo Schwarze @@ -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 */ }; @@ -82,7 +83,8 @@ struct mansearch { const char *sec; /* mansection/NULL */ uint64_t deftype; /* type if no key */ int flags; -#define MANSEARCH_WHATIS 0x01 /* whatis mode: equality, no key */ +#define MANSEARCH_WHATIS 0x01 /* whatis(1) mode: whole words, no keys */ +#define MANSEARCH_MAN 0x02 /* man(1) mode: string equality, no keys */ }; int mansearch_setup(int);