version 1.249, 2014/09/12 00:54:10 |
version 1.253, 2014/10/13 14:05:32 |
Line 101 static int post_es(POST_ARGS); |
|
Line 101 static int post_es(POST_ARGS); |
|
static int post_eoln(POST_ARGS); |
static int post_eoln(POST_ARGS); |
static int post_ex(POST_ARGS); |
static int post_ex(POST_ARGS); |
static int post_fa(POST_ARGS); |
static int post_fa(POST_ARGS); |
|
static int post_fn(POST_ARGS); |
|
static int post_fname(POST_ARGS); |
static int post_fo(POST_ARGS); |
static int post_fo(POST_ARGS); |
static int post_hyph(POST_ARGS); |
static int post_hyph(POST_ARGS); |
static int post_hyphtext(POST_ARGS); |
static int post_hyphtext(POST_ARGS); |
Line 161 static const struct valids mdoc_valids[MDOC_MAX] = { |
|
Line 163 static const struct valids mdoc_valids[MDOC_MAX] = { |
|
{ NULL, post_fa }, /* Fa */ |
{ NULL, post_fa }, /* Fa */ |
{ NULL, ewarn_ge1 }, /* Fd */ |
{ NULL, ewarn_ge1 }, /* Fd */ |
{ NULL, NULL }, /* Fl */ |
{ NULL, NULL }, /* Fl */ |
{ NULL, post_fa }, /* Fn */ |
{ NULL, post_fn }, /* Fn */ |
{ NULL, NULL }, /* Ft */ |
{ NULL, NULL }, /* Ft */ |
{ NULL, NULL }, /* Ic */ |
{ NULL, NULL }, /* Ic */ |
{ NULL, ewarn_eq1 }, /* In */ |
{ NULL, ewarn_eq1 }, /* In */ |
Line 1000 post_eoln(POST_ARGS) |
|
Line 1002 post_eoln(POST_ARGS) |
|
} |
} |
|
|
static int |
static int |
|
post_fname(POST_ARGS) |
|
{ |
|
const struct mdoc_node *n; |
|
const char *cp; |
|
size_t pos; |
|
|
|
n = mdoc->last->child; |
|
pos = strcspn(n->string, "()"); |
|
cp = n->string + pos; |
|
if ( ! (cp[0] == '\0' || (cp[0] == '(' && cp[1] == '*'))) |
|
mandoc_msg(MANDOCERR_FN_PAREN, mdoc->parse, |
|
n->line, n->pos + pos, n->string); |
|
return(1); |
|
} |
|
|
|
static int |
|
post_fn(POST_ARGS) |
|
{ |
|
|
|
post_fname(mdoc); |
|
post_fa(mdoc); |
|
return(1); |
|
} |
|
|
|
static int |
post_fo(POST_ARGS) |
post_fo(POST_ARGS) |
{ |
{ |
|
|
hwarn_eq1(mdoc); |
hwarn_eq1(mdoc); |
bwarn_ge1(mdoc); |
bwarn_ge1(mdoc); |
|
if (mdoc->last->type == MDOC_HEAD && mdoc->last->nchild) |
|
post_fname(mdoc); |
return(1); |
return(1); |
} |
} |
|
|
Line 1960 post_sh_see_also(POST_ARGS) |
|
Line 1989 post_sh_see_also(POST_ARGS) |
|
mdoc->parse, n->line, n->pos, |
mdoc->parse, n->line, n->pos, |
"%s(%s) after %s(%s)", name, |
"%s(%s) after %s(%s)", name, |
sec, lastname, lastsec); |
sec, lastname, lastsec); |
else if (cmp == 0 && strcmp(lastname, name) > 0) |
else if (cmp == 0 && |
|
strcasecmp(lastname, name) > 0) |
mandoc_vmsg(MANDOCERR_XR_ORDER, |
mandoc_vmsg(MANDOCERR_XR_ORDER, |
mdoc->parse, n->line, n->pos, |
mdoc->parse, n->line, n->pos, |
"%s after %s", name, lastname); |
"%s after %s", name, lastname); |