projects
/
uffi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r10608: update license
[uffi.git]
/
examples
/
compress.lisp
diff --git
a/examples/compress.lisp
b/examples/compress.lisp
index 1229be56e75ac1962099665ffb398786821cce6e..3f3e838fc182eced393a61d0ced7ea0c2c712342 100644
(file)
--- a/
examples/compress.lisp
+++ b/
examples/compress.lisp
@@
-7,13
+7,10
@@
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
;;;; 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)
;;;; *************************************************************************
(in-package :cl-user)
@@
-95,10
+92,9
@@
(progn
(flet ((print-results (str)
(multiple-value-bind (compressed len) (compress str)
(progn
(flet ((print-results (str)
(multiple-value-bind (compressed len) (compress str)
+ (let ((*print-length* nil))
(format t "~&(compress ~S) => " str)
(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")))
(print-results "")
(print-results "test")
(print-results "test2")))