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

Diff for /src/usr.bin/make/dir.c between version 1.67 and 1.68

version 1.67, 2015/01/23 22:35:57 version 1.68, 2016/10/21 16:12:38
Line 459 
Line 459 
          * If found, we concatenate the directory name and the           * If found, we concatenate the directory name and the
          * final component and return the resulting string.  */           * final component and return the resulting string.  */
         for (ln = Lst_First(path); ln != NULL; ln = Lst_Adv(ln)) {          for (ln = Lst_First(path); ln != NULL; ln = Lst_Adv(ln)) {
                 p = (struct PathEntry *)Lst_Datum(ln);                  p = Lst_Datum(ln);
                 if (DEBUG(DIR))                  if (DEBUG(DIR))
                         printf("%s...", p->name);                          printf("%s...", p->name);
                 if (find_file_hashi(p, basename, ename, hv) != NULL) {                  if (find_file_hashi(p, basename, ename, hv) != NULL) {
Line 533 
Line 533 
                 if (DEBUG(DIR))                  if (DEBUG(DIR))
                         printf("failed. Trying subdirectories...");                          printf("failed. Trying subdirectories...");
                 for (ln = Lst_First(path); ln != NULL; ln = Lst_Adv(ln)) {                  for (ln = Lst_First(path); ln != NULL; ln = Lst_Adv(ln)) {
                         p = (struct PathEntry *)Lst_Datum(ln);                          p = Lst_Datum(ln);
                         if (p != dot)                          if (p != dot)
                                 file = Str_concati(p->name,                                  file = Str_concati(p->name,
                                     strchr(p->name, '\0'), name, ename, '/');                                      strchr(p->name, '\0'), name, ename, '/');
Line 677 
Line 677 
         struct PathEntry *p;          struct PathEntry *p;
   
         for (ln = Lst_First(path2); ln != NULL; ln = Lst_Adv(ln)) {          for (ln = Lst_First(path2); ln != NULL; ln = Lst_Adv(ln)) {
                 p = (struct PathEntry *)Lst_Datum(ln);                  p = Lst_Datum(ln);
                 if (Lst_AddNew(path1, p))                  if (Lst_AddNew(path1, p))
                         p->refCount++;                          p->refCount++;
         }          }

Legend:
Removed from v.1.67  
changed lines
  Added in v.1.68