Annotation of mandoc/main.h, Revision 1.17
1.17 ! schwarze 1: /* $Id: main.h,v 1.16 2014/04/20 16:46:04 schwarze Exp $ */
1.1 kristaps 2: /*
1.14 schwarze 3: * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
1.1 kristaps 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: #ifndef MAIN_H
18: #define MAIN_H
19:
20: __BEGIN_DECLS
21:
22: struct mdoc;
23: struct man;
24:
1.4 kristaps 25: #define UNCONST(a) ((void *)(uintptr_t)(const void *)(a))
26:
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.17 ! schwarze 35: void *html_alloc(const struct mchars *, char *);
1.1 kristaps 36: void html_mdoc(void *, const struct mdoc *);
37: void html_man(void *, const struct man *);
38: void html_free(void *);
39:
40: void tree_mdoc(void *, const struct mdoc *);
41: void tree_man(void *, const struct man *);
1.13 schwarze 42:
43: void man_mdoc(void *, const struct mdoc *);
1.15 kristaps 44: void man_man(void *, const struct man *);
1.1 kristaps 45:
1.17 ! schwarze 46: void *locale_alloc(const struct mchars *, char *);
! 47: void *utf8_alloc(const struct mchars *, char *);
! 48: void *ascii_alloc(const struct mchars *, char *);
1.6 kristaps 49: void ascii_free(void *);
50:
1.17 ! schwarze 51: void *pdf_alloc(const struct mchars *, char *);
! 52: void *ps_alloc(const struct mchars *, char *);
1.9 kristaps 53: void pspdf_free(void *);
1.6 kristaps 54:
1.1 kristaps 55: void terminal_mdoc(void *, const struct mdoc *);
56: void terminal_man(void *, const struct man *);
57:
58: __END_DECLS
59:
60: #endif /*!MAIN_H*/
CVSweb