version 1.158, 2010/06/26 15:36:37 |
version 1.160, 2010/06/27 16:18:13 |
Line 73 static void termp____post(DECL_ARGS); |
|
Line 73 static void termp____post(DECL_ARGS); |
|
static void termp_an_post(DECL_ARGS); |
static void termp_an_post(DECL_ARGS); |
static void termp_aq_post(DECL_ARGS); |
static void termp_aq_post(DECL_ARGS); |
static void termp_bd_post(DECL_ARGS); |
static void termp_bd_post(DECL_ARGS); |
|
static void termp_bk_post(DECL_ARGS); |
static void termp_bl_post(DECL_ARGS); |
static void termp_bl_post(DECL_ARGS); |
static void termp_bq_post(DECL_ARGS); |
static void termp_bq_post(DECL_ARGS); |
static void termp_brq_post(DECL_ARGS); |
static void termp_brq_post(DECL_ARGS); |
Line 97 static int termp_ap_pre(DECL_ARGS); |
|
Line 98 static int termp_ap_pre(DECL_ARGS); |
|
static int termp_aq_pre(DECL_ARGS); |
static int termp_aq_pre(DECL_ARGS); |
static int termp_bd_pre(DECL_ARGS); |
static int termp_bd_pre(DECL_ARGS); |
static int termp_bf_pre(DECL_ARGS); |
static int termp_bf_pre(DECL_ARGS); |
|
static int termp_bk_pre(DECL_ARGS); |
static int termp_bl_pre(DECL_ARGS); |
static int termp_bl_pre(DECL_ARGS); |
static int termp_bold_pre(DECL_ARGS); |
static int termp_bold_pre(DECL_ARGS); |
static int termp_bq_pre(DECL_ARGS); |
static int termp_bq_pre(DECL_ARGS); |
Line 236 static const struct termact termacts[MDOC_MAX] = { |
|
Line 238 static const struct termact termacts[MDOC_MAX] = { |
|
{ NULL, NULL }, /* Fc */ |
{ NULL, NULL }, /* Fc */ |
{ termp_op_pre, termp_op_post }, /* Oo */ |
{ termp_op_pre, termp_op_post }, /* Oo */ |
{ NULL, NULL }, /* Oc */ |
{ NULL, NULL }, /* Oc */ |
{ NULL, NULL }, /* Bk */ |
{ termp_bk_pre, termp_bk_post }, /* Bk */ |
{ NULL, NULL }, /* Ek */ |
{ NULL, NULL }, /* Ek */ |
{ termp_bt_pre, NULL }, /* Bt */ |
{ termp_bt_pre, NULL }, /* Bt */ |
{ NULL, NULL }, /* Hf */ |
{ NULL, NULL }, /* Hf */ |
Line 1276 synopsis_pre(struct termp *p, const struct mdoc_node * |
|
Line 1278 synopsis_pre(struct termp *p, const struct mdoc_node * |
|
* Obviously, if we're not in a SYNOPSIS or no prior macros |
* Obviously, if we're not in a SYNOPSIS or no prior macros |
* exist, do nothing. |
* exist, do nothing. |
*/ |
*/ |
if (NULL == n->prev || SEC_SYNOPSIS != n->sec) |
if (NULL == n->prev || ! (MDOC_SYNPRETTY & n->flags)) |
return; |
return; |
|
|
/* |
/* |
Line 1541 termp_fn_pre(DECL_ARGS) |
|
Line 1543 termp_fn_pre(DECL_ARGS) |
|
|
|
term_word(p, ")"); |
term_word(p, ")"); |
|
|
if (SEC_SYNOPSIS == n->sec) |
if (MDOC_SYNPRETTY & n->flags) |
term_word(p, ";"); |
term_word(p, ";"); |
|
|
return(0); |
return(0); |
Line 1818 termp_in_pre(DECL_ARGS) |
|
Line 1820 termp_in_pre(DECL_ARGS) |
|
|
|
synopsis_pre(p, n); |
synopsis_pre(p, n); |
|
|
if (SEC_SYNOPSIS == n->sec && MDOC_LINE & n->flags) { |
if (MDOC_SYNPRETTY & n->flags && MDOC_LINE & n->flags) { |
term_fontpush(p, TERMFONT_BOLD); |
term_fontpush(p, TERMFONT_BOLD); |
term_word(p, "#include"); |
term_word(p, "#include"); |
term_word(p, "<"); |
term_word(p, "<"); |
|
|
termp_in_post(DECL_ARGS) |
termp_in_post(DECL_ARGS) |
{ |
{ |
|
|
if (SEC_SYNOPSIS == n->sec) |
if (MDOC_SYNPRETTY & n->flags) |
term_fontpush(p, TERMFONT_BOLD); |
term_fontpush(p, TERMFONT_BOLD); |
|
|
p->flags |= TERMP_NOSPACE; |
p->flags |= TERMP_NOSPACE; |
term_word(p, ">"); |
term_word(p, ">"); |
|
|
if (SEC_SYNOPSIS == n->sec) |
if (MDOC_SYNPRETTY & n->flags) |
term_fontpop(p); |
term_fontpop(p); |
} |
} |
|
|
Line 1985 termp_fo_post(DECL_ARGS) |
|
Line 1987 termp_fo_post(DECL_ARGS) |
|
p->flags |= TERMP_NOSPACE; |
p->flags |= TERMP_NOSPACE; |
term_word(p, ")"); |
term_word(p, ")"); |
|
|
if (SEC_SYNOPSIS == n->sec) { |
if (MDOC_SYNPRETTY & n->flags) { |
p->flags |= TERMP_NOSPACE; |
p->flags |= TERMP_NOSPACE; |
term_word(p, ";"); |
term_word(p, ";"); |
} |
} |
Line 2101 termp_lk_pre(DECL_ARGS) |
|
Line 2103 termp_lk_pre(DECL_ARGS) |
|
return(0); |
return(0); |
} |
} |
|
|
|
|
|
/* ARGSUSED */ |
|
static int |
|
termp_bk_pre(DECL_ARGS) |
|
{ |
|
|
|
p->flags |= TERMP_PREKEEP; |
|
return(1); |
|
} |
|
|
|
|
|
/* ARGSUSED */ |
|
static void |
|
termp_bk_post(DECL_ARGS) |
|
{ |
|
|
|
p->flags &= ~(TERMP_KEEP | TERMP_PREKEEP); |
|
} |
|
|
/* ARGSUSED */ |
/* ARGSUSED */ |
static int |
static int |