version 1.44, 2009/03/08 13:52:29 |
version 1.49, 2009/03/08 20:57:35 |
Line 120 DECL_PREPOST(termp_fo); |
|
Line 120 DECL_PREPOST(termp_fo); |
|
DECL_PREPOST(termp_ft); |
DECL_PREPOST(termp_ft); |
DECL_PREPOST(termp_in); |
DECL_PREPOST(termp_in); |
DECL_PREPOST(termp_it); |
DECL_PREPOST(termp_it); |
|
DECL_PREPOST(termp_lb); |
DECL_PREPOST(termp_op); |
DECL_PREPOST(termp_op); |
DECL_PREPOST(termp_pf); |
DECL_PREPOST(termp_pf); |
DECL_PREPOST(termp_pq); |
DECL_PREPOST(termp_pq); |
Line 129 DECL_PREPOST(termp_ss); |
|
Line 130 DECL_PREPOST(termp_ss); |
|
DECL_PREPOST(termp_sq); |
DECL_PREPOST(termp_sq); |
DECL_PREPOST(termp_vt); |
DECL_PREPOST(termp_vt); |
|
|
|
DECL_PRE(termp_ap); |
DECL_PRE(termp_ar); |
DECL_PRE(termp_ar); |
DECL_PRE(termp_at); |
DECL_PRE(termp_at); |
DECL_PRE(termp_bf); |
DECL_PRE(termp_bf); |
Line 164 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 273 const struct termact __termacts[MDOC_MAX] = { |
|
Line 274 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 */ |
{ termp_lb_pre, termp_lb_post }, /* Lb */ |
|
{ termp_ap_pre, NULL }, /* Lb */ |
|
{ termp_pp_pre, NULL }, /* Pp */ |
}; |
}; |
|
|
const struct termact *termacts = __termacts; |
const struct termact *termacts = __termacts; |
Line 316 arg_listtype(const struct mdoc_node *n) |
|
Line 319 arg_listtype(const struct mdoc_node *n) |
|
|
|
assert(MDOC_BLOCK == n->type); |
assert(MDOC_BLOCK == n->type); |
|
|
len = n->args ? n->args->argc : 0; |
len = (int)(n->args ? n->args->argc : 0); |
|
|
for (i = 0; i < len; i++) |
for (i = 0; i < len; i++) |
switch (n->args->argv[i].arg) { |
switch (n->args->argv[i].arg) { |
Line 970 termp_bt_pre(DECL_ARGS) |
|
Line 973 termp_bt_pre(DECL_ARGS) |
|
|
|
|
|
/* ARGSUSED */ |
/* ARGSUSED */ |
|
static int |
|
termp_lb_pre(DECL_ARGS) |
|
{ |
|
const char *lb; |
|
|
|
if (NULL == node->child) |
|
errx(1, "expected text line argument"); |
|
if (MDOC_TEXT != node->child->type) |
|
errx(1, "expected text line argument"); |
|
|
|
if ((lb = mdoc_a2lib(node->child->string))) { |
|
word(p, lb); |
|
return(0); |
|
} |
|
|
|
word(p, "library"); |
|
return(1); |
|
} |
|
|
|
|
|
/* ARGSUSED */ |
static void |
static void |
termp_lb_post(DECL_ARGS) |
termp_lb_post(DECL_ARGS) |
{ |
{ |
Line 1203 termp_bd_pre(DECL_ARGS) |
|
Line 1227 termp_bd_pre(DECL_ARGS) |
|
|
|
i = arg_getattr(MDOC_Offset, node->parent); |
i = arg_getattr(MDOC_Offset, node->parent); |
if (-1 != i) { |
if (-1 != i) { |
if (1 != node->args->argv[i].sz) |
if (1 != node->parent->args->argv[i].sz) |
errx(1, "expected single value"); |
errx(1, "expected single value"); |
p->offset += arg_offset(&node->args->argv[i]); |
p->offset += arg_offset(&node->parent->args->argv[i]); |
} |
} |
|
|
switch (type) { |
switch (type) { |
Line 1674 termp_sm_pre(DECL_ARGS) |
|
Line 1698 termp_sm_pre(DECL_ARGS) |
|
#endif |
#endif |
|
|
return(0); |
return(0); |
|
} |
|
|
|
|
|
/* ARGSUSED */ |
|
static int |
|
termp_ap_pre(DECL_ARGS) |
|
{ |
|
|
|
p->flags |= TERMP_NOSPACE; |
|
word(p, "\\(aq"); |
|
p->flags |= TERMP_NOSPACE; |
|
return(1); |
} |
} |
|
|
|
|