[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.41 and 1.42

version 1.41, 2009/11/11 00:12:10 version 1.42, 2010/04/25 13:59:53
Line 224 
Line 224 
         while (*cp == ' ' || *cp == '\t')          while (*cp == ' ' || *cp == '\t')
                 cp++;                  cp++;
         if (parens && *cp != ')') {          if (parens && *cp != ')') {
                 Parse_Error(PARSE_WARNING,                  Parse_Error(PARSE_WARNING,
                     "Missing closing parenthesis for %s()", func);                      "Missing closing parenthesis for %s()", func);
             return false;              return false;
         } else if (parens)          } else if (parens)
Line 487 
Line 487 
                         if (*cp == '$') {                          if (*cp == '$') {
                                 size_t len;                                  size_t len;
   
                                 if (Var_ParseBuffer(&buf, cp, NULL, doEval,                                  if (Var_ParseBuffer(&buf, cp, NULL, doEval,
                                     &len)) {                                      &len)) {
                                         cp += len;                                          cp += len;
                                         continue;                                          continue;
Line 625 
Line 625 
   
                 condExpr += 5;                  condExpr += 5;
   
                 for (arglen = 0; condExpr[arglen] != '(' &&                  for (arglen = 0; condExpr[arglen] != '(' &&
                     condExpr[arglen] != '\0';)                      condExpr[arglen] != '\0';)
                         arglen++;                          arglen++;
   
Line 1065 
Line 1065 
         if (condTop < 0) {          if (condTop < 0) {
                 /* 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.",                  Parse_Error(PARSE_FATAL, "Too many nested if's. %d max.",
                     MAXIF);                      MAXIF);
                 condTop = 0;                  condTop = 0;
                 return COND_INVALID;                  return COND_INVALID;
Line 1124 
Line 1124 
                     condTop == 0 ? "at least ": "", MAXIF-condTop,                      condTop == 0 ? "at least ": "", MAXIF-condTop,
                     MAXIF-condTop == 1 ? "" : "s");                      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",                          fprintf(stderr, "\t at line %lu of %s\n",
                             condStack[i].lineno, condStack[i].filename);                              condStack[i].lineno, condStack[i].filename);
                 }                  }
         }          }

Legend:
Removed from v.1.41  
changed lines
  Added in v.1.42