- Fixed bug in def-function for Lispworks
- Fixed error in +null-c-string-pointer+ name
- Fixed error in (make-null-pointer) for Lispworks
-
+ - Fixed error in strtol example
8 Mar 2002
- Added ZIP file output with LF->CRLF translations to distribution
;;;;
;;;; Copyright (c) 2002 Kevin M. Rosenberg
;;;;
-;;;; $Id: strtol.cl,v 1.3 2002/03/10 04:15:33 kevin Exp $
+;;;; $Id: strtol.cl,v 1.4 2002/03/10 04:36:04 kevin Exp $
;;;;
;;;; This file is part of UFFI.
;;;;
(in-package :cl-user)
-(uffi:def-type char-ptr (* :char))
+(uffi:def-type char-ptr (* :unsigned-char))
;; This example does not use :c-string to pass the input string since
;; the routine needs to do pointer arithmetic to see how many characters
;; were parsed
(uffi:def-function ("strtol" c-strtol)
- ((nptr (* :char))
+ ((nptr (* :unsigned-char))
(endptr (* char-ptr))
(base :int))
:returning :long)
(flet ((load-test (name)
(load (make-pathname :name name :type "cl" :defaults *load-truename*))))
+ (load-test "strtol")
+ (load-test "gettime")
(load-test "getenv")
(load-test "gethostname")
(load-test "getshells")
- (load-test "gettime")
- (load-test "strtol")
(load-test "compress"))
(setq cl:*features* (remove :test-uffi cl:*features*))
;;;;
;;;; Copyright (c) 2002 Kevin M. Rosenberg
;;;;
-;;;; $Id: strtol.cl,v 1.3 2002/03/10 04:15:33 kevin Exp $
+;;;; $Id: strtol.cl,v 1.4 2002/03/10 04:36:04 kevin Exp $
;;;;
;;;; This file is part of UFFI.
;;;;
(in-package :cl-user)
-(uffi:def-type char-ptr (* :char))
+(uffi:def-type char-ptr (* :unsigned-char))
;; This example does not use :c-string to pass the input string since
;; the routine needs to do pointer arithmetic to see how many characters
;; were parsed
(uffi:def-function ("strtol" c-strtol)
- ((nptr (* :char))
+ ((nptr (* :unsigned-char))
(endptr (* char-ptr))
(base :int))
:returning :long)
(flet ((load-test (name)
(load (make-pathname :name name :type "cl" :defaults *load-truename*))))
+ (load-test "strtol")
+ (load-test "gettime")
(load-test "getenv")
(load-test "gethostname")
(load-test "getshells")
- (load-test "gettime")
- (load-test "strtol")
(load-test "compress"))
(setq cl:*features* (remove :test-uffi cl:*features*))