Annotation of mandoc/manconf.h, Revision 1.6
1.6 ! schwarze 1: /* $Id: manconf.h,v 1.5 2017/07/01 09:47:30 schwarze Exp $ */
1.1 schwarze 2: /*
1.5 schwarze 3: * Copyright (c) 2011, 2015, 2017 Ingo Schwarze <schwarze@openbsd.org>
1.1 schwarze 4: * Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
5: *
6: * Permission to use, copy, modify, and distribute this software for any
7: * purpose with or without fee is hereby granted, provided that the above
8: * copyright notice and this permission notice appear in all copies.
9: *
10: * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES
11: * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12: * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR
13: * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14: * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15: * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16: * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17: */
18:
19: /* List of unique, absolute paths to manual trees. */
20:
21: struct manpaths {
22: char **paths;
23: size_t sz;
24: };
25:
26: /* Data from -O options and man.conf(5) output directives. */
27:
28: struct manoutput {
29: char *includes;
30: char *man;
31: char *paper;
32: char *style;
33: size_t indent;
34: size_t width;
35: int fragment;
36: int mdoc;
1.6 ! schwarze 37: int noval;
1.1 schwarze 38: int synopsisonly;
1.6 ! schwarze 39: int toc;
1.1 schwarze 40: };
41:
42: struct manconf {
43: struct manoutput output;
44: struct manpaths manpath;
45: };
46:
47:
48: void manconf_parse(struct manconf *, const char *, char *, char *);
1.3 schwarze 49: int manconf_output(struct manoutput *, const char *, int);
1.1 schwarze 50: void manconf_free(struct manconf *);
1.5 schwarze 51: void manpath_base(struct manpaths *);
CVSweb