X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Fcompress.lisp;h=5bb6e3d05f7e5fc129d6472b3ce107d458ea853b;hb=cc739f67940b866f1a3b963cd1f35d1c0c81dd0c;hp=fcff615d1bfc79802d7a19383b9190bd19e8871f;hpb=886f754686a07aea92089a3ffdc997836d69d9f3;p=uffi.git diff --git a/tests/compress.lisp b/tests/compress.lisp index fcff615..5bb6e3d 100644 --- a/tests/compress.lisp +++ b/tests/compress.lisp @@ -2,36 +2,19 @@ ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; -;;;; Name: compress.cl +;;;; Name: compress.lisp ;;;; Purpose: UFFI Example file for zlib compression -;;;; Programmer: Kevin M. Rosenberg +;;;; Author: Kevin M. Rosenberg ;;;; Date Started: Feb 2002 ;;;; -;;;; $Id: compress.lisp,v 1.6 2003/04/29 13:16:14 kevin Exp $ +;;;; $Id: compress.lisp,v 1.12 2003/08/13 18:53:42 kevin Exp $ ;;;; -;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg +;;;; This file, part of UFFI, is Copyright (c) 2002-2003 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 :uffi-tests) +(in-package #:uffi-tests) -(eval-when (:load-toplevel :execute) - (unless (uffi:load-foreign-library - #-(or macosx darwin) - (uffi:find-foreign-library - "libz" - '("/usr/local/lib/" "/usr/lib/" "/zlib/") - :types '("so" "a")) - #+(or macosx darwin) - (uffi:find-foreign-library "z" - `(,(pathname-directory *load-pathname*))) - :module "zlib" - :supporting-libraries '("c")) - (warn "Unable to load zlib"))) - (uffi:def-function ("compress" c-compress) ((dest (* :unsigned-char)) (destlen (* :long)) @@ -100,7 +83,9 @@ (defun compress-uncompress (str) (multiple-value-bind (compressed len) (compress str) + (declare (ignore len)) (multiple-value-bind (uncompressed len2) (uncompress compressed) + (declare (ignore len2)) uncompressed)))