[BACK]Return to manconf.h CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Annotation of mandoc/manconf.h, Revision 1.8

1.8     ! schwarze    1: /* $OpenBSD: manconf.h,v 1.7 2018/11/22 11:30:15 schwarze Exp $ */
1.1       schwarze    2: /*
1.8     ! schwarze    3:  * Copyright (c) 2011,2015,2017,2018,2020 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.
1.8     ! schwarze   17:  *
        !            18:  * Public interface to man(1) configuration management.
        !            19:  * For use by the main program and by the formatters.
1.1       schwarze   20:  */
                     21:
                     22: /* List of unique, absolute paths to manual trees. */
                     23:
                     24: struct manpaths {
                     25:        char    **paths;
                     26:        size_t    sz;
                     27: };
                     28:
                     29: /* Data from -O options and man.conf(5) output directives. */
                     30:
                     31: struct manoutput {
                     32:        char     *includes;
                     33:        char     *man;
                     34:        char     *paper;
                     35:        char     *style;
1.7       schwarze   36:        char     *tag;
1.1       schwarze   37:        size_t    indent;
                     38:        size_t    width;
                     39:        int       fragment;
                     40:        int       mdoc;
1.6       schwarze   41:        int       noval;
1.1       schwarze   42:        int       synopsisonly;
1.8     ! schwarze   43:        int       tag_found;
1.6       schwarze   44:        int       toc;
1.1       schwarze   45: };
                     46:
                     47: struct manconf {
                     48:        struct manoutput          output;
                     49:        struct manpaths           manpath;
                     50: };
                     51:
                     52:
                     53: void    manconf_parse(struct manconf *, const char *, char *, char *);
1.3       schwarze   54: int     manconf_output(struct manoutput *, const char *, int);
1.1       schwarze   55: void    manconf_free(struct manconf *);
1.5       schwarze   56: void    manpath_base(struct manpaths *);

CVSweb