commit
a182ca62c8
|
@ -74,7 +74,6 @@ static int lastline,errorcount;
|
||||||
static short lastfile;
|
static short lastfile;
|
||||||
char *msg,*pre,*filename;
|
char *msg,*pre,*filename;
|
||||||
va_list argptr;
|
va_list argptr;
|
||||||
char string[128];
|
|
||||||
int is_warning;
|
int is_warning;
|
||||||
|
|
||||||
is_warning = (number >= 200 && !sc_warnings_are_errors);
|
is_warning = (number >= 200 && !sc_warnings_are_errors);
|
||||||
|
@ -130,7 +129,7 @@ static short lastfile;
|
||||||
va_start(argptr,number);
|
va_start(argptr,number);
|
||||||
if (strlen(errfname)==0) {
|
if (strlen(errfname)==0) {
|
||||||
int start= (errstart==errline) ? -1 : errstart;
|
int start= (errstart==errline) ? -1 : errstart;
|
||||||
if (pc_error((int)number,string,filename,start,errline,argptr)) {
|
if (pc_error((int)number,msg,filename,start,errline,argptr)) {
|
||||||
if (outf!=NULL) {
|
if (outf!=NULL) {
|
||||||
pc_closeasm(outf,TRUE);
|
pc_closeasm(outf,TRUE);
|
||||||
outf=NULL;
|
outf=NULL;
|
||||||
|
@ -144,7 +143,7 @@ static short lastfile;
|
||||||
fprintf(fp,"%s(%d -- %d) : %s %03d: ",filename,errstart,errline,pre,number);
|
fprintf(fp,"%s(%d -- %d) : %s %03d: ",filename,errstart,errline,pre,number);
|
||||||
else
|
else
|
||||||
fprintf(fp,"%s(%d) : %s %03d: ",filename,errline,pre,number);
|
fprintf(fp,"%s(%d) : %s %03d: ",filename,errline,pre,number);
|
||||||
vfprintf(fp,string,argptr);
|
vfprintf(fp,msg,argptr);
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
} /* if */
|
} /* if */
|
||||||
} /* if */
|
} /* if */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user