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

Annotation of mandoc/main.h, Revision 1.21

1.21    ! schwarze    1: /*     $Id: main.h,v 1.20 2014/12/31 16:52:40 schwarze Exp $ */
1.1       kristaps    2: /*
1.14      schwarze    3:  * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
1.21    ! schwarze    4:  * Copyright (c) 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
1.1       kristaps    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:  *
1.21    ! schwarze   10:  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES
1.1       kristaps   11:  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1.21    ! schwarze   12:  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR
1.1       kristaps   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:
1.19      schwarze   19: #define        UNCONST(a)      ((void *)(uintptr_t)(const void *)(a))
                     20:
1.1       kristaps   21: __BEGIN_DECLS
                     22:
1.19      schwarze   23: struct mchars;
1.1       kristaps   24: struct mdoc;
                     25: struct man;
1.21    ! schwarze   26: struct manoutput;
1.4       kristaps   27:
1.16      schwarze   28: /*
1.1       kristaps   29:  * Definitions for main.c-visible output device functions, e.g., -Thtml
                     30:  * and -Tascii.  Note that ascii_alloc() is named as such in
                     31:  * anticipation of latin1_alloc() and so on, all of which map into the
                     32:  * terminal output routines with different character settings.
                     33:  */
                     34:
1.21    ! schwarze   35: void            *html_alloc(const struct mchars *,
        !            36:                        const struct manoutput *);
1.1       kristaps   37: void             html_mdoc(void *, const struct mdoc *);
                     38: void             html_man(void *, const struct man *);
                     39: void             html_free(void *);
                     40:
                     41: void             tree_mdoc(void *, const struct mdoc *);
                     42: void             tree_man(void *, const struct man *);
1.13      schwarze   43:
                     44: void             man_mdoc(void *, const struct mdoc *);
1.15      kristaps   45: void             man_man(void *, const struct man *);
1.1       kristaps   46:
1.21    ! schwarze   47: void            *locale_alloc(const struct mchars *,
        !            48:                        const struct manoutput *);
        !            49: void            *utf8_alloc(const struct mchars *,
        !            50:                        const struct manoutput *);
        !            51: void            *ascii_alloc(const struct mchars *,
        !            52:                        const struct manoutput *);
1.6       kristaps   53: void             ascii_free(void *);
1.20      schwarze   54: void             ascii_sepline(void *);
1.6       kristaps   55:
1.21    ! schwarze   56: void            *pdf_alloc(const struct mchars *,
        !            57:                        const struct manoutput *);
        !            58: void            *ps_alloc(const struct mchars *,
        !            59:                        const struct manoutput *);
1.9       kristaps   60: void             pspdf_free(void *);
1.6       kristaps   61:
1.1       kristaps   62: void             terminal_mdoc(void *, const struct mdoc *);
                     63: void             terminal_man(void *, const struct man *);
                     64:
                     65: __END_DECLS

CVSweb