X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=examples%2Fcompress.lisp;h=3f3e838fc182eced393a61d0ced7ea0c2c712342;hb=3ade95bab16abe09642554e9cbf56f117f01e507;hp=1229be56e75ac1962099665ffb398786821cce6e;hpb=276c8f34b3070db313908a6d49a1ada16923fc21;p=uffi.git diff --git a/examples/compress.lisp b/examples/compress.lisp index 1229be5..3f3e838 100644 --- a/examples/compress.lisp +++ b/examples/compress.lisp @@ -7,13 +7,10 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Feb 2002 ;;;; -;;;; $Id: compress.lisp,v 1.3 2002/12/09 16:30:20 kevin Exp $ +;;;; $Id$ ;;;; -;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg +;;;; This file, part of UFFI, is Copyright (c) 2002-2005 by Kevin M. Rosenberg ;;;; -;;;; UFFI users are granted the rights to distribute and use this software -;;;; as governed by the terms of the Lisp Lesser GNU Public License -;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL. ;;;; ************************************************************************* (in-package :cl-user) @@ -95,10 +92,9 @@ (progn (flet ((print-results (str) (multiple-value-bind (compressed len) (compress str) + (let ((*print-length* nil)) (format t "~&(compress ~S) => " str) - (dotimes (i len) - (format t "~X" (char-code (char compressed i)))) - (format t ",~D" len)))) + (format t "~S~%" (map 'list #'char-code compressed)))))) (print-results "") (print-results "test") (print-results "test2")))