home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BURKS 2
/
BURKS_AUG97.ISO
/
BURKS
/
SOFTWARE
/
LIBS
/
PMC101.ZIP
/
LIBSRC.ZIP
/
BMMALLOC.INC
(
.txt
)
< prev
next >
Wrap
Text File
|
1994-06-24
|
2KB
|
63 lines
DebugMode = 1
extrn _database:dword
Segment _DATA dword public use32 'DATA'
EndS _DATA
Segment _BSS dword public use32 'BSS'
EndS _BSS
Group DGROUP _DATA, _BSS
NodeSigKey equ 0da1eh
If DebugMode
MBSig equ 'LiVE'
MBSigInvl equ 'DooG'
MBSigSize = 4
Else
MBSigSize = 0
EndIf
; -- EXTERNAL STRUCTURES --
Struc MEMBLOCK
base dd ?
size dd ?
handle dd ?
EndS
; -- PUBLIC STRUCTURES --
Struc WalkMBInf
adx dd ? ; IN: if continue walk last MemArea adx
; else ?
; OUT: next MemArea adx
; not modified if IN was last MemNode
; if corrupt MEMBLOCK then ?
size dd ? ; OUT: next MemArea size
; if corrupt MEMBLOCK then ?
flags db ? ; 0: in flag 0 - continue walk
; 1 - start at begining of MEMBLOCK
; NOTE: reset to 0 after command to start
; 1: out flag 0 - free mem area
; 1 - allocated mem area
; 2: out flag 0 - not last MemNode
; 1 - last MemNode
; 3: out flag 0 - valid MEMBLOCK
; 1 - corrupt MEMBLOCK (or bad adx)
; 4: out flag 0 - MEMBLOCK has a size
; 1 - MB size is zero (uninitalized)
EndS
; -- PRIVATE STRUCTURES --
Struc MemNode
If DebugMode
sig dd ? ; Size XOR NodeSigKey
EndIf
size dd ? ; bit 31: 0 - free mem area
; 1 - allocated mem area
EndS