mirror of
https://github.com/cc65/cc65.git
synced 2025-01-10 19:29:45 +00:00
Files in the file tables have their names in the string pool
git-svn-id: svn://svn.cc65.org/cc65/trunk@2623 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
87d3f32be1
commit
587b807921
@ -380,9 +380,9 @@ void DumpObjFiles (FILE* F, unsigned long Offset)
|
|||||||
for (I = 0; I < Count; ++I) {
|
for (I = 0; I < Count; ++I) {
|
||||||
|
|
||||||
/* Read the data for one file */
|
/* Read the data for one file */
|
||||||
|
const char* Name = GetString (&StrPool, ReadVar (F));
|
||||||
unsigned long MTime = Read32 (F);
|
unsigned long MTime = Read32 (F);
|
||||||
unsigned long Size = Read32 (F);
|
unsigned long Size = Read32 (F);
|
||||||
char* Name = ReadStr (F);
|
|
||||||
unsigned Len = strlen (Name);
|
unsigned Len = strlen (Name);
|
||||||
|
|
||||||
/* Print the header */
|
/* Print the header */
|
||||||
@ -392,9 +392,6 @@ void DumpObjFiles (FILE* F, unsigned long Offset)
|
|||||||
printf (" Name:%*s\"%s\"\n", 24-Len, "", Name);
|
printf (" Name:%*s\"%s\"\n", 24-Len, "", Name);
|
||||||
printf (" Size:%26lu\n", Size);
|
printf (" Size:%26lu\n", Size);
|
||||||
printf (" Modification time:%13lu (%s)\n", MTime, TimeToStr (MTime));
|
printf (" Modification time:%13lu (%s)\n", MTime, TimeToStr (MTime));
|
||||||
|
|
||||||
/* Free the Name */
|
|
||||||
xfree (Name);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Destroy the string pool */
|
/* Destroy the string pool */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user