home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
CPROG
/
LABYTE.ZIP
/
LABYTE.H
< prev
next >
Wrap
C/C++ Source or Header
|
1992-05-08
|
1KB
|
46 lines
/* ------------------------------------ */
/* -- Logical Answers Byte -- */
/* -- Our Real Good Memory Manager -- */
/* -- -- */
/* -- LAByte.H -- */
/* ------------------------------------ */
typedef struct {
int MemOK;
char MemMod[5];
int MemLine;
char MemFun;
char MemUse;
int MemLen;
void far *MemAddr;
void *MemPrev;
void *MemNext;
} MEMTBL;
#define MEMHDRLEN 4
#ifdef LATRACE
#define TRACEELEMS 100
typedef struct
{
char Wrap;
int TracePtr;
struct
{
char Type;
char Mod[5];
int Line;
} TraceElem[TRACEELEMS];
} TRACETBL;
#endif
char far *mem_getmain(char *, int, char, char, int);
int mem_freemain(char *, int, char far *);
int mem_cleanup(char *, int, char);
int mem_freeall(char *, int);
void mem_cancel(int, char *, int, void *, char far *);
void trace_entry(char, char *, int);
void cancel_prog(int);