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

Diff for /src/usr.bin/make/suff.c between version 1.97 and 1.98

version 1.97, 2019/12/21 15:29:25 version 1.98, 2019/12/21 15:31:54
Line 936 
Line 936 
         if (DEBUG(SUFF))          if (DEBUG(SUFF))
                 printf("Expanding \"%s\"...", cgn->name);                  printf("Expanding \"%s\"...", cgn->name);
   
         cp = Var_Subst(cgn->name, &pgn->context, true);          cp = Var_Subst(cgn->name, &pgn->localvars, true);
         if (cp == NULL) {          if (cp == NULL) {
                 printf("Problem substituting in %s", cgn->name);                  printf("Problem substituting in %s", cgn->name);
                 printf("\n");                  printf("\n");
Line 953 
Line 953 
                  */                   */
                 const char *sacrifice = (const char *)cp;                  const char *sacrifice = (const char *)cp;
   
                 (void)Arch_ParseArchive(&sacrifice, &members, &pgn->context);                  (void)Arch_ParseArchive(&sacrifice, &members, &pgn->localvars);
         } else {          } else {
                 /* Break the result into a vector of strings whose nodes                  /* Break the result into a vector of strings whose nodes
                  * we can find, then add those nodes to the members list.                   * we can find, then add those nodes to the members list.
Line 980 
Line 980 
                                 /* Start of a variable spec -- contact variable                                  /* Start of a variable spec -- contact variable
                                  * module to find the end so we can skip over                                   * module to find the end so we can skip over
                                  * it.  */                                   * it.  */
                                 Var_ParseSkip(&cp2, &pgn->context);                                  Var_ParseSkip(&cp2, &pgn->localvars);
                         else if (*cp2 == '\\' && cp2[1] != '\0')                          else if (*cp2 == '\\' && cp2[1] != '\0')
                                 /* Escaped something -- skip over it.  */                                  /* Escaped something -- skip over it.  */
                                 cp2+=2;                                  cp2+=2;

Legend:
Removed from v.1.97  
changed lines
  Added in v.1.98