version 1.63, 2011/03/07 01:35:51 |
version 1.65, 2011/03/20 16:02:05 |
Line 196 check_root(CHKARGS) |
|
Line 196 check_root(CHKARGS) |
|
|
|
m->meta.title = mandoc_strdup("unknown"); |
m->meta.title = mandoc_strdup("unknown"); |
m->meta.msec = mandoc_strdup("1"); |
m->meta.msec = mandoc_strdup("1"); |
m->meta.date = mandoc_normdate(NULL, |
m->meta.date = mandoc_normdate |
m->msg, m->data, n->line, n->pos); |
(m->parse, NULL, n->line, n->pos); |
} |
} |
|
|
return(1); |
return(1); |
Line 223 check_text(CHKARGS) |
|
Line 223 check_text(CHKARGS) |
|
if ('\t' == *p) { |
if ('\t' == *p) { |
if (MAN_LITERAL & m->flags) |
if (MAN_LITERAL & m->flags) |
continue; |
continue; |
if (man_pmsg(m, n->line, pos, MANDOCERR_BADTAB)) |
man_pmsg(m, n->line, pos, MANDOCERR_BADTAB); |
continue; |
continue; |
return(0); |
|
} |
} |
|
|
/* Check the special character. */ |
/* Check the special character. */ |
Line 248 check_##name(CHKARGS) \ |
|
Line 247 check_##name(CHKARGS) \ |
|
{ \ |
{ \ |
if (n->nchild ineq (x)) \ |
if (n->nchild ineq (x)) \ |
return(1); \ |
return(1); \ |
man_vmsg(m, MANDOCERR_ARGCOUNT, n->line, n->pos, \ |
mandoc_vmsg(MANDOCERR_ARGCOUNT, m->parse, n->line, n->pos, \ |
"line arguments %s %d (have %d)", \ |
"line arguments %s %d (have %d)", \ |
#ineq, (x), n->nchild); \ |
#ineq, (x), n->nchild); \ |
return(1); \ |
return(1); \ |
Line 300 check_ft(CHKARGS) |
|
Line 299 check_ft(CHKARGS) |
|
} |
} |
|
|
if (0 == ok) { |
if (0 == ok) { |
man_vmsg(m, MANDOCERR_BADFONT, |
mandoc_vmsg |
n->line, n->pos, "%s", cp); |
(MANDOCERR_BADFONT, m->parse, |
|
n->line, n->pos, "%s", cp); |
*cp = '\0'; |
*cp = '\0'; |
} |
} |
|
|
if (1 < n->nchild) |
if (1 < n->nchild) |
man_vmsg(m, MANDOCERR_ARGCOUNT, n->line, n->pos, |
mandoc_vmsg |
"want one child (have %d)", n->nchild); |
(MANDOCERR_ARGCOUNT, m->parse, n->line, |
|
n->pos, "want one child (have %d)", |
|
n->nchild); |
|
|
return(1); |
return(1); |
} |
} |
Line 427 post_TH(CHKARGS) |
|
Line 429 post_TH(CHKARGS) |
|
n = n->next; |
n = n->next; |
if (n) |
if (n) |
pos = n->pos; |
pos = n->pos; |
m->meta.date = mandoc_normdate(n ? n->string : NULL, |
m->meta.date = mandoc_normdate |
m->msg, m->data, line, pos); |
(m->parse, n ? n->string : NULL, line, pos); |
|
|
/* TITLE MSEC DATE ->SOURCE<- VOL */ |
/* TITLE MSEC DATE ->SOURCE<- VOL */ |
|
|