[fpc-pascal] Don't understand Zipper.DoEndOfFile/UnZipper.DoEndOfFile

Michael Van Canneyt michael at freepascal.org
Wed Aug 15 14:24:00 CEST 2012



On Wed, 15 Aug 2012, Reinier Olislagers wrote:

> On 15-8-2012 13:48, Michael Van Canneyt wrote:
>> On Wed, 15 Aug 2012, Reinier Olislagers wrote:
>>
>>> I've been working on documenting the Zipper/Unzipper classes:
>>> packages\paszlib\src\zipper.pp
>>> Now looking at the protected procedure TZipper/TUnzipper.DoEndOfFile
>>>
>>> They apparently update compression percentage statistics and call a user
>>> defined callback (if any, defined in OnEndOfFile)
>>>
>>> I don't understand though by whom/if they are called? A grep through the
>>> source code showed nothing referencing it.
>>
>> The calls to these routines must have fallen out during some
>> refactoring. They should be called when the zip/unzip operation is done.
> Ok, just for confirmation: done after each file in the list - as
> oppposed to the zip/unzip operation on the entire zip file, right?

Yes.

> I'll have a look through the history to see if I can find it and write
> up a patch.

That would be nice :)

Michael.



More information about the fpc-pascal mailing list