version 1.45, 2015/04/04 17:47:18 |
version 1.48, 2015/09/26 00:54:04 |
Line 62 static struct termp * |
|
Line 62 static struct termp * |
|
ascii_init(enum termenc enc, const struct mchars *mchars, |
ascii_init(enum termenc enc, const struct mchars *mchars, |
const struct manoutput *outopts) |
const struct manoutput *outopts) |
{ |
{ |
|
#if HAVE_WCHAR |
char *v; |
char *v; |
|
#endif |
struct termp *p; |
struct termp *p; |
|
|
p = mandoc_calloc(1, sizeof(struct termp)); |
p = mandoc_calloc(1, sizeof(struct termp)); |
|
|
p->symtab = mchars; |
p->symtab = mchars; |
|
p->line = 1; |
p->tabwidth = 5; |
p->tabwidth = 5; |
p->defrmargin = p->lastrmargin = 78; |
p->defrmargin = p->lastrmargin = 78; |
p->fontq = mandoc_reallocarray(NULL, |
p->fontq = mandoc_reallocarray(NULL, |
Line 161 ascii_sepline(void *arg) |
|
Line 164 ascii_sepline(void *arg) |
|
size_t i; |
size_t i; |
|
|
p = (struct termp *)arg; |
p = (struct termp *)arg; |
|
p->line += 3; |
putchar('\n'); |
putchar('\n'); |
for (i = 0; i < p->defrmargin; i++) |
for (i = 0; i < p->defrmargin; i++) |
putchar('-'); |
putchar('-'); |
|
|
ascii_endline(struct termp *p) |
ascii_endline(struct termp *p) |
{ |
{ |
|
|
|
p->line++; |
putchar('\n'); |
putchar('\n'); |
} |
} |
|
|
Line 255 ascii_hspan(const struct termp *p, const struct roffsu |
|
Line 260 ascii_hspan(const struct termp *p, const struct roffsu |
|
break; |
break; |
default: |
default: |
abort(); |
abort(); |
/* NOTREACHED */ |
|
} |
} |
return(r > 0.0 ? r + 0.01 : r - 0.01); |
return(r > 0.0 ? r + 0.01 : r - 0.01); |
} |
} |
|
|
locale_endline(struct termp *p) |
locale_endline(struct termp *p) |
{ |
{ |
|
|
|
p->line++; |
putwchar(L'\n'); |
putwchar(L'\n'); |
} |
} |
|
|