Annotation of src/usr.bin/mandoc/main.h, Revision 1.14
1.14 ! schwarze 1: /* $OpenBSD: main.h,v 1.13 2014/11/27 14:31:29 deraadt Exp $ */
1.1 schwarze 2: /*
1.8 schwarze 3: * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
1.1 schwarze 4: *
5: * Permission to use, copy, modify, and distribute this software for any
6: * purpose with or without fee is hereby granted, provided that the above
7: * copyright notice and this permission notice appear in all copies.
8: *
9: * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10: * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11: * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12: * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13: * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14: * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15: * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16: */
17:
1.14 ! schwarze 18: #define UNCONST(a) ((void *)(uintptr_t)(const void *)(a))
! 19:
1.1 schwarze 20: __BEGIN_DECLS
21:
1.14 ! schwarze 22: struct mchars;
1.1 schwarze 23: struct mdoc;
24: struct man;
1.4 schwarze 25:
1.11 schwarze 26: /*
1.1 schwarze 27: * Definitions for main.c-visible output device functions, e.g., -Thtml
28: * and -Tascii. Note that ascii_alloc() is named as such in
29: * anticipation of latin1_alloc() and so on, all of which map into the
30: * terminal output routines with different character settings.
31: */
32:
1.12 schwarze 33: void *html_alloc(const struct mchars *, char *);
1.1 schwarze 34: void html_mdoc(void *, const struct mdoc *);
35: void html_man(void *, const struct man *);
36: void html_free(void *);
37:
38: void tree_mdoc(void *, const struct mdoc *);
39: void tree_man(void *, const struct man *);
1.9 schwarze 40:
41: void man_mdoc(void *, const struct mdoc *);
1.10 schwarze 42: void man_man(void *, const struct man *);
1.1 schwarze 43:
1.12 schwarze 44: void *locale_alloc(const struct mchars *, char *);
45: void *utf8_alloc(const struct mchars *, char *);
46: void *ascii_alloc(const struct mchars *, char *);
1.5 schwarze 47: void ascii_free(void *);
48:
1.12 schwarze 49: void *pdf_alloc(const struct mchars *, char *);
50: void *ps_alloc(const struct mchars *, char *);
1.7 schwarze 51: void pspdf_free(void *);
1.5 schwarze 52:
1.1 schwarze 53: void terminal_mdoc(void *, const struct mdoc *);
54: void terminal_man(void *, const struct man *);
55:
56: __END_DECLS