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:
parent
7158553772
commit
8dbc44fed4
@ -128,9 +128,16 @@ 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);
|
||||
}
|
||||
|
||||
/* 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);
|
||||
@ -140,6 +147,8 @@ static void DumpFile (const char* Name)
|
||||
DumpHeader (F, 0);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* Close the file */
|
||||
fclose (F);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user