version 1.21, 2012/03/22 13:50:30 |
version 1.22, 2012/09/21 07:55:20 |
|
|
#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); |
/*- |
/*- |
|
|
{ |
{ |
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); |
|
|
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)) |
|
|
|
|
/* |
/* |
* 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); |