1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 17:29:50 +00:00

Better handling of missing flags and wrong files

git-svn-id: svn://svn.cc65.org/cc65/trunk@232 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2000-07-29 22:39:39 +00:00
parent 7158553772
commit 8dbc44fed4

View File

@ -128,16 +128,25 @@ static void DumpFile (const char* Name)
/* Do we know this type of file? */ /* Do we know this type of file? */
if (Magic != OBJ_MAGIC) { if (Magic != OBJ_MAGIC) {
fclose (F);
Warning ("File `%s' is not an xo65 object file", Name);
}
/* Print the filename */ /* Unknown format */
printf ("%s:\n", Name); printf ("%s: (no xo65 object file)\n", Name);
} else if (What == 0) {
/* Special handling if no info was requested */
printf ("%s: (no information requested)\n", Name);
} else {
/* Print the filename */
printf ("%s:\n", Name);
/* Check what to dump */
if (What & D_HEADER) {
DumpHeader (F, 0);
}
/* Check what to dump */
if (What & D_HEADER) {
DumpHeader (F, 0);
} }
/* Close the file */ /* Close the file */