"Dr A A Olowofoyeku" wrote:
I have just completed work on an Huffman compression unit which now supports GPC. The unit exports two main (alternative) compression functions and two decompression functions. The routines are "dead easy" to use, and the compression ratio compares well with ZIP's "deflate".
The file can be downloaded from the "contrib" directory on agnes: ftp://agnes.dida.physik.uni-essen.de/gnu-pascal/contrib/lhsix.zip
One little comment: the characters you use in EncodeCallBack and DecodeCallBack are probably some graphics characters under Dos, but look a bit strange in the standard character set (a paragraph sign and an accented `u'). To avois this problem, it might be better to use ASCII characters (i.e., #32 .. #126), e.g. the hash (`#') that many programs use. I realise that this is only a demo program, but it gives a strange appearance at first sight...
Frank
-- Frank Heckenbach, frank@fjf.gnu.de, http://fjf.gnu.de/ GPC To-Do list, latest features, fixed bugs: http://agnes.dida.physik.uni-essen.de/~gnu-pascal/todo.html