From 7a6eb8920bdea2ecc151b308352b2a98699b2350 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 14 Dec 2018 05:18:02 +0000 Subject: Almost mechanical diff to remove the "struct mparse *" argument from mandoc_msg(), where it is no longer used. While here, rename mandoc_vmsg() to mandoc_msg() and retire the old version: There is really no point in having another function merely to save "%s" in a few places. Minus 140 lines of code. --- mandoc.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'mandoc.h') diff --git a/mandoc.h b/mandoc.h index 03a04f51..6a2f1f30 100644 --- a/mandoc.h +++ b/mandoc.h @@ -1,4 +1,4 @@ -/* $Id: mandoc.h,v 1.259 2018/12/14 01:18:25 schwarze Exp $ */ +/* $Id: mandoc.h,v 1.260 2018/12/14 05:18:02 schwarze Exp $ */ /* * Copyright (c) 2010, 2011, 2014 Kristaps Dzonsons * Copyright (c) 2012-2018 Ingo Schwarze @@ -274,10 +274,8 @@ enum mandocerr mandoc_msg_getmin(void); void mandoc_msg_setmin(enum mandocerr); enum mandoclevel mandoc_msg_getrc(void); void mandoc_msg_setrc(enum mandoclevel); -void mandoc_msg(enum mandocerr, void *, int, int, const char *); -void mandoc_vmsg(enum mandocerr, void *, int, int, - const char *, ...) - __attribute__((__format__ (__printf__, 5, 6))); +void mandoc_msg(enum mandocerr, int, int, const char *, ...) + __attribute__((__format__ (__printf__, 4, 5))); void mchars_alloc(void); void mchars_free(void); int mchars_num2char(const char *, size_t); -- cgit v1.2.3