[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.23 and 1.24

version 1.23, 2020/06/10 21:01:50 version 1.24, 2020/06/10 21:02:19
Line 920 
Line 920 
         int i;          int i;
         int num, m, commafound, digitfound;          int num, m, commafound, digitfound;
         const uschar *startreptok;          const uschar *startreptok;
           static int parens = 0;
   
 rescan:  rescan:
         starttok = prestr;          starttok = prestr;
Line 933 
Line 934 
         case '\0': prestr--; return '\0';          case '\0': prestr--; return '\0';
         case '^':          case '^':
         case '$':          case '$':
                   return c;
         case '(':          case '(':
         case ')':                  parens++;
                 return c;                  return c;
           case ')':
                   if (parens) {
                           parens--;
                           return c;
                   }
                   /* unmatched close parenthesis; per POSIX, treat as literal */
                   rlxval = c;
                   return CHAR;
         case '\\':          case '\\':
                 rlxval = quoted(&prestr);                  rlxval = quoted(&prestr);
                 return CHAR;                  return CHAR;

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24