Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/localedef/ctype.c
Show First 20 Lines • Show All 218 Lines • ▼ Show 20 Lines | add_ctype_range(wchar_t end) | ||||
last_ctype = end; | last_ctype = end; | ||||
} | } | ||||
/* | /* | ||||
* A word about widths: if the width mask is specified, then libc | * A word about widths: if the width mask is specified, then libc | ||||
* unconditionally honors it. Otherwise, it assumes printable | * unconditionally honors it. Otherwise, it assumes printable | ||||
* characters have width 1, and non-printable characters have width | * characters have width 1, and non-printable characters have width | ||||
* -1 (except for NULL which is special with with 0). Hence, we have | * -1 (except for NULL which is special with width 0). Hence, we have | ||||
* no need to inject defaults here -- the "default" unset value of 0 | * no need to inject defaults here -- the "default" unset value of 0 | ||||
* indicates that libc should use its own logic in wcwidth as described. | * indicates that libc should use its own logic in wcwidth as described. | ||||
*/ | */ | ||||
void | void | ||||
add_width(int wc, int width) | add_width(int wc, int width) | ||||
{ | { | ||||
ctype_node_t *ctn; | ctype_node_t *ctn; | ||||
▲ Show 20 Lines • Show All 228 Lines • Show Last 20 Lines |