version 1.42, 2009/03/05 13:12:12 |
version 1.43, 2009/03/06 14:13:47 |
Line 166 DECL_PRE(termp_xr); |
|
Line 166 DECL_PRE(termp_xr); |
|
DECL_POST(termp___); |
DECL_POST(termp___); |
DECL_POST(termp_bl); |
DECL_POST(termp_bl); |
DECL_POST(termp_bx); |
DECL_POST(termp_bx); |
|
DECL_POST(termp_lb); |
|
|
const struct termact __termacts[MDOC_MAX] = { |
const struct termact __termacts[MDOC_MAX] = { |
{ NULL, NULL }, /* \" */ |
{ NULL, NULL }, /* \" */ |
Line 274 const struct termact __termacts[MDOC_MAX] = { |
|
Line 275 const struct termact __termacts[MDOC_MAX] = { |
|
{ NULL, NULL }, /* Hf */ |
{ NULL, NULL }, /* Hf */ |
{ NULL, NULL }, /* Fr */ |
{ NULL, NULL }, /* Fr */ |
{ termp_ud_pre, NULL }, /* Ud */ |
{ termp_ud_pre, NULL }, /* Ud */ |
|
{ NULL, termp_lb_post }, /* lb */ |
}; |
}; |
|
|
const struct termact *termacts = __termacts; |
const struct termact *termacts = __termacts; |
Line 721 termp_pp_pre(DECL_ARGS) |
|
Line 723 termp_pp_pre(DECL_ARGS) |
|
static int |
static int |
termp_st_pre(DECL_ARGS) |
termp_st_pre(DECL_ARGS) |
{ |
{ |
const char *tp; |
const char *cp; |
|
|
assert(1 == node->data.elem.argc); |
/* XXX - if child isn't text? */ |
|
if (node->child) |
tp = mdoc_st2a(node->data.elem.argv[0].arg); |
if ((cp = mdoc_a2st(node->child->data.text.string))) |
word(p, tp); |
word(p, cp); |
|
return(0); |
return(1); |
|
} |
} |
|
|
|
|
Line 968 termp_bt_pre(DECL_ARGS) |
|
Line 969 termp_bt_pre(DECL_ARGS) |
|
|
|
|
|
/* ARGSUSED */ |
/* ARGSUSED */ |
|
static void |
|
termp_lb_post(DECL_ARGS) |
|
{ |
|
|
|
newln(p); |
|
} |
|
|
|
|
|
/* ARGSUSED */ |
static int |
static int |
termp_ud_pre(DECL_ARGS) |
termp_ud_pre(DECL_ARGS) |
{ |
{ |
Line 1480 termp_in_post(DECL_ARGS) |
|
Line 1490 termp_in_post(DECL_ARGS) |
|
static int |
static int |
termp_at_pre(DECL_ARGS) |
termp_at_pre(DECL_ARGS) |
{ |
{ |
enum mdoc_att c; |
const char *att; |
|
|
c = ATT_DEFAULT; |
att = NULL; |
|
|
if (node->child) { |
if (node->child) { |
assert(MDOC_TEXT == node->child->type); |
assert(MDOC_TEXT == node->child->type); |
c = mdoc_atoatt(node->child->data.text.string); |
att = mdoc_a2att(node->child->data.text.string); |
} |
} |
|
|
word(p, mdoc_att2a(c)); |
if (NULL == att) |
|
att = "AT&T UNIX"; |
|
|
|
word(p, att); |
return(0); |
return(0); |
} |
} |
|
|