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

Diff for /src/usr.bin/sed/compile.c between version 1.40 and 1.41

version 1.40, 2015/10/26 22:24:44 version 1.41, 2017/01/20 10:26:16
Line 520 
Line 520 
                         } else if (*p == '\n') {                          } else if (*p == '\n') {
                                 error(COMPILE,                                  error(COMPILE,
 "unescaped newline inside substitute pattern");  "unescaped newline inside substitute pattern");
                                 /* NOTREACHED */  
                         }                          }
                         *sp++ = *p;                          *sp++ = *p;
                 }                  }
                 size += sp - op;                  size += sp - op;
         } while ((p = cu_fgets(&lbuf, &bufsize)));          } while ((p = cu_fgets(&lbuf, &bufsize)));
         error(COMPILE, "unterminated substitute in regular expression");          error(COMPILE, "unterminated substitute in regular expression");
         /* NOTREACHED */  
 }  }
   
 /*  /*
Line 578 
Line 576 
                         p++;                          p++;
 #ifdef HISTORIC_PRACTICE  #ifdef HISTORIC_PRACTICE
                         if (*p != ' ') {                          if (*p != ' ') {
                                 error(WARNING, "space missing before w wfile");                                  warning("space missing before w wfile");
                                 return (p);                                  return (p);
                         }                          }
 #endif  #endif
Line 750 
Line 748 
                 *s = '\0';                  *s = '\0';
         }          }
         if (ws)          if (ws)
                 error(WARNING, "whitespace after %s", ctype);                  warning("whitespace after %s", ctype);
         len = s - start + 1;          len = s - start + 1;
         if (semi)          if (semi)
                 *semi = s;                  *semi = s;
Line 854 
Line 852 
                 for (lh = labels[i]; lh != NULL; lh = next) {                  for (lh = labels[i]; lh != NULL; lh = next) {
                         next = lh->lh_next;                          next = lh->lh_next;
                         if (!lh->lh_ref)                          if (!lh->lh_ref)
                                 error(WARNING, "unused label '%s'",                                  warning("unused label '%s'",
                                     lh->lh_cmd->t);                                      lh->lh_cmd->t);
                         free(lh);                          free(lh);
                 }                  }

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41