Merge pull request #226 from Arkshine/fix/compiler

Fix compiler output
This commit is contained in:
Vincent Herbet 2015-03-21 15:38:25 +01:00
commit a182ca62c8

View File

@ -74,7 +74,6 @@ static int lastline,errorcount;
static short lastfile;
char *msg,*pre,*filename;
va_list argptr;
char string[128];
int is_warning;
is_warning = (number >= 200 && !sc_warnings_are_errors);
@ -130,7 +129,7 @@ static short lastfile;
va_start(argptr,number);
if (strlen(errfname)==0) {
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) {
pc_closeasm(outf,TRUE);
outf=NULL;
@ -144,7 +143,7 @@ static short lastfile;
fprintf(fp,"%s(%d -- %d) : %s %03d: ",filename,errstart,errline,pre,number);
else
fprintf(fp,"%s(%d) : %s %03d: ",filename,errline,pre,number);
vfprintf(fp,string,argptr);
vfprintf(fp,msg,argptr);
fclose(fp);
} /* if */
} /* if */