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

Diff for /src/usr.bin/make/error.c between version 1.21 and 1.22

version 1.21, 2012/03/22 13:50:30 version 1.22, 2012/09/21 07:55:20
Line 44 
Line 44 
 #include "lowparse.h"  #include "lowparse.h"
   
 int fatal_errors = 0;  int fatal_errors = 0;
 bool supervise_jobs = false;  
   
 static void ParseVErrorInternal(const Location *, int, const char *, va_list);  static void ParseVErrorInternal(const Location *, int, const char *, va_list);
 /*-  /*-
Line 77 
Line 76 
 {  {
         va_list ap;          va_list ap;
   
         if (supervise_jobs)          Job_Wait();
                 Job_Wait();  
   
         va_start(ap, fmt);          va_start(ap, fmt);
         (void)vfprintf(stderr, fmt, ap);          (void)vfprintf(stderr, fmt, ap);
Line 102 
Line 100 
 void  void
 Punt(char *fmt, ...)  Punt(char *fmt, ...)
 {  {
         va_list ap;          if (fmt) {
                   va_list ap;
   
         va_start(ap, fmt);                  va_start(ap, fmt);
         (void)fprintf(stderr, "make: ");                  (void)fprintf(stderr, "make: ");
         (void)vfprintf(stderr, fmt, ap);                  (void)vfprintf(stderr, fmt, ap);
         va_end(ap);                  va_end(ap);
         (void)fprintf(stderr, "\n");                  (void)fprintf(stderr, "\n");
           }
   
         Job_AbortAll();          Job_AbortAll();
         if (DEBUG(GRAPH2))          if (DEBUG(GRAPH2))
Line 118 
Line 118 
   
 /*  /*
  * Finish --   * Finish --
  *      Called when aborting due to errors in child shell to signal   *      Called when aborting due to errors in command or fatal signal
  *      abnormal exit.  
  *   *
  * Side Effects:   * Side Effects:
  *      The program exits   *      The program exits
  */   */
 void  void
 Finish(int errors) /* number of errors encountered in Make_Make */  Finish()
 {  {
         Job_Wait();          Job_Wait();
         if (errors != 0) {  
                 Error("Stop in %s:", Var_Value(".CURDIR"));  
         }  
         print_errors();          print_errors();
         if (DEBUG(GRAPH2))          if (DEBUG(GRAPH2))
                 Targ_PrintGraph(2);                  Targ_PrintGraph(2);

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22