=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/libmandoc.h,v retrieving revision 1.31 retrieving revision 1.32 diff -c -r1.31 -r1.32 *** src/usr.bin/mandoc/libmandoc.h 2014/10/28 17:35:42 1.31 --- src/usr.bin/mandoc/libmandoc.h 2014/10/30 00:05:02 1.32 *************** *** 1,4 **** ! /* $OpenBSD: libmandoc.h,v 1.31 2014/10/28 17:35:42 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011, 2012 Kristaps Dzonsons * Copyright (c) 2013, 2014 Ingo Schwarze --- 1,4 ---- ! /* $OpenBSD: libmandoc.h,v 1.32 2014/10/30 00:05:02 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011, 2012 Kristaps Dzonsons * Copyright (c) 2013, 2014 Ingo Schwarze *************** *** 30,35 **** --- 30,41 ---- ROFF_ERR /* badness: puke and stop */ }; + struct buf { + char *buf; + size_t sz; + size_t offs; + }; + __BEGIN_DECLS struct roff; *************** *** 62,67 **** --- 68,76 ---- int man_endparse(struct man *); int man_addspan(struct man *, const struct tbl_span *); int man_addeqn(struct man *, const struct eqn *); + + int preconv_cue(const struct buf *); + int preconv_encode(struct buf *, struct buf *, int *); void roff_free(struct roff *); struct roff *roff_alloc(struct mparse *, const struct mchars *, int);