diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-11-01 04:07:26 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-11-01 04:07:26 +0000 |
commit | 03b0868e6a25dfc999da64a87b9ecef97cd55bdd (patch) | |
tree | af51ab8694d5be9928c054a88146ce0ec51001ac /usr.bin/mandoc/libmandoc.h | |
parent | 34ae1ecac770351286cf8f4fcbba75e803615564 (diff) |
Refactor, no functional change: Remove the parse point from struct buf.
Some functions need multiple parse points, some none at all,
and it varies whether any of them need to be passed around.
So better pass them as a separate argument, and only when needed.
Diffstat (limited to 'usr.bin/mandoc/libmandoc.h')
-rw-r--r-- | usr.bin/mandoc/libmandoc.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/mandoc/libmandoc.h b/usr.bin/mandoc/libmandoc.h index ccd4597b1d7..a5df63a6eec 100644 --- a/usr.bin/mandoc/libmandoc.h +++ b/usr.bin/mandoc/libmandoc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: libmandoc.h,v 1.32 2014/10/30 00:05:02 schwarze Exp $ */ +/* $OpenBSD: libmandoc.h,v 1.33 2014/11/01 04:07:25 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -33,7 +33,6 @@ enum rofferr { struct buf { char *buf; size_t sz; - size_t offs; }; __BEGIN_DECLS @@ -69,8 +68,9 @@ 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 *); +int preconv_cue(const struct buf *, size_t); +int preconv_encode(struct buf *, size_t *, + struct buf *, size_t *, int *); void roff_free(struct roff *); struct roff *roff_alloc(struct mparse *, const struct mchars *, int); |