home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
200-299
/
ff201.lzh
/
Draco
/
drinc
/
exec
/
memory.g
< prev
next >
Wrap
Text File
|
1989-04-03
|
1KB
|
59 lines
type
Node_t=unknown14,
MemChunk_t=struct{
*MemChunk_tmc_Next;
ulongmc_Bytes;
},
MemHeader_t=struct{
Node_tmh_Node;
uintmh_Attributes;
*MemChunk_tmh_First;
*bytemh_Lower;
*bytemh_Upper;
ulongmh_Free;
},
MemEntry_t=struct{
union{
ulongmeu_Reqs;
*bytemeu_Addr;
}me_Un;
ulongme_Length;
},
MemList_t=struct{
Node_tml_Node;
uintml_NumEntries;
[1]MemEntry_tml_ME;
};
uint
MEMF_PUBLIC =1<<0,
MEMF_CHIP=1<<1,
MEMF_FAST=1<<2;
ulong
MEMF_CLEAR=1<<16,
MEMF_LARGEST=1<<17;
uint
MEM_BLOCKSIZE=8,
MEM_BLOCKMASK=7;
extern
AddMemList(ulongsize,attributes;longpri;arbptrbase;*charname)bool,
AllocAbs(ulongbyteSize,location)arbptr,
Allocate(*MemHeader_tfreeList;ulongbyteSize)arbptr,
AllocEntry(*MemList_tneeded)*MemList_t,
AllocMem(ulongbyteSize,requirements)arbptr,
AvailMem(ulongrequirements)ulong,
CopyMem(arbptrsource,dest;ulongsize)void,
CopyMemQuick(*ulongsource,dest;ulongbyteSize)void,
Deallocate(*MemHeader_tfreeList;arbptrmemoryBlock;ulongbyteSize)void,
FreeEntry(*MemList_tmemList)void,
FreeMem(arbptrmemoryBlock;ulongbyteSize)void,
InitStruct(*byteinitTable,memory;ulongsize)void,
TypeOfMem(arbptraddress)uint;