mirror of
https://github.com/cc65/cc65.git
synced 2024-12-25 02:29:52 +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:
parent
7158553772
commit
8dbc44fed4
@ -128,16 +128,25 @@ static void DumpFile (const char* Name)
|
||||
|
||||
/* Do we know this type of file? */
|
||||
if (Magic != OBJ_MAGIC) {
|
||||
fclose (F);
|
||||
Warning ("File `%s' is not an xo65 object file", Name);
|
||||
}
|
||||
|
||||
/* Print the filename */
|
||||
printf ("%s:\n", Name);
|
||||
/* Unknown format */
|
||||
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 */
|
||||
|
Loading…
Reference in New Issue
Block a user