int main(int argc, char **argv) { opt_nopeep = FALSE; uctran_off = 0; optimize =1; exceptions=1; // printf("c64 starting...\r\n"); while(--argc) { if( **++argv == '-') options(*argv); else { if (PreProcessFile(*argv) == -1) break; if( openfiles(*argv)) { lineno = 0; initsym(); compiler.compile(); // compile(); summary(); MBlk::ReleaseAll(); // ReleaseGlobalMemory(); closefiles(); } } dfs.printf("Next on command line (%d).\n", argc); } //getchar(); dfs.printf("Exiting\n"); dfs.close(); exit(0); return (0); }
int main(int argc, char **argv) { uctran_off = 0; optimize =1; exceptions=1; // printf("c64 starting...\r\n"); while(--argc) { if( **++argv == '-') options(*argv); else { if (PreProcessFile(*argv) == -1) break; if( openfiles(*argv)) { lineno = 0; initsym(); memset(gsyms,0,sizeof(gsyms)); memset(&defsyms,0,sizeof(defsyms)); memset(&tagtable,0,sizeof(tagtable)); getch(); lstackptr = 0; lastst = 0; NextToken(); compile(); summary(); ReleaseGlobalMemory(); closefiles(); } } } //getchar(); return 0; }