SC_FUNC void setfiledirect(char *name) { if (sc_status==statFIRST && sc_listing) { assert(name!=NULL); pc_writeasm(outf,"#file "); pc_writeasm(outf,name); pc_writeasm(outf,"\n"); } /* if */ }
SC_FUNC void setlinedirect(int line) { if (sc_status==statFIRST && sc_listing) { char string[40]; sprintf(string,"#line %d\n",line); pc_writeasm(outf,string); } /* if */ }
static int filewrite(char *str) { if (sc_status==statWRITE) return pc_writeasm(outf,str); return TRUE; }