newLISP Fan Club

Forum => newLISP in the real world => Topic started by: cormullion on October 23, 2009, 09:47:46 AM

Title: lzw.lsp working?
Post by: cormullion on October 23, 2009, 09:47:46 AM
I'm trying to get peter's lzw.lsp code working (//http://www.turtle.dds.nl/newlisp/index.html). Although I've changed the inc functions for v 10.1, I can't seem to get a file to compress and decompress OK. The code is complicated to understand (all that bit-shifting is hard to follow). Can anyone get this working?
Title: Re: lzw.lsp working?
Post by: Lutz on October 23, 2009, 09:57:44 AM
Change also the two instances of:


(write-line "[text]" out)

to:


(write-line out "[text]")
Title: Re: lzw.lsp working?
Post by: cormullion on October 23, 2009, 11:21:39 AM
Isn't that only in the self-extracting function, though?
Title: Re: lzw.lsp working?
Post by: Lutz on October 23, 2009, 11:58:13 AM
Haven't tried the program, just read through it to discover 10.0 incompatibilities.  Apart from the 'inc', I only could find 'write-line' which swapped parameters.