projects
/
uffi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r1542: *** empty log message ***
[uffi.git]
/
tests
/
getenv.cl
diff --git
a/tests/getenv.cl
b/tests/getenv.cl
index 2f83426f11885b49601999ad5ba3904a3d41ace9..043e7fca72ed6b93d0704d344f0c0dff05ec1e5f 100644
(file)
--- a/
tests/getenv.cl
+++ b/
tests/getenv.cl
@@
-9,7
+9,7
@@
;;;;
;;;; Copyright (c) 2002 Kevin M. Rosenberg
;;;;
;;;;
;;;; Copyright (c) 2002 Kevin M. Rosenberg
;;;;
-;;;; $Id: getenv.cl,v 1.
4 2002/03/10 05:13:09
kevin Exp $
+;;;; $Id: getenv.cl,v 1.
6 2002/03/10 17:42:35
kevin Exp $
;;;;
;;;; This file is part of UFFI.
;;;;
;;;;
;;;; This file is part of UFFI.
;;;;
@@
-31,15
+31,14
@@
(uffi:def-function ("getenv" c-getenv)
(uffi:def-function ("getenv" c-getenv)
- ((name :c
-
string))
- :returning :c
-
string)
+ ((name :cstring))
+ :returning :cstring)
(defun my-getenv (key)
"Returns an environment variable, or NIL if it does not exist"
(check-type key string)
(defun my-getenv (key)
"Returns an environment variable, or NIL if it does not exist"
(check-type key string)
- (uffi:with-c-string (key-native key)
- (let ((value-c-string (c-getenv key-native)))
- (uffi:convert-from-c-string value-c-string))))
+ (uffi:with-cstring (key-native key)
+ (uffi:convert-from-cstring (c-getenv key-native))))
#+test-uffi
(progn
#+test-uffi
(progn