projects
/
uffi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r1919: *** empty log message ***
[uffi.git]
/
examples
/
compress.cl
diff --git
a/examples/compress.cl
b/examples/compress.cl
index 05fa6ffeddc5cbed25747d960ceda80f104e7d37..fb71d1b0106e7098875c806ec7a0a5c7d7b71cfb 100644
(file)
--- a/
examples/compress.cl
+++ b/
examples/compress.cl
@@
-7,7
+7,7
@@
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
-;;;; $Id: compress.cl,v 1.
9 2002/03/20 04:56:52
kevin Exp $
+;;;; $Id: compress.cl,v 1.
11 2002/04/02 21:29:45
kevin Exp $
;;;;
;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
;;;;
;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
@@
-18,9
+18,13
@@
(in-package :cl-user)
(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"))
+ :module "zlib"
+ :supporting-libraries '("c"))
(warn "Unable to load zlib"))
(uffi:def-function ("compress" c-compress)
(warn "Unable to load zlib"))
(uffi:def-function ("compress" c-compress)
@@
-55,7
+59,7
@@
(uffi:free-foreign-object dest)))))))
(uffi:free-foreign-object dest)))))))
-#+
test
-uffi
+#+
examples
-uffi
(progn
(flet ((print-results (str)
(multiple-value-bind (compressed len) (compress str)
(progn
(flet ((print-results (str)
(multiple-value-bind (compressed len) (compress str)