[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.20 and 1.21

version 1.20, 2004/07/10 11:41:26 version 1.21, 2005/04/11 07:11:44
Line 262 
Line 262 
                         cmd->t = duptoeol(p, "w command", NULL);                          cmd->t = duptoeol(p, "w command", NULL);
                         if (aflag)                          if (aflag)
                                 cmd->u.fd = -1;                                  cmd->u.fd = -1;
                         else if ((cmd->u.fd = open(p,                          else if ((cmd->u.fd = open(p,
                             O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,                              O_WRONLY|O_APPEND|O_CREAT|O_TRUNC,
                             DEFFILEMODE)) == -1)                              DEFFILEMODE)) == -1)
                                 err(FATAL, "%s: %s", p, strerror(errno));                                  err(FATAL, "%s: %s", p, strerror(errno));
Line 686 
Line 686 
                 a->type = AT_LAST;                  a->type = AT_LAST;
                 return (p + 1);                  return (p + 1);
                                                 /* Line number */                                                  /* Line number */
         case '0': case '1': case '2': case '3': case '4':          case '0': case '1': case '2': case '3': case '4':
         case '5': case '6': case '7': case '8': case '9':          case '5': case '6': case '7': case '8': case '9':
                 a->type = AT_LINE;                  a->type = AT_LINE;
                 a->u.l = strtoul(p, &end, 10);                  a->u.l = strtoul(p, &end, 10);
Line 808 
Line 808 
         return (NULL);          return (NULL);
 }  }
   
 /*  /*
  * Warn about any unused labels.  As a side effect, release the label hash   * Warn about any unused labels.  As a side effect, release the label hash
  * table space.   * table space.
  */   */

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21