version 1.74, 2011/09/04 09:58:40 |
version 1.77, 2011/11/03 20:48:52 |
Line 52 static int check_le5(CHKARGS); |
|
Line 52 static int check_le5(CHKARGS); |
|
static int check_par(CHKARGS); |
static int check_par(CHKARGS); |
static int check_part(CHKARGS); |
static int check_part(CHKARGS); |
static int check_root(CHKARGS); |
static int check_root(CHKARGS); |
|
static void check_text(CHKARGS); |
|
|
static int post_AT(CHKARGS); |
static int post_AT(CHKARGS); |
static int post_vs(CHKARGS); |
static int post_vs(CHKARGS); |
Line 152 man_valid_post(struct man *m) |
|
Line 153 man_valid_post(struct man *m) |
|
m->last->flags |= MAN_VALID; |
m->last->flags |= MAN_VALID; |
|
|
switch (m->last->type) { |
switch (m->last->type) { |
|
case (MAN_TEXT): |
|
check_text(m, m->last); |
|
return(1); |
case (MAN_ROOT): |
case (MAN_ROOT): |
return(check_root(m, m->last)); |
return(check_root(m, m->last)); |
case (MAN_TEXT): |
|
/* FALLTHROUGH */ |
|
case (MAN_EQN): |
case (MAN_EQN): |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
case (MAN_TBL): |
case (MAN_TBL): |
Line 206 check_root(CHKARGS) |
|
Line 208 check_root(CHKARGS) |
|
return(1); |
return(1); |
} |
} |
|
|
|
static void |
|
check_text(CHKARGS) |
|
{ |
|
char *cp, *p; |
|
|
|
if (MAN_LITERAL & m->flags) |
|
return; |
|
|
|
cp = n->string; |
|
for (p = cp; NULL != (p = strchr(p, '\t')); p++) |
|
man_pmsg(m, n->line, (int)(p - cp), MANDOCERR_BADTAB); |
|
} |
|
|
#define INEQ_DEFINE(x, ineq, name) \ |
#define INEQ_DEFINE(x, ineq, name) \ |
static int \ |
static int \ |
check_##name(CHKARGS) \ |
check_##name(CHKARGS) \ |
Line 400 post_TH(CHKARGS) |
|
Line 415 post_TH(CHKARGS) |
|
|
|
if (n) |
if (n) |
n = n->next; |
n = n->next; |
if (n) |
if (n && n->string && '\0' != n->string[0]) { |
pos = n->pos; |
pos = n->pos; |
m->meta.date = mandoc_normdate |
m->meta.date = mandoc_normdate |
(m->parse, n ? n->string : NULL, line, pos); |
(m->parse, n->string, line, pos); |
|
} else |
|
m->meta.date = mandoc_strdup(""); |
|
|
/* TITLE MSEC DATE ->SOURCE<- VOL */ |
/* TITLE MSEC DATE ->SOURCE<- VOL */ |
|
|
Line 459 post_UC(CHKARGS) |
|
Line 476 post_UC(CHKARGS) |
|
const char *p, *s; |
const char *p, *s; |
|
|
n = n->child; |
n = n->child; |
n = m->last->child; |
|
|
|
if (NULL == n || MAN_TEXT != n->type) |
if (NULL == n || MAN_TEXT != n->type) |
p = bsd_versions[0]; |
p = bsd_versions[0]; |