Change how data is stored in the library. To simplify things, the index

(=directory) entry is now shorter, and additional data necessary for checking
in the archiver is not stored in the directory but read from the object file
data in the library.


git-svn-id: svn://svn.cc65.org/cc65/trunk@4944 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2011-01-28 15:42:32 +00:00
parent 8386b47074
commit 5855137d8c
6 changed files with 214 additions and 318 deletions

View File

@@ -40,8 +40,15 @@
#include <stdio.h>
/* common */
#include "objdefs.h"
/*****************************************************************************/
/* Forwards */
/*****************************************************************************/
struct ObjData;
@@ -51,11 +58,10 @@
void ObjReadHeader (FILE* Obj, ObjHeader* H, const char* Name);
/* Read the header of the object file checking the signature */
void ObjWriteHeader (FILE* Obj, ObjHeader* H);
/* Write the header of the object file */
void ObjReadData (FILE* F, struct ObjData* O);
/* Read object file data from the given file. The function expects the Name
* and Start fields to be valid. Header and basic data are read.
*/
void ObjAdd (const char* Name);
/* Add an object file to the library */
@@ -67,7 +73,7 @@ void ObjExtract (const char* Name);
/* End of objfile.h */
#endif
#endif