[BACK]Return to process.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / sed

Diff for /src/usr.bin/sed/process.c between version 1.30 and 1.31

version 1.30, 2017/01/20 10:26:16 version 1.31, 2017/01/21 10:05:23
Line 393 
Line 393 
                         else                          else
                                 slen--;                                  slen--;
                         if (*s != '\0') {                          if (*s != '\0') {
                                 cspace(&SS, s++, 1, APPEND);                                  cspace(&SS, s++, 1, APPEND);
                                 le++;                                  le++;
                         }                          }
                         lastempty = 1;                          lastempty = 1;
Line 568 
Line 568 
                 else                  else
                         no = -1;                          no = -1;
                 if (no < 0) {           /* Ordinary character. */                  if (no < 0) {           /* Ordinary character. */
                         if (c == '\\' && (*src == '\\' || *src == '&'))                          if (c == '\\' && (*src == '\\' || *src == '&'))
                                 c = *src++;                                  c = *src++;
                         NEEDSP(1);                          NEEDSP(1);
                         *dst++ = c;                          *dst++ = c;
                         ++sp->len;                          ++sp->len;
                 } else if (match[no].rm_so != -1 && match[no].rm_eo != -1) {                  } else if (match[no].rm_so != -1 && match[no].rm_eo != -1) {
                         len = match[no].rm_eo - match[no].rm_so;                          len = match[no].rm_eo - match[no].rm_so;
                         NEEDSP(len);                          NEEDSP(len);
                         memmove(dst, string + match[no].rm_so, len);                          memmove(dst, string + match[no].rm_so, len);

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31