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

Diff for /src/usr.bin/make/cond.c between version 1.26 and 1.27

version 1.26, 2001/05/29 12:53:39 version 1.27, 2002/04/17 16:45:02
Line 976 
Line 976 
         /* This is the one case where we can definitely proclaim a fatal          /* This is the one case where we can definitely proclaim a fatal
          * error. If we don't, we're hosed.  */           * error. If we don't, we're hosed.  */
         Parse_Error(PARSE_FATAL, "Too many nested if's. %d max.", MAXIF);          Parse_Error(PARSE_FATAL, "Too many nested if's. %d max.", MAXIF);
           condTop = 0;
         return COND_INVALID;          return COND_INVALID;
     } else {      } else {
         condStack[condTop].value = value;          condStack[condTop].value = value;
Line 992 
Line 993 
     int i;      int i;
   
     if (condTop != MAXIF) {      if (condTop != MAXIF) {
         Parse_Error(PARSE_FATAL, "%d open conditional%s", MAXIF-condTop,          Parse_Error(PARSE_FATAL, "%s%d open conditional%s",
                     MAXIF-condTop == 1 ? "" : "s");              condTop == 0 ? "at least ": "", MAXIF-condTop,
               MAXIF-condTop == 1 ? "" : "s");
         for (i = MAXIF-1; i >= condTop; i--) {          for (i = MAXIF-1; i >= condTop; i--) {
             fprintf(stderr, "\t at line %lu of %s\n", condStack[i].lineno,              fprintf(stderr, "\t at line %lu of %s\n", condStack[i].lineno,
                 condStack[i].filename);                  condStack[i].filename);

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27