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

Diff for /src/usr.bin/make/targ.c between version 1.51 and 1.52

version 1.51, 2007/11/10 12:51:40 version 1.52, 2007/11/10 12:56:50
Line 134 
Line 134 
 static void TargFreeGN(void *);  static void TargFreeGN(void *);
 #endif  #endif
 #define Targ_FindConstantNode(n, f) Targ_FindNodeh(n, sizeof(n), K_##n, f)  #define Targ_FindConstantNode(n, f) Targ_FindNodeh(n, sizeof(n), K_##n, f)
   static const char *status_to_string(GNode *);
   
   
 GNode *begin_node, *end_node, *interrupt_node, *DEFAULT;  GNode *begin_node, *end_node, *interrupt_node, *DEFAULT;
Line 348 
Line 349 
                 }                  }
     }      }
 }  }
   static const char *
   status_to_string(GNode *gn)
   {
           switch (gn->built_status) {
           case UNMADE:
                   return "unmade";
           case MADE:
                   return "made";
           case UPTODATE:
                   return "up-to-date";
           case ERROR:
                   return "error when made";
           case ABORTED:
                   return "aborted";
           default:
                   return "other status";
           }
   }
   
 static void  static void
 TargPrintNode(GNode *gn, int pass)  TargPrintNode(GNode *gn, int pass)
Line 361 
Line 380 
                         if (!is_out_of_date(gn->mtime)) {                          if (!is_out_of_date(gn->mtime)) {
                                 printf("# last modified %s: %s\n",                                  printf("# last modified %s: %s\n",
                                       time_to_string(gn->mtime),                                        time_to_string(gn->mtime),
                                       (gn->built_status == UNMADE ? "unmade" :                                        status_to_string(gn));
                                        (gn->built_status == MADE ? "made" :  
                                         (gn->built_status == UPTODATE ?  
                                             "up-to-date" :  
                                              "error when made"))));  
                         } else if (gn->built_status != UNMADE) {                          } else if (gn->built_status != UNMADE) {
                                 printf("# non-existent (maybe): %s\n",                                  printf("# non-existent (maybe): %s\n",
                                       (gn->built_status == MADE ? "made" :                                      status_to_string(gn));
                                        (gn->built_status == UPTODATE ?  
                                             "up-to-date" :  
                                         (gn->built_status == ERROR ?  
                                             "error when made" :  
                                             "aborted"))));  
                         } else {                          } else {
                                 printf("# unmade\n");                                  printf("# unmade\n");
                         }                          }

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.52