static int pre_fo(DECL_ARGS) { switch (n->type) { case ROFFT_BLOCK: pre_syn(n); break; case ROFFT_HEAD: if (n->child == NULL) return 0; if (NODE_SYNPRETTY & n->flags) print_block(".HP 4n", MMAN_nl); font_push('B'); break; case ROFFT_BODY: outflags &= ~(MMAN_spc | MMAN_nl); print_word("("); outflags &= ~MMAN_spc; break; default: break; } return 1; }
static int pre_nm(DECL_ARGS) { char *name; if (MDOC_BLOCK == n->type) { outflags |= MMAN_Bk; pre_syn(n); } if (MDOC_ELEM != n->type && MDOC_HEAD != n->type) return(1); name = n->child ? n->child->string : meta->name; if (NULL == name) return(0); if (MDOC_HEAD == n->type) { if (NULL == n->parent->prev) outflags |= MMAN_sp; print_block(".HP", 0); printf(" %zun", strlen(name) + 1); outflags |= MMAN_nl; } font_push('B'); if (NULL == n->child) print_word(meta->name); return(1); }
static int pre_fn(DECL_ARGS) { pre_syn(n); n = n->child; if (NULL == n) return 0; if (NODE_SYNPRETTY & n->flags) print_block(".HP 4n", MMAN_nl); font_push('B'); print_node(meta, n); font_pop(); outflags &= ~MMAN_spc; print_word("("); outflags &= ~MMAN_spc; n = n->next; if (NULL != n) pre_fa(meta, n); return 0; }
static int pre_nm(DECL_ARGS) { char *name; if (n->type == ROFFT_BLOCK) { outflags |= MMAN_Bk; pre_syn(n); } if (n->type != ROFFT_ELEM && n->type != ROFFT_HEAD) return 1; name = n->child ? n->child->string : meta->name; if (NULL == name) return 0; if (n->type == ROFFT_HEAD) { if (NULL == n->parent->prev) outflags |= MMAN_sp; print_block(".HP", 0); printf(" %zun", strlen(name) + 1); outflags |= MMAN_nl; } font_push('B'); if (NULL == n->child) print_word(meta->name); return 1; }
static int pre_Ft(DECL_ARGS) { pre_syn(n); font_push('I'); return 1; }
static int pre_fd(DECL_ARGS) { pre_syn(n); font_push('B'); return 1; }
static int pre_ft(DECL_ARGS) { pre_syn(n); font_push('I'); return(1); }
static int pre_in(DECL_ARGS) { if (NODE_SYNPRETTY & n->flags) { pre_syn(n); font_push('B'); print_word("#include <"); outflags &= ~MMAN_spc; } else { print_word("<"); outflags &= ~MMAN_spc; font_push('I'); } return 1; }
static int pre_vt(DECL_ARGS) { if (NODE_SYNPRETTY & n->flags) { switch (n->type) { case ROFFT_BLOCK: pre_syn(n); return 1; case ROFFT_BODY: break; default: return 0; } } font_push('I'); return 1; }
static int pre_vt(DECL_ARGS) { if (MDOC_SYNPRETTY & n->flags) { switch (n->type) { case MDOC_BLOCK: pre_syn(n); return(1); case MDOC_BODY: break; default: return(0); } } font_push('I'); return(1); }
static int pre_fo(DECL_ARGS) { switch (n->type) { case MDOC_BLOCK: pre_syn(n); break; case MDOC_HEAD: if (MDOC_SYNPRETTY & n->flags) print_block(".HP 4n", MMAN_nl); font_push('B'); break; case MDOC_BODY: outflags &= ~MMAN_spc; print_word("("); outflags &= ~MMAN_spc; break; default: break; } return(1); }