Add missing quotes around #file names in preprocessor output
This commit is contained in:
parent
1af47f05c3
commit
5cf3b0977b
@ -493,9 +493,9 @@ int pc_compile(int argc, char *argv[])
|
|||||||
strcpy(inpfname,sname); /* avoid invalid filename */
|
strcpy(inpfname,sname); /* avoid invalid filename */
|
||||||
error(100,sname);
|
error(100,sname);
|
||||||
} /* if */
|
} /* if */
|
||||||
pc_writesrc(ftmp,(unsigned char*)"#file ");
|
pc_writesrc(ftmp,(unsigned char*)"#file \"");
|
||||||
pc_writesrc(ftmp,(unsigned char*)sname);
|
pc_writesrc(ftmp,(unsigned char*)sname);
|
||||||
pc_writesrc(ftmp,(unsigned char*)"\n");
|
pc_writesrc(ftmp,(unsigned char*)"\"\n");
|
||||||
while (!pc_eofsrc(fsrc)) {
|
while (!pc_eofsrc(fsrc)) {
|
||||||
pc_readsrc(fsrc,tstring,sizeof tstring);
|
pc_readsrc(fsrc,tstring,sizeof tstring);
|
||||||
pc_writesrc(ftmp,tstring);
|
pc_writesrc(ftmp,tstring);
|
||||||
|
@ -264,9 +264,9 @@ SC_FUNC void setfiledirect(char *name)
|
|||||||
{
|
{
|
||||||
if (sc_status==statFIRST && sc_listing) {
|
if (sc_status==statFIRST && sc_listing) {
|
||||||
assert(name!=NULL);
|
assert(name!=NULL);
|
||||||
pc_writeasm(outf,"#file ");
|
pc_writeasm(outf,"#file \"");
|
||||||
pc_writeasm(outf,name);
|
pc_writeasm(outf,name);
|
||||||
pc_writeasm(outf,"\n");
|
pc_writeasm(outf,"\"\n");
|
||||||
} /* if */
|
} /* if */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user