r2784: *** empty log message ***
[uffi.git] / tests / compress.cl
index e077e0ab242a627317bf18f46486894c5270e61e..475be125129cbc584147ec3e5123125b5905dd84 100644 (file)
@@ -1,4 +1,4 @@
-;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*-
+;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
 ;;;; *************************************************************************
 ;;;; FILE IDENTIFICATION
 ;;;;
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Feb 2002
 ;;;;
-;;;; $Id: compress.cl,v 1.7 2002/03/14 21:03:12 kevin Exp $
+;;;; $Id: compress.cl,v 1.12 2002/09/20 04:51:14 kevin Exp $
 ;;;;
 ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
 
 (in-package :cl-user)
 
-(unless (uffi:load-foreign-library "/usr/lib/libz.so" 
-                                  :module "zlib" 
-                                  :supporting-libraries '("c"))
+(unless (uffi:load-foreign-library
+        (uffi:find-foreign-library
+         "libz"
+         '("/usr/local/lib/" "/usr/lib/" "/zlib/")
+         :types '("so" "a" "dylib"))
+        :module "zlib" 
+        :supporting-libraries '("c"))
   (warn "Unable to load zlib"))
 
 (uffi:def-function ("compress" c-compress)
@@ -55,7 +59,7 @@
            (uffi:free-foreign-object dest)))))))
 
 
-#+test-uffi
+#+examples-uffi
 (progn
   (flet ((print-results (str)
           (multiple-value-bind (compressed len) (compress str)