#include "../common/symdefs.h"
#include "../common/hashstr.h"
+#include "../common/xmalloc.h"
#include "global.h"
-#include "mem.h"
#include "error.h"
#include "fileio.h"
#include "objdata.h"
/* Create a new import and initialize it */
{
/* Allocate memory */
- Import* I = Xmalloc (sizeof (Import));
+ Import* I = xmalloc (sizeof (Import));
/* Initialize the fields */
I->Next = 0;
}
/* Now free the name since it's no longer needed */
- Xfree (Name);
+ xfree (Name);
}
unsigned Len = strlen (Name);
/* Allocate memory */
- Export* E = Xmalloc (sizeof (Export) + Len);
+ Export* E = xmalloc (sizeof (Export) + Len);
/* Initialize the fields */
E->Next = 0;
HashTab [HashVal] = E;
}
ImpOpen -= E->ImpCount; /* Decrease open imports now */
- Xfree (L);
+ xfree (L);
/* We must run through the import list and change the
* export pointer now.
*/
/* Allocate memory */
if (ExpPool) {
- Xfree (ExpPool);
+ xfree (ExpPool);
}
- ExpPool = Xmalloc (ExpCount * sizeof (Export*));
+ ExpPool = xmalloc (ExpCount * sizeof (Export*));
/* Walk through the list and insert the exports */
for (I = 0, J = 0; I < sizeof (HashTab) / sizeof (HashTab [0]); ++I) {