lzw.lsp working?

Q&A's, tips, howto's
Locked
cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

lzw.lsp working?

Post by cormullion »

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?

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Re: lzw.lsp working?

Post by Lutz »

Change also the two instances of:

Code: Select all

(write-line "[text]" out)
to:

Code: Select all

(write-line out "[text]")

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Re: lzw.lsp working?

Post by cormullion »

Isn't that only in the self-extracting function, though?

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Re: lzw.lsp working?

Post by Lutz »

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.

Locked