version 1.91, 2015/10/12 00:07:27 |
version 1.92, 2015/10/22 21:53:49 |
|
|
static void post_AT(CHKARGS); |
static void post_AT(CHKARGS); |
static void post_IP(CHKARGS); |
static void post_IP(CHKARGS); |
static void post_vs(CHKARGS); |
static void post_vs(CHKARGS); |
static void post_fi(CHKARGS); |
|
static void post_ft(CHKARGS); |
static void post_ft(CHKARGS); |
static void post_nf(CHKARGS); |
|
static void post_OP(CHKARGS); |
static void post_OP(CHKARGS); |
static void post_TH(CHKARGS); |
static void post_TH(CHKARGS); |
static void post_UC(CHKARGS); |
static void post_UC(CHKARGS); |
|
|
NULL, /* IR */ |
NULL, /* IR */ |
NULL, /* RI */ |
NULL, /* RI */ |
post_vs, /* sp */ |
post_vs, /* sp */ |
post_nf, /* nf */ |
NULL, /* nf */ |
post_fi, /* fi */ |
NULL, /* fi */ |
NULL, /* RE */ |
NULL, /* RE */ |
check_part, /* RS */ |
check_part, /* RS */ |
NULL, /* DT */ |
NULL, /* DT */ |
|
|
NULL, /* in */ |
NULL, /* in */ |
post_ft, /* ft */ |
post_ft, /* ft */ |
post_OP, /* OP */ |
post_OP, /* OP */ |
post_nf, /* EX */ |
NULL, /* EX */ |
post_fi, /* EE */ |
NULL, /* EE */ |
post_UR, /* UR */ |
post_UR, /* UR */ |
NULL, /* UE */ |
NULL, /* UE */ |
NULL, /* ll */ |
NULL, /* ll */ |
|
|
|
|
|
|
void |
void |
man_valid_post(struct roff_man *man) |
man_node_validate(struct roff_man *man) |
{ |
{ |
struct roff_node *n; |
struct roff_node *n; |
v_check *cp; |
v_check *cp; |
|
|
n = man->last; |
n = man->last; |
if (n->flags & MAN_VALID) |
man->last = man->last->child; |
return; |
while (man->last != NULL) { |
n->flags |= MAN_VALID; |
man_node_validate(man); |
|
if (man->last == n) |
|
man->last = man->last->child; |
|
else |
|
man->last = man->last->next; |
|
} |
|
|
|
man->last = n; |
|
man->next = ROFF_NEXT_SIBLING; |
switch (n->type) { |
switch (n->type) { |
case ROFFT_TEXT: |
case ROFFT_TEXT: |
check_text(man, n); |
check_text(man, n); |
|
|
cp = man_valids + n->tok; |
cp = man_valids + n->tok; |
if (*cp) |
if (*cp) |
(*cp)(man, n); |
(*cp)(man, n); |
|
if (man->last == n) |
|
man_state(man, n); |
break; |
break; |
} |
} |
} |
} |
|
|
* meta-data. |
* meta-data. |
*/ |
*/ |
roff_node_delete(man, man->last); |
roff_node_delete(man, man->last); |
} |
|
|
|
static void |
|
post_nf(CHKARGS) |
|
{ |
|
|
|
if (man->flags & MAN_LITERAL) |
|
mandoc_msg(MANDOCERR_NF_SKIP, man->parse, |
|
n->line, n->pos, "nf"); |
|
|
|
man->flags |= MAN_LITERAL; |
|
} |
|
|
|
static void |
|
post_fi(CHKARGS) |
|
{ |
|
|
|
if ( ! (MAN_LITERAL & man->flags)) |
|
mandoc_msg(MANDOCERR_FI_SKIP, man->parse, |
|
n->line, n->pos, "fi"); |
|
|
|
man->flags &= ~MAN_LITERAL; |
|
} |
} |
|
|
static void |
static void |