[BACK]Return to compile.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libterminfo

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

Diff for /src/lib/libterminfo/compile.c between version 1.9 and 1.10

version 1.9, 2013/06/07 13:16:18 version 1.10, 2017/02/11 14:57:15
Line 323  encode_string(const char *term, const ch
Line 323  encode_string(const char *term, const ch
         last = '\0';          last = '\0';
         /* Convert escape codes */          /* Convert escape codes */
         while ((ch = *str++) != '\0') {          while ((ch = *str++) != '\0') {
                   if (ch == '\n') {
                           /* Following a newline, strip leading whitespace from
                            * capability strings. */
                           while (isspace((unsigned char)*str))
                                   str++;
                           continue;
                   }
                 if (slash == 0 && ch == '\\') {                  if (slash == 0 && ch == '\\') {
                         slash = 1;                          slash = 1;
                         continue;                          continue;

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

CVSweb <webmaster@jp.NetBSD.org>