[BACK]Return to var.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / usr.bin / make

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/usr.bin/make/var.c between version 1.379 and 1.380

version 1.379, 2020/08/01 13:51:40 version 1.380, 2020/08/01 14:47:49
Line 788  Var_Set_with_flags(const char *name, con
Line 788  Var_Set_with_flags(const char *name, con
      * point in searching them all just to save a bit of memory...       * point in searching them all just to save a bit of memory...
      */       */
     if (strchr(name, '$') != NULL) {      if (strchr(name, '$') != NULL) {
         const char *unexpanded_name = name;          const char *unexpanded_name = name;
         name = name_freeIt = Var_Subst(name, ctxt, VARE_WANTRES);          name = name_freeIt = Var_Subst(name, ctxt, VARE_WANTRES);
         if (name[0] == '\0') {          if (name[0] == '\0') {
             if (DEBUG(VAR)) {              if (DEBUG(VAR)) {
Line 1213  Str_SYSVMatch(const char *word, const ch
Line 1213  Str_SYSVMatch(const char *word, const ch
   
     const char *w_tail = w + w_len - p_len;      const char *w_tail = w + w_len - p_len;
     if (memcmp(p, w_tail, p_len) != 0)      if (memcmp(p, w_tail, p_len) != 0)
         return NULL;          return NULL;
   
     *match_len = w_tail - w;      *match_len = w_tail - w;
     return w;      return w;
Line 2542  ApplyModifier_ToSep(const char *sep, App
Line 2542  ApplyModifier_ToSep(const char *sep, App
         get_numeric:          get_numeric:
             st->sep = strtoul(sep + 1 + (sep[1] == 'x'), &end, base);              st->sep = strtoul(sep + 1 + (sep[1] == 'x'), &end, base);
             if (*end != ':' && *end != st->endc)              if (*end != ':' && *end != st->endc)
                 return AMR_BAD;                  return AMR_BAD;
             st->next = end;              st->next = end;
             break;              break;
         }          }

Legend:
Removed from v.1.379  
changed lines
  Added in v.1.380

CVSweb <webmaster@jp.NetBSD.org>