2457 |
|
|
2458 |
|
int main (int argc, char **argv) |
2459 |
|
{ |
2460 |
+ |
FILE *out; |
2461 |
|
read_table68k (); |
2462 |
|
do_merges (); |
2463 |
|
|
2471 |
|
* cputbl.h that way), but cpuopti can't cope. That could be fixed, but |
2472 |
|
* I don't dare to touch the 68k version. */ |
2473 |
|
|
2474 |
< |
headerfile = fopen ("cputbl.h", "wb"); |
2475 |
< |
stblfile = fopen ("cpustbl.cpp", "wb"); |
2476 |
< |
freopen ("cpuemu.cpp", "wb", stdout); |
2474 |
> |
headerfile = fopen ("cputbl.h", "w"); |
2475 |
> |
stblfile = fopen ("cpustbl.cpp", "w"); |
2476 |
> |
out = freopen ("cpuemu.cpp", "w", stdout); |
2477 |
|
|
2478 |
|
generate_includes (stdout); |
2479 |
|
generate_includes (stblfile); |
2481 |
|
generate_func (); |
2482 |
|
|
2483 |
|
free (table68k); |
2484 |
+ |
fclose (headerfile); |
2485 |
+ |
fclose (stblfile); |
2486 |
+ |
fflush (out); |
2487 |
|
return 0; |
2488 |
|
} |