diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-06-15 10:36:01 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-06-15 10:36:01 +0000 |
commit | efcbdf615c8624d52ec2a7278d7684bb10f47d15 (patch) | |
tree | f929547d85cc4b348ea38a6846ef0a380c039563 /mdoc.c | |
parent | 0ca4962fdcdee1151bf78c0961745c567d1adb6e (diff) | |
download | mandoc-efcbdf615c8624d52ec2a7278d7684bb10f47d15.tar.gz |
Deprecated mdoc_msg (not being used anywhere).
Diffstat (limited to 'mdoc.c')
-rw-r--r-- | mdoc.c | 49 |
1 files changed, 0 insertions, 49 deletions
@@ -242,22 +242,6 @@ mdoc_parseln(struct mdoc *m, int ln, char *buf) } -void -mdoc_vmsg(struct mdoc *mdoc, int ln, int pos, const char *fmt, ...) -{ - char buf[256]; - va_list ap; - - if (NULL == mdoc->cb.mdoc_msg) - return; - - va_start(ap, fmt); - (void)vsnprintf(buf, sizeof(buf) - 1, fmt, ap); - va_end(ap); - (*mdoc->cb.mdoc_msg)(mdoc->data, ln, pos, buf); -} - - int mdoc_verr(struct mdoc *mdoc, int ln, int pos, const char *fmt, ...) @@ -342,39 +326,6 @@ mdoc_err(struct mdoc *mdoc, const char *fmt, ...) } -void -mdoc_msg(struct mdoc *mdoc, const char *fmt, ...) -{ - char buf[256]; - va_list ap; - - if (NULL == mdoc->cb.mdoc_msg) - return; - - va_start(ap, fmt); - (void)vsnprintf(buf, sizeof(buf) - 1, fmt, ap); - va_end(ap); - (*mdoc->cb.mdoc_msg)(mdoc->data, mdoc->last->line, mdoc->last->pos, - buf); -} - - -void -mdoc_pmsg(struct mdoc *mdoc, int line, int pos, const char *fmt, ...) -{ - char buf[256]; - va_list ap; - - if (NULL == mdoc->cb.mdoc_msg) - return; - - va_start(ap, fmt); - (void)vsnprintf(buf, sizeof(buf) - 1, fmt, ap); - va_end(ap); - (*mdoc->cb.mdoc_msg)(mdoc->data, line, pos, buf); -} - - int mdoc_pwarn(struct mdoc *mdoc, int line, int pos, enum mdoc_warn type, const char *fmt, ...) |