version 1.63, 2014/09/26 01:21:07 |
version 1.64, 2014/09/26 05:01:44 |
Line 313 makeextralist(int flags, const char *src |
|
Line 313 makeextralist(int flags, const char *src |
|
{ |
{ |
wchar_t *dst, *d; |
wchar_t *dst, *d; |
size_t len; |
size_t len; |
|
const wchar_t *s; |
|
|
len = strlen(src); |
len = strlen(src); |
if ((dst = calloc(len + MAXEXTRAS, sizeof(*dst))) == NULL) |
if ((dst = calloc(len + MAXEXTRAS, sizeof(*dst))) == NULL) |
Line 327 makeextralist(int flags, const char *src |
|
Line 328 makeextralist(int flags, const char *src |
|
d = dst + wcslen(dst); |
d = dst + wcslen(dst); |
|
|
if (flags & VIS_GLOB) |
if (flags & VIS_GLOB) |
for (const wchar_t *s = char_glob; *s; *d++ = *s++) |
for (s = char_glob; *s; *d++ = *s++) |
continue; |
continue; |
|
|
if (flags & VIS_SHELL) |
if (flags & VIS_SHELL) |
for (const wchar_t *s = char_shell; *s; *d++ = *s++) |
for (s = char_shell; *s; *d++ = *s++) |
continue; |
continue; |
|
|
if (flags & VIS_SP) *d++ = L' '; |
if (flags & VIS_SP) *d++ = L' '; |