version 1.66, 2013/06/07 01:01:34 |
version 1.67, 2013/06/07 04:51:26 |
Line 1446 parse_mdoc_St(struct of *of, const struct mdoc_node *n |
|
Line 1446 parse_mdoc_St(struct of *of, const struct mdoc_node *n |
|
static int |
static int |
parse_mdoc_Xr(struct of *of, const struct mdoc_node *n) |
parse_mdoc_Xr(struct of *of, const struct mdoc_node *n) |
{ |
{ |
|
char *cp; |
|
|
if (NULL == (n = n->child)) |
if (NULL == (n = n->child)) |
return(0); |
return(0); |
|
|
putkey(of, n->string, TYPE_Xr); |
if (NULL == n->next) { |
return(1); |
putkey(of, n->string, TYPE_Xr); |
|
return(0); |
|
} |
|
|
|
if (-1 == asprintf(&cp, "%s(%s)", n->string, n->next->string)) { |
|
perror(NULL); |
|
exit((int)MANDOCLEVEL_SYSERR); |
|
} |
|
putkey(of, cp, TYPE_Xr); |
|
free(cp); |
|
return(0); |
} |
} |
|
|
static int |
static int |