Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 1999-10

Sorry to keep "bugging" everyone

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jeffrey A. Wormsley

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.

Reply by email