version 1.94, 2009/07/17 12:27:49 |
version 1.96, 2009/07/27 19:43:02 |
|
|
|
|
const char *const __mdoc_merrnames[MERRMAX] = { |
const char *const __mdoc_merrnames[MERRMAX] = { |
"trailing whitespace", /* ETAILWS */ |
"trailing whitespace", /* ETAILWS */ |
"empty last list column", /* ECOLEMPTY */ |
|
"unexpected quoted parameter", /* EQUOTPARM */ |
"unexpected quoted parameter", /* EQUOTPARM */ |
"unterminated quoted parameter", /* EQUOTTERM */ |
"unterminated quoted parameter", /* EQUOTTERM */ |
"system: malloc error", /* EMALLOC */ |
"system: malloc error", /* EMALLOC */ |
|
|
macrowarn(struct mdoc *m, int ln, const char *buf) |
macrowarn(struct mdoc *m, int ln, const char *buf) |
{ |
{ |
if ( ! (MDOC_IGN_MACRO & m->pflags)) |
if ( ! (MDOC_IGN_MACRO & m->pflags)) |
return(mdoc_verr(m, ln, 1, |
return(mdoc_verr(m, ln, 0, |
"unknown macro: %s%s", |
"unknown macro: %s%s", |
buf, strlen(buf) > 3 ? "..." : "")); |
buf, strlen(buf) > 3 ? "..." : "")); |
return(mdoc_vwarn(m, ln, 1, "unknown macro: %s%s", |
return(mdoc_vwarn(m, ln, 0, "unknown macro: %s%s", |
buf, strlen(buf) > 3 ? "..." : "")); |
buf, strlen(buf) > 3 ? "..." : "")); |
} |
} |
|
|