Fix compiler output
This commit is contained in:
parent
54c978addb
commit
d397619939
@ -101,7 +101,6 @@
|
|||||||
<ClCompile Include="sc5.c" />
|
<ClCompile Include="sc5.c" />
|
||||||
<ClCompile Include="sc6.c" />
|
<ClCompile Include="sc6.c" />
|
||||||
<ClCompile Include="sc7.c" />
|
<ClCompile Include="sc7.c" />
|
||||||
<ClCompile Include="scexpand.c" />
|
|
||||||
<ClCompile Include="sci18n.c" />
|
<ClCompile Include="sci18n.c" />
|
||||||
<ClCompile Include="sclist.c" />
|
<ClCompile Include="sclist.c" />
|
||||||
<ClCompile Include="scmemfil.c" />
|
<ClCompile Include="scmemfil.c" />
|
||||||
|
@ -42,9 +42,6 @@
|
|||||||
<ClCompile Include="sc7.c">
|
<ClCompile Include="sc7.c">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="scexpand.c">
|
|
||||||
<Filter>Source Files</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="sci18n.c">
|
<ClCompile Include="sci18n.c">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
@ -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