[BACK]Return to vis.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / gen

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/gen/vis.c between version 1.63 and 1.64

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' ';

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.64

CVSweb <webmaster@jp.NetBSD.org>