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

Diff for /src/usr.bin/make/parse.c between version 1.21 and 1.22

version 1.21, 1999/10/05 22:08:07 version 1.22, 1999/11/10 14:00:54
Line 2109 
Line 2109 
   
     buf = Buf_Init(MAKE_BSIZE);      buf = Buf_Init(MAKE_BSIZE);
   
     do {      for (;;) {
         Buf_Discard(buf, lineLength);          Buf_Discard(buf, lineLength);
         lastc = '\0';          lastc = '\0';
   
Line 2129 
Line 2129 
             lastc = c;              lastc = c;
         }          }
   
           Buf_AddByte(buf, (Byte)'\0');
           line = (char *)Buf_GetAll(buf, &lineLength);
           lineno++;
               /* allow for non-newline terminated lines while skipping */
           if (line[0] == '.')
               break;
   
         if (c == EOF) {          if (c == EOF) {
             Parse_Error(PARSE_FATAL, "Unclosed conditional/for loop");              Parse_Error(PARSE_FATAL, "Unclosed conditional/for loop");
             Buf_Destroy(buf, TRUE);              Buf_Destroy(buf, TRUE);
             return((char *)NULL);              return((char *)NULL);
         }          }
           if (skip == 0)
               break;
   
         lineno++;      }
         Buf_AddByte(buf, (Byte)'\0');  
         line = (char *)Buf_GetAll(buf, &lineLength);  
     } while (skip == 1 && line[0] != '.');  
   
     Buf_Destroy(buf, FALSE);      Buf_Destroy(buf, FALSE);
     return line;      return line;

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