[lazarus] Sorry to keep "bugging" everyone

Jeffrey A. Wormsley daworm at cdc.net
Sat Oct 30 16:25:20 EDT 1999


I had to change the declarations for the memory allocation and deallocation
functions in zstream.pp to get it to compile.  Should these changes be
commited, or should whoever has been working on the memory allocation
issues do it (Peter?)?

// function zlibAllocMem(AppData: Pointer; Items, Size: Integer):
Pointer;cdecl;
function zlibAllocMem(opaque:pointer; items:uInt; size:uInt):pointer;cdecl;
begin
  Result:=DGetMem(Items*Size);
end;

// procedure zlibFreeMem(AppData, Block: Pointer);cdecl;
procedure zlibFreeMem(opaque:pointer; address:pointer);cdecl;
begin
//  DFreeMem(Block);
  DFreeMem(address);
end;


Jeff.







More information about the Lazarus mailing list