/*****************************************************************************/
/* */
-/* mapfile.c */
+/* mapfile.c */
/* */
-/* Map file creation for the ld65 linker */
+/* Map file creation for the ld65 linker */
/* */
/* */
/* */
/*****************************************************************************/
-/* Code */
+/* Code */
/*****************************************************************************/
/* Open the map file */
FILE* F = fopen (MapFileName, "w");
if (F == 0) {
- Error ("Cannot create map file `%s': %s", MapFileName, strerror (errno));
+ Error ("Cannot create map file `%s': %s", MapFileName, strerror (errno));
}
/* Write a modules list */
fprintf (F, "Modules list:\n"
- "-------------\n");
+ "-------------\n");
for (I = 0; I < CollCount (&ObjDataList); ++I) {
unsigned J;
/* Write the segment list */
fprintf (F, "\n\n"
- "Segment list:\n"
- "-------------\n");
+ "Segment list:\n"
+ "-------------\n");
PrintSegmentMap (F);
/* The remainder is not written for short map files */
/* Close the file */
if (fclose (F) != 0) {
- Error ("Error closing map file `%s': %s", MapFileName, strerror (errno));
+ Error ("Error closing map file `%s': %s", MapFileName, strerror (errno));
}
}
/* Open the label file */
FILE* F = fopen (LabelFileName, "w");
if (F == 0) {
- Error ("Cannot create label file `%s': %s", LabelFileName, strerror (errno));
+ Error ("Cannot create label file `%s': %s", LabelFileName, strerror (errno));
}
/* Print the labels for the export symbols */
/* Close the file */
if (fclose (F) != 0) {
- Error ("Error closing label file `%s': %s", LabelFileName, strerror (errno));
+ Error ("Error closing label file `%s': %s", LabelFileName, strerror (errno));
}
}