]>
git.cameronkatri.com Git - mandoc.git/blob - private.h
1 /* $Id: private.h,v 1.4 2008/11/24 14:24:55 kristaps Exp $ */
3 * Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the
7 * above copyright notice and this permission notice appear in all
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
11 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
12 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
13 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
16 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17 * PERFORMANCE OF THIS SOFTWARE.
40 typedef void (*(*md_init
)(const struct md_args
*,
41 struct md_mbuf
*, const struct md_rbuf
*));
42 typedef int (*md_line
)(void *, char *, size_t);
43 typedef int (*md_exit
)(void *, int);
45 void *md_init_html4_strict(const struct md_args
*,
46 struct md_mbuf
*, const struct md_rbuf
*);
47 int md_line_html4_strict(void *, char *, size_t);
48 int md_exit_html4_strict(void *, int);
50 void *md_init_dummy(const struct md_args
*,
51 struct md_mbuf
*, const struct md_rbuf
*);
52 int md_line_dummy(void *, char *, size_t);
53 int md_exit_dummy(void *, int);
55 int md_buf_puts(struct md_mbuf
*, const char *, size_t);
56 int md_buf_putchar(struct md_mbuf
*, char);
57 int md_buf_putstring(struct md_mbuf
*, const char *);
61 struct rofftree
*roff_alloc(const struct md_args
*,
62 struct md_mbuf
*, const struct md_rbuf
*);
63 int roff_engine(struct rofftree
*, char *, size_t);
64 int roff_free(struct rofftree
*, int);