[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.66 and 1.67

version 1.66, 2001/11/11 12:35:02 version 1.67, 2002/06/11 21:12:11
Line 1406 
Line 1406 
         /* FALLTHROUGH */          /* FALLTHROUGH */
     case COND_PARSE:      case COND_PARSE:
         return true;          return true;
     default:      case COND_ISFOR: {
           For *loop;
   
           loop = For_Eval(line+3);
           if (loop != NULL) {
               bool ok;
               do {
                   /* Find the matching endfor.  */
                   line = ParseReadLoopLine(linebuf);
                   if (line == NULL) {
                       Parse_Error(PARSE_FATAL,
                                "Unexpected end of file in for loop.\n");
                       return false;
                   }
                   ok = For_Accumulate(loop, line);
               } while (ok);
               For_Run(loop);
               return true;
           }
         break;          break;
     }      }
       case COND_ISINCLUDE:
     {  
     For *loop;  
   
     loop = For_Eval(line);  
     if (loop != NULL) {  
         bool ok;  
         do {  
             /* Find the matching endfor.  */  
             line = ParseReadLoopLine(linebuf);  
             if (line == NULL) {  
                 Parse_Error(PARSE_FATAL,  
                          "Unexpected end of file in for loop.\n");  
                 return false;  
             }  
             ok = For_Accumulate(loop, line);  
         } while (ok);  
         For_Run(loop);  
         return true;  
     }  
     }  
   
     if (strncmp(line, "include", 7) == 0) {  
         ParseDoInclude(line + 7);          ParseDoInclude(line + 7);
         return true;          return true;
     } else if (strncmp(line, "undef", 5) == 0) {      case COND_ISUNDEF: {
         char *cp;          char *cp;
   
         line+=5;          line+=5;
Line 1446 
Line 1442 
         Var_Delete(line);          Var_Delete(line);
         return true;          return true;
     }      }
       default:
           break;
       }
   
     return false;      return false;
 }  }
   

Legend:
Removed from v.1.66  
changed lines
  Added in v.1.67