version 1.219, 2014/03/30 21:28:01 |
version 1.220, 2014/04/05 21:18:19 |
Line 630 term_setwidth(struct termp *p, const char *wstr) |
|
Line 630 term_setwidth(struct termp *p, const char *wstr) |
|
size_t width; |
size_t width; |
int iop; |
int iop; |
|
|
|
iop = 0; |
|
width = 0; |
if (NULL != wstr) { |
if (NULL != wstr) { |
switch (*wstr) { |
switch (*wstr) { |
case ('+'): |
case ('+'): |
Line 641 term_setwidth(struct termp *p, const char *wstr) |
|
Line 643 term_setwidth(struct termp *p, const char *wstr) |
|
wstr++; |
wstr++; |
break; |
break; |
default: |
default: |
iop = 0; |
|
break; |
break; |
} |
} |
if ( ! a2roffsu(wstr, &su, SCALE_MAX)) { |
if (a2roffsu(wstr, &su, SCALE_MAX)) |
wstr = NULL; |
width = term_hspan(p, &su); |
|
else |
iop = 0; |
iop = 0; |
} |
|
} |
} |
width = (NULL != wstr) ? term_hspan(p, &su) : 0; |
|
(*p->setwidth)(p, iop, width); |
(*p->setwidth)(p, iop, width); |
} |
} |
|
|