[BACK]Return to main.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Annotation of src/usr.bin/mandoc/main.h, Revision 1.19

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