Sign in Join

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

Mailing lists / fpc-pascal / 2009-10

bzip2 compression with FPC

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Juha Manninen

Hi,

ok, I created a new thread for bzip2.

So, FCL seems to have bzip2 unit but it only has decompression. Does anyone know of alternatives for bzip2 compression with FPC? JCL has some but it doesn't compile with FPC. If it is going to work with FPC within a reasonable time frame, or if there is some alternative unit under construction, then I will just wait.
Otherwise I could try to port it myself somehow.

Juha Manninen

Marco van de Voort
to Juha Manninen

In our previous episode, Juha Manninen said:

construction, then I will just wait. Otherwise I could try to port it myself somehow.

I think that is best.

Stuff like ULARGE_Integer is simply because JCL supports many Delphi versions, and not all have unsigned integer. Therefore they use some predefined windows struct for that.

Both are not really logical:
- FPC has qword (and later delphi's have uint64)
- using a windows header is not very portable.

JCL has made some attempts to accomodate FPC, but the problem is a bit that those are mostly fixes and ifdefs, not a decent restructure that clips dependancies, and reduces the set of features and libraries they use.

E.g. their datetime routines use interface delegation meant for com:

http://bugs.freepascal.org/view.php?id=8951