summaryrefslogtreecommitdiffstats
path: root/man_macro.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-06-18 10:53:58 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-06-18 10:53:58 +0000
commit28dbd78db68ddebbe43fda7d4abefd2d6257d286 (patch)
treeb62ef5f6c371aced00114a58b7dac6bc1feb4498 /man_macro.c
parentebc04fb0a062bcf881ac1fbe0706af873a8fcfc8 (diff)
downloadmandoc-28dbd78db68ddebbe43fda7d4abefd2d6257d286.tar.gz
Moved all formatted libman warn/error into man.c/libman.h.
Converted all formatted warn/errors into regular syntax.
Diffstat (limited to 'man_macro.c')
-rw-r--r--man_macro.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/man_macro.c b/man_macro.c
index 80949fae..df723e5e 100644
--- a/man_macro.c
+++ b/man_macro.c
@@ -82,16 +82,14 @@ man_macro(struct man *man, int tok, int line,
if (n == man->last && (FL_NLINE & man_flags[tok])) {
if (MAN_NLINE & man->flags)
- return(man_verr(man, line, ppos,
- "next-line scope already open"));
+ return(man_perr(man, line, ppos, WLNSCOPE));
man->flags |= MAN_NLINE;
return(1);
}
if (FL_TLINE & man_flags[tok]) {
if (MAN_NLINE & man->flags)
- return(man_verr(man, line, ppos,
- "next-line scope already open"));
+ return(man_perr(man, line, ppos, WLNSCOPE));
man->flags |= MAN_NLINE;
return(1);
}
@@ -186,7 +184,7 @@ man_args(struct man *m, int line,
if (buf[*pos])
return(1);
- if ( ! man_vwarn(m, line, *pos, "trailing spaces"))
+ if ( ! man_pwarn(m, line, *pos, WTSPACE))
return(-1);
return(1);
@@ -204,7 +202,7 @@ man_args(struct man *m, int line,
(*pos)++;
if (0 == buf[*pos]) {
- if ( ! man_vwarn(m, line, *pos, "unterminated quote"))
+ if ( ! man_pwarn(m, line, *pos, WTQUOTE))
return(-1);
return(1);
}
@@ -219,7 +217,7 @@ man_args(struct man *m, int line,
if (buf[*pos])
return(1);
- if ( ! man_vwarn(m, line, *pos, "trailing spaces"))
+ if ( ! man_pwarn(m, line, *pos, WTSPACE))
return(-1);
return(1);
}