diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-12-14 05:18:02 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-12-14 05:18:02 +0000 |
commit | 7a6eb8920bdea2ecc151b308352b2a98699b2350 (patch) | |
tree | 9860a766930f3997c413b0f0aecd6ba815b80f25 /mandoc.h | |
parent | 0ef6626fcc16277d2fefb32e1830dfba3df5defd (diff) | |
download | mandoc-7a6eb8920bdea2ecc151b308352b2a98699b2350.tar.gz mandoc-7a6eb8920bdea2ecc151b308352b2a98699b2350.tar.zst mandoc-7a6eb8920bdea2ecc151b308352b2a98699b2350.zip |
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.
Diffstat (limited to 'mandoc.h')
-rw-r--r-- | mandoc.h | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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 <kristaps@bsd.lv> * Copyright (c) 2012-2018 Ingo Schwarze <schwarze@openbsd.org> @@ -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); |