/*
 * Scan 'C' Header File
 * Written by Thomas Krehbiel
 *
 * Standard module include file.
 *
 */

#ifndef SCAN_MOD_H
#include <scan/mod.h>
#endif
#ifndef SCAN_BUF_H
#include <scan/buf.h>
#endif
#ifndef SCAN_ERRORS_H
#include <scan/errors.h>
#endif
#ifndef SCAN2_PROTOS_H
#include <scan2/scan_protos.h>
#endif
#ifndef SCAN2_PRAGMAS_H
#include <scan2/pragmas.h>
#endif

extern struct Library        *DOSBase;
extern struct ExecBase       *SysBase;
extern struct IntuitionBase  *IntuitionBase;
extern struct GfxBase        *GfxBase;

extern struct ModuleBase     *ModuleBase;
extern struct ScanBase       *ScanBase;

extern ULONG                  LibOpen(void);
extern ULONG                  LibClose(void);
extern ULONG                  LibExpunge(void);
extern ULONG                  LibNull(void);

extern char                  *GetStr(int idx, char *def);

/* ancient compatibility: */
#define Alloc(a,b)            AllocMem(a,b)
#define Free(a,b)             FreeMem(a,b)
