version 1.161, 2014/12/23 08:15:53 |
version 1.162, 2014/12/23 09:31:46 |
|
|
}; |
}; |
|
|
static int a2width(const struct termp *, const char *); |
static int a2width(const struct termp *, const char *); |
static size_t a2height(const struct termp *, const char *); |
|
|
|
static void print_man_nodelist(DECL_ARGS); |
static void print_man_nodelist(DECL_ARGS); |
static void print_man_node(DECL_ARGS); |
static void print_man_node(DECL_ARGS); |
Line 184 terminal_man(void *arg, const struct man *man) |
|
Line 183 terminal_man(void *arg, const struct man *man) |
|
} |
} |
} |
} |
|
|
|
|
static size_t |
|
a2height(const struct termp *p, const char *cp) |
|
{ |
|
struct roffsu su; |
|
|
|
if ( ! a2roffsu(cp, &su, SCALE_VS)) |
|
SCALE_VS_INIT(&su, atoi(cp)); |
|
|
|
return(term_vspan(p, &su)); |
|
} |
|
|
|
static int |
static int |
a2width(const struct termp *p, const char *cp) |
a2width(const struct termp *p, const char *cp) |
{ |
{ |
Line 464 pre_in(DECL_ARGS) |
|
Line 451 pre_in(DECL_ARGS) |
|
static int |
static int |
pre_sp(DECL_ARGS) |
pre_sp(DECL_ARGS) |
{ |
{ |
|
struct roffsu su; |
char *s; |
char *s; |
size_t i, len; |
size_t i, len; |
int neg; |
int neg; |
Line 501 pre_sp(DECL_ARGS) |
|
Line 489 pre_sp(DECL_ARGS) |
|
neg = 1; |
neg = 1; |
s++; |
s++; |
} |
} |
len = a2height(p, s); |
if ( ! a2roffsu(s, &su, SCALE_VS)) |
|
su.scale = 1.0; |
|
len = term_vspan(p, &su); |
break; |
break; |
} |
} |
|
|