version 1.114, 2017/05/07 17:31:45 |
version 1.118, 2017/06/06 15:01:04 |
Line 101 static int pre_in(DECL_ARGS); |
|
Line 101 static int pre_in(DECL_ARGS); |
|
static int pre_it(DECL_ARGS); |
static int pre_it(DECL_ARGS); |
static int pre_lk(DECL_ARGS); |
static int pre_lk(DECL_ARGS); |
static int pre_li(DECL_ARGS); |
static int pre_li(DECL_ARGS); |
static void pre_ll(DECL_ARGS); |
|
static int pre_nm(DECL_ARGS); |
static int pre_nm(DECL_ARGS); |
static int pre_no(DECL_ARGS); |
static int pre_no(DECL_ARGS); |
static int pre_ns(DECL_ARGS); |
static int pre_ns(DECL_ARGS); |
|
static void pre_onearg(DECL_ARGS); |
static int pre_pp(DECL_ARGS); |
static int pre_pp(DECL_ARGS); |
static int pre_rs(DECL_ARGS); |
static int pre_rs(DECL_ARGS); |
static int pre_sm(DECL_ARGS); |
static int pre_sm(DECL_ARGS); |
Line 126 static void print_node(DECL_ARGS); |
|
Line 126 static void print_node(DECL_ARGS); |
|
|
|
static const void_fp roff_manacts[ROFF_MAX] = { |
static const void_fp roff_manacts[ROFF_MAX] = { |
pre_br, |
pre_br, |
|
pre_onearg, |
pre_ft, |
pre_ft, |
pre_ll, |
pre_onearg, |
|
pre_onearg, |
pre_sp, |
pre_sp, |
pre_ta, |
pre_ta, |
|
pre_onearg, |
}; |
}; |
|
|
static const struct manact __manacts[MDOC_MAX - MDOC_Dd] = { |
static const struct manact __manacts[MDOC_MAX - MDOC_Dd] = { |
Line 1526 post_lb(DECL_ARGS) |
|
Line 1529 post_lb(DECL_ARGS) |
|
static int |
static int |
pre_lk(DECL_ARGS) |
pre_lk(DECL_ARGS) |
{ |
{ |
const struct roff_node *link, *descr; |
const struct roff_node *link, *descr, *punct; |
int display; |
int display; |
|
|
if ((link = n->child) == NULL) |
if ((link = n->child) == NULL) |
return 0; |
return 0; |
|
|
|
/* Find beginning of trailing punctuation. */ |
|
punct = n->last; |
|
while (punct != link && punct->flags & NODE_DELIMC) |
|
punct = punct->prev; |
|
punct = punct->next; |
|
|
/* Link text. */ |
/* Link text. */ |
if ((descr = link->next) != NULL && !(descr->flags & NODE_DELIMC)) { |
if ((descr = link->next) != NULL && descr != punct) { |
font_push('I'); |
font_push('I'); |
while (descr != NULL && !(descr->flags & NODE_DELIMC)) { |
while (descr != punct) { |
print_word(descr->string); |
print_word(descr->string); |
descr = descr->next; |
descr = descr->next; |
} |
} |
Line 1555 pre_lk(DECL_ARGS) |
|
Line 1564 pre_lk(DECL_ARGS) |
|
font_pop(); |
font_pop(); |
|
|
/* Trailing punctuation. */ |
/* Trailing punctuation. */ |
while (descr != NULL) { |
while (punct != NULL) { |
print_word(descr->string); |
print_word(punct->string); |
descr = descr->next; |
punct = punct->next; |
} |
} |
if (display) |
if (display) |
print_line(".RE", MMAN_nl); |
print_line(".RE", MMAN_nl); |
Line 1565 pre_lk(DECL_ARGS) |
|
Line 1574 pre_lk(DECL_ARGS) |
|
} |
} |
|
|
static void |
static void |
pre_ll(DECL_ARGS) |
pre_onearg(DECL_ARGS) |
{ |
{ |
print_line(".ll", 0); |
outflags |= MMAN_nl; |
|
print_word("."); |
|
outflags &= ~MMAN_spc; |
|
print_word(roff_name[n->tok]); |
if (n->child != NULL) |
if (n->child != NULL) |
print_word(n->child->string); |
print_word(n->child->string); |
outflags |= MMAN_nl; |
outflags |= MMAN_nl; |
|
if (n->tok == ROFF_ce) |
|
for (n = n->child->next; n != NULL; n = n->next) |
|
print_node(meta, n); |
} |
} |
|
|
static int |
static int |