Move stuff into the common directory

git-svn-id: svn://svn.cc65.org/cc65/trunk@70 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2000-06-14 09:38:07 +00:00
parent 1081c1dcdd
commit 6a482b59fa
11 changed files with 27 additions and 179 deletions

View File

@@ -45,8 +45,9 @@
#include <time.h>
#include <sys/stat.h>
#include "../common/xmalloc.h"
#include "error.h"
#include "mem.h"
#include "objdata.h"
#include "fileio.h"
#include "library.h"
@@ -59,7 +60,7 @@
/*****************************************************************************/
static const char* GetModule (const char* Name)
/* Get a module name from the file name */
{
@@ -170,13 +171,13 @@ void ObjAdd (const char* Name)
}
/* Initialize the object module data structure */
O->Name = StrDup (Module);
O->Name = xstrdup (Module);
O->Flags = OBJ_HAVEDATA;
O->MTime = StatBuf.st_mtime;
O->ImportSize = H.ImportSize;
O->Imports = Xmalloc (O->ImportSize);
O->Imports = xmalloc (O->ImportSize);
O->ExportSize = H.ExportSize;
O->Exports = Xmalloc (O->ExportSize);
O->Exports = xmalloc (O->ExportSize);
/* Read imports and exports */
fseek (Obj, H.ImportOffs, SEEK_SET);