From 690ce2ee67ae7b62772ac42f54c2c4df976bbbd0 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 1 Nov 2014 06:03:13 +0000 Subject: Use struct buf in libroff, it is very natural there and reduces the number of arguments of many functions. While here, sprinkle some KNF. No functional change. --- libmandoc.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libmandoc.h') diff --git a/libmandoc.h b/libmandoc.h index b4eacb75..f19cac62 100644 --- a/libmandoc.h +++ b/libmandoc.h @@ -1,4 +1,4 @@ -/* $Id: libmandoc.h,v 1.47 2014/11/01 04:08:43 schwarze Exp $ */ +/* $Id: libmandoc.h,v 1.48 2014/11/01 06:03:13 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011, 2012 Kristaps Dzonsons * Copyright (c) 2013, 2014 Ingo Schwarze @@ -78,8 +78,7 @@ int preconv_encode(struct buf *, size_t *, void roff_free(struct roff *); struct roff *roff_alloc(struct mparse *, const struct mchars *, int); void roff_reset(struct roff *); -enum rofferr roff_parseln(struct roff *, int, - char **, size_t *, int, int *); +enum rofferr roff_parseln(struct roff *, int, struct buf *, int *); void roff_endparse(struct roff *); void roff_setreg(struct roff *, const char *, int, char sign); int roff_getreg(const struct roff *, const char *); -- cgit v1.2.3