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

Diff for /src/usr.bin/awk/tran.c between version 1.35 and 1.36

version 1.35, 2022/06/03 19:46:09 version 1.36, 2022/09/21 01:42:59
Line 566 
Line 566 
   
 char *qstring(const char *is, int delim)        /* collect string up to next delim */  char *qstring(const char *is, int delim)        /* collect string up to next delim */
 {  {
         const char *os = is;  
         int c, n;          int c, n;
         const uschar *s = (const uschar *) is;          const uschar *s = (const uschar *) is;
         uschar *buf, *bp;          uschar *buf, *bp;
Line 575 
Line 574 
                 FATAL( "out of space in qstring(%s)", s);                  FATAL( "out of space in qstring(%s)", s);
         for (bp = buf; (c = *s) != delim; s++) {          for (bp = buf; (c = *s) != delim; s++) {
                 if (c == '\n')                  if (c == '\n')
                         SYNTAX( "newline in string %.20s...", os );                          SYNTAX( "newline in string %.20s...", is );
                 else if (c != '\\')                  else if (c != '\\')
                         *bp++ = c;                          *bp++ = c;
                 else {  /* \something */                  else {  /* \something */

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36