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

Diff for /src/usr.bin/awk/b.c between version 1.8 and 1.9

version 1.8, 1999/12/08 23:09:45 version 1.9, 2001/07/12 05:16:53
Line 492 
Line 492 
                                 s = ns;                                  s = ns;
                         else                          else
                                 s = cgoto(f, s, *q);                                  s = cgoto(f, s, *q);
                         if (s == 1)     /* no transition */                          if (s == 1) {   /* no transition */
                                 if (patlen >= 0) {                                  if (patlen >= 0) {
                                         patbeg = (char *) p;                                          patbeg = (char *) p;
                                         return(1);                                          return(1);
                                 }                                  }
                                 else                                  else
                                         goto nextin;    /* no match */                                          goto nextin;    /* no match */
                           }
                 } while (*q++ != 0);                  } while (*q++ != 0);
                 if (f->out[s])                  if (f->out[s])
                         patlen = q-p-1; /* don't count $ */                          patlen = q-p-1; /* don't count $ */
Line 543 
Line 544 
                                 s = ns;                                  s = ns;
                         else                          else
                                 s = cgoto(f, s, *q);                                  s = cgoto(f, s, *q);
                         if (s == 1)     /* no transition */                          if (s == 1) {   /* no transition */
                                 if (patlen > 0) {                                  if (patlen > 0) {
                                         patbeg = (char *) p;                                          patbeg = (char *) p;
                                         return(1);                                          return(1);
                                 } else                                  } else
                                         goto nnextin;   /* no nonempty match */                                          goto nnextin;   /* no nonempty match */
                           }
                 } while (*q++ != 0);                  } while (*q++ != 0);
                 if (f->out[s])                  if (f->out[s])
                         patlen = q-p-1; /* don't count $ */                          patlen = q-p-1; /* don't count $ */

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