version 1.25, 2009/07/12 20:24:24 |
version 1.26, 2009/07/12 20:30:35 |
Line 46 static int post_nm(POST_ARGS); |
|
Line 46 static int post_nm(POST_ARGS); |
|
static int post_os(POST_ARGS); |
static int post_os(POST_ARGS); |
static int post_prol(POST_ARGS); |
static int post_prol(POST_ARGS); |
static int post_sh(POST_ARGS); |
static int post_sh(POST_ARGS); |
|
static int post_st(POST_ARGS); |
static int post_std(POST_ARGS); |
static int post_std(POST_ARGS); |
|
|
static int pre_bd(PRE_ARGS); |
static int pre_bd(PRE_ARGS); |
Line 89 const struct actions mdoc_actions[MDOC_MAX] = { |
|
Line 90 const struct actions mdoc_actions[MDOC_MAX] = { |
|
{ NULL, NULL }, /* Ot */ |
{ NULL, NULL }, /* Ot */ |
{ NULL, NULL }, /* Pa */ |
{ NULL, NULL }, /* Pa */ |
{ NULL, post_std }, /* Rv */ |
{ NULL, post_std }, /* Rv */ |
{ NULL, NULL }, /* St */ |
{ NULL, post_st }, /* St */ |
{ NULL, NULL }, /* Va */ |
{ NULL, NULL }, /* Va */ |
{ NULL, NULL }, /* Vt */ |
{ NULL, NULL }, /* Vt */ |
{ NULL, NULL }, /* Xr */ |
{ NULL, NULL }, /* Xr */ |
Line 285 post_nm(POST_ARGS) |
|
Line 286 post_nm(POST_ARGS) |
|
if (NULL == (m->meta.name = strdup(buf))) |
if (NULL == (m->meta.name = strdup(buf))) |
return(mdoc_nerr(m, m->last, EMALLOC)); |
return(mdoc_nerr(m, m->last, EMALLOC)); |
|
|
|
return(1); |
|
} |
|
|
|
|
|
static int |
|
post_st(POST_ARGS) |
|
{ |
|
const char *p; |
|
|
|
assert(MDOC_TEXT == m->last->child->type); |
|
p = mdoc_a2st(m->last->child->string); |
|
assert(p); |
|
free(m->last->child->string); |
|
m->last->child->string = strdup(p); |
|
if (NULL == m->last->child->string) |
|
return(mdoc_nerr(m, m->last, EMALLOC)); |
return(1); |
return(1); |
} |
} |
|
|