#define MAX_NAMESIZE 32

#define SCAN 1
#define RESOLVE 2

/* Values returned by the record load function */
#define MODERR -1	/* Error this record */
#define MODQUIT -2	/* Never encountered */
#define MODIGNORE -3	/* Record was ignored */
#define LIBEND -4	/* End of library modules record found */

#define NAMEMAX 64

typedef struct _modlist_ {
	struct _modlist_ *link;
	char *name;
	char *modname;
	BYTE *data;
	long len;
	long offset;
} MODULE;

typedef struct _public_ {
	struct _public_ *link;
	char *name;
	MODULE *mod;
} PUBLIC;