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

Diff for /src/usr.bin/make/parsevar.c between version 1.9 and 1.10

version 1.9, 2007/09/16 09:46:14 version 1.10, 2007/09/17 09:28:36
Line 104 
Line 104 
                 case '?':                  case '?':
                         if (type & (VAR_OPT|VAR_APPEND))                          if (type & (VAR_OPT|VAR_APPEND))
                                 type = VAR_INVALID;                                  type = VAR_INVALID;
                         else                          else
                                 type |= VAR_OPT;                                  type |= VAR_OPT;
                         break;                          break;
   
                 case ':':                  case ':':
                         if (FEATURES(FEATURE_SUNSHCMD) &&                          if (FEATURES(FEATURE_SUNSHCMD) &&
                             strncmp(arg, "sh", 2) == 0) {                              strncmp(arg, "sh", 2) == 0) {
                                 type = VAR_SHELL;                                  type = VAR_SHELL;
                                 arg += 2;                                  arg += 2;
Line 169 
Line 169 
                 /*                  /*
                  * Allow variables in the old value to be undefined, but leave                   * Allow variables in the old value to be undefined, but leave
                  * their invocation alone -- this is done by forcing                   * their invocation alone -- this is done by forcing
                  * errorIsOkay to be false.                   * errorIsOkay to be false.
                  * XXX: This can cause recursive variables, but that's not                   * XXX: This can cause recursive variables, but that's not
                  * hard to do, and this allows someone to do something like                   * hard to do, and this allows someone to do something like
                  *                   *
                  *  CFLAGS = $(.INCLUDES)                   *  CFLAGS = $(.INCLUDES)
                  *  CFLAGS := -I.. $(CFLAGS)                   *  CFLAGS := -I.. $(CFLAGS)
                  *                   *
                  * And not get an error.                   * And not get an error.

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10