version 1.114, 2014/12/23 08:15:37 |
version 1.115, 2014/12/23 09:31:17 |
|
|
}; |
}; |
|
|
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); |
|
|
} |
} |
} |
} |
|
|
|
|
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) |
{ |
{ |
|
|
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; |
|
|
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; |
} |
} |
|
|