]> git.sur5r.net Git - cc65/blobdiff - src/ld65/fileinfo.c
Inline assembly can now reference C labels with the %g format specifier
[cc65] / src / ld65 / fileinfo.c
index 97dba6aa11b5377fb6e117f888990d9350228ae8..58b5826b16dfee5af601085f9b35cd903a0db6a2 100644 (file)
@@ -60,16 +60,16 @@ static FileInfo* NewFileInfo (void)
 
 
 
-FileInfo* ReadFileInfo (FILE* F, ObjData* O attribute ((unused))) 
+FileInfo* ReadFileInfo (FILE* F, ObjData* O)
 /* Read a file info from a file and return it */
 {
     /* Allocate a new FileInfo structure */
     FileInfo* FI = NewFileInfo ();
 
     /* Read the fields from the file */
+    FI->Name  = MakeGlobalStringId (O, ReadVar (F));
     FI->MTime = Read32 (F);
     FI->Size  = Read32 (F);
-    FI->Name  = ReadStr (F);
 
     /* Return the new struct */
     return FI;