diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-06-15 10:02:52 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-06-15 10:02:52 +0000 |
commit | b7829eab9c4470c704b57b7332ce2ba7065321eb (patch) | |
tree | e20d8b78dfa24a0e917f7d032fac3453b55410a3 | |
parent | 0eabacb3a7d215c5457b1a90099650131ad91c64 (diff) | |
download | mandoc-b7829eab9c4470c704b57b7332ce2ba7065321eb.tar.gz mandoc-b7829eab9c4470c704b57b7332ce2ba7065321eb.tar.zst mandoc-b7829eab9c4470c704b57b7332ce2ba7065321eb.zip |
Removed mdoc_nwarn (not being used anywhere).
-rw-r--r-- | libmdoc.h | 4 | ||||
-rw-r--r-- | mdoc.c | 19 |
2 files changed, 2 insertions, 21 deletions
@@ -1,4 +1,4 @@ -/* $Id: libmdoc.h,v 1.8 2009/06/15 09:55:43 kristaps Exp $ */ +/* $Id: libmdoc.h,v 1.9 2009/06/15 10:02:52 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -69,8 +69,6 @@ void mdoc_vmsg(struct mdoc *, int, int, const char *, ...); int mdoc_verr(struct mdoc *, int, int, const char *, ...); -int mdoc_nwarn(struct mdoc *, const struct mdoc_node *, - enum mdoc_warn, const char *, ...); int mdoc_nerr(struct mdoc *, const struct mdoc_node *, const char *, ...); int mdoc_warn(struct mdoc *, enum mdoc_warn, const char *, ...); @@ -1,4 +1,4 @@ -/* $Id: mdoc.c,v 1.78 2009/06/15 09:55:43 kristaps Exp $ */ +/* $Id: mdoc.c,v 1.79 2009/06/15 10:02:53 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -293,23 +293,6 @@ mdoc_vwarn(struct mdoc *mdoc, int ln, int pos, int -mdoc_nwarn(struct mdoc *mdoc, const struct mdoc_node *node, enum mdoc_warn type, - const char *fmt, ...) -{ - char buf[256]; - va_list ap; - - if (NULL == mdoc->cb.mdoc_warn) - return(0); - - va_start(ap, fmt); - (void)vsnprintf(buf, sizeof(buf) - 1, fmt, ap); - va_end(ap); - return((*mdoc->cb.mdoc_warn)(mdoc->data, node->line, node->pos, type, - buf)); -} - -int mdoc_nerr(struct mdoc *mdoc, const struct mdoc_node *node, const char *fmt, ...) { char buf[256]; |