version 1.42, 2014/12/31 16:52:40 |
version 1.43, 2015/02/16 14:11:41 |
Line 63 ascii_init(enum termenc enc, const struct mchars *mcha |
|
Line 63 ascii_init(enum termenc enc, const struct mchars *mcha |
|
const char *toks[5]; |
const char *toks[5]; |
char *v; |
char *v; |
struct termp *p; |
struct termp *p; |
|
const char *errstr; |
|
int num; |
|
|
p = mandoc_calloc(1, sizeof(struct termp)); |
p = mandoc_calloc(1, sizeof(struct termp)); |
|
|
Line 109 ascii_init(enum termenc enc, const struct mchars *mcha |
|
Line 111 ascii_init(enum termenc enc, const struct mchars *mcha |
|
while (outopts && *outopts) |
while (outopts && *outopts) |
switch (getsubopt(&outopts, UNCONST(toks), &v)) { |
switch (getsubopt(&outopts, UNCONST(toks), &v)) { |
case 0: |
case 0: |
p->defindent = (size_t)atoi(v); |
num = strtonum(v, 0, 1000, &errstr); |
|
if (!errstr) |
|
p->defindent = num; |
break; |
break; |
case 1: |
case 1: |
p->defrmargin = (size_t)atoi(v); |
num = strtonum(v, 0, 1000, &errstr); |
|
if (!errstr) |
|
p->defrmargin = num; |
break; |
break; |
case 2: |
case 2: |
/* |
/* |