[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.31 and 1.32

version 1.31, 2020/06/10 21:05:02 version 1.32, 2020/06/26 15:57:39
Line 405 
Line 405 
                 i++;                  i++;
         }          }
         *bp = 0;          *bp = 0;
         DPRINTF( ("cclenter: in = |%s|, out = |%s|\n", op, buf) );          DPRINTF("cclenter: in = |%s|, out = |%s|\n", op, buf);
         xfree(op);          xfree(op);
         return (char *) tostring((char *) buf);          return (char *) tostring((char *) buf);
 }  }
Line 741 
Line 741 
 {                       /* uses relex() to scan regular expression */  {                       /* uses relex() to scan regular expression */
         Node *np;          Node *np;
   
         DPRINTF( ("reparse <%s>\n", p) );          DPRINTF("reparse <%s>\n", p);
         lastre = prestr = (const uschar *) p;   /* prestr points to string to be parsed */          lastre = prestr = (const uschar *) p;   /* prestr points to string to be parsed */
         rtok = relex();          rtok = relex();
         /* GNU compatibility: an empty regexp matches anything */          /* GNU compatibility: an empty regexp matches anything */
Line 1112 
Line 1112 
                                                 if (!adjbuf((char **) &buf, &bufsz, bp-buf+1, 100, (char **) &bp, "relex2"))                                                  if (!adjbuf((char **) &buf, &bufsz, bp-buf+1, 100, (char **) &bp, "relex2"))
                                                     FATAL("out of space for reg expr %.10s...", lastre);                                                      FATAL("out of space for reg expr %.10s...", lastre);
                                                 if (cc->cc_func(i)) {                                                  if (cc->cc_func(i)) {
                                                           /* escape backslash */
                                                           if (i == '\\') {
                                                                   *bp++ = '\\';
                                                                   n++;
                                                           }
   
                                                         *bp++ = i;                                                          *bp++ = i;
                                                         n++;                                                          n++;
                                                 }                                                  }

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