version 1.251, 2014/10/11 21:34:04 |
version 1.252, 2014/10/13 14:01:21 |
Line 1004 post_eoln(POST_ARGS) |
|
Line 1004 post_eoln(POST_ARGS) |
|
static int |
static int |
post_fname(POST_ARGS) |
post_fname(POST_ARGS) |
{ |
{ |
const struct mdoc_node *n; |
const struct mdoc_node *n; |
size_t pos; |
const char *cp; |
|
size_t pos; |
|
|
n = mdoc->last->child; |
n = mdoc->last->child; |
pos = strcspn(n->string, "()"); |
pos = strcspn(n->string, "()"); |
if (n->string[pos] != '\0') |
cp = n->string + pos; |
|
if ( ! (cp[0] == '\0' || (cp[0] == '(' && cp[1] == '*'))) |
mandoc_msg(MANDOCERR_FN_PAREN, mdoc->parse, |
mandoc_msg(MANDOCERR_FN_PAREN, mdoc->parse, |
n->line, n->pos + pos, n->string); |
n->line, n->pos + pos, n->string); |
return(1); |
return(1); |