ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/uae_cpu/gencpu.c
(Generate patch)

Comparing BasiliskII/src/uae_cpu/gencpu.c (file contents):
Revision 1.20 by gbeauche, 2002-11-02T18:13:27Z vs.
Revision 1.22 by gbeauche, 2005-06-22T08:51:04Z

# Line 2457 | Line 2457 | static void generate_func (void)
2457  
2458   int main (int argc, char **argv)
2459   {
2460 +    FILE *out;
2461      read_table68k ();
2462      do_merges ();
2463  
# Line 2470 | Line 2471 | int main (int argc, char **argv)
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);
# Line 2480 | Line 2481 | int main (int argc, char **argv)
2481      generate_func ();
2482  
2483      free (table68k);
2484 +    fclose (headerfile);
2485 +    fclose (stblfile);
2486 +    fflush (out);
2487      return 0;
2488   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines