-void Convert (const O65Data* D, const char* OutputFile)
+void Convert (const O65Data* D)
/* Convert the o65 file in D using the given output file. */
{
FILE* F;
return;
}
- /* Open the output file */
- F = fopen (OutputFile, "wb");
+ /* Open the output file */
+ F = fopen (OutputName, "wb");
if (F == 0) {
- Error ("Cannot open `%s': %s", OutputFile, strerror (errno));
+ Error ("Cannot open `%s': %s", OutputName, strerror (errno));
}
/* Create a header */
-void Convert (const struct O65Data* D, const char* OutputFile);
-/* Convert the o65 file in D using the given output file. */
+void Convert (const struct O65Data* D);
+/* Convert the o65 file in D */
-static void ConvertOneFile (const char* InputFile, const char* OutputFile)
+static void DoConversion (void)
/* Do file conversion */
{
/* Read the o65 file into memory */
- O65Data* D = ReadO65File (InputFile);
+ O65Data* D = ReadO65File (InputName);
/* Do the conversion */
- Convert (D, OutputFile);
+ Convert (D);
/* Free the o65 module data */
/* ### */
}
/* Do the conversion */
- ConvertOneFile (InputName, OutputName);
+ DoConversion ();
/* Return an apropriate exit code */
return EXIT_SUCCESS;