- p = NULL;
- switch (code) {
- case (EMALLOC):
- p = "memory exhausted";
- break;
- case (EQUOTTERM):
- p = "unterminated quoted parameter";
- break;
- case (EARGVAL):
- p = "argument requires a value";
- break;
- }
- assert(p);
- return(mdoc_perr(mdoc, line, pos, p));
-}
-
-
-static int
-pwarn(struct mdoc *mdoc, int line, int pos, enum mwarn code)
-{
- char *p;
- int c;
-
- p = NULL;
- c = WARN_SYNTAX;
- switch (code) {
- case (WQUOTPARM):
- p = "unexpected quoted parameter";
- break;
- case (WARGVPARM):
- p = "argument-like parameter";
- break;
- case (WCOLEMPTY):
- p = "last list column is empty";
- c = WARN_COMPAT;
- break;
- case (WTAILWS):
- p = "trailing whitespace";
- c = WARN_COMPAT;
- break;
- }
- assert(p);
- return(mdoc_pwarn(mdoc, line, pos, c, p));
+ return(args(m, line, pos, buf, 0, v));