From e7691ffb0055b6a2c27639838b3b594e808f8973 Mon Sep 17 00:00:00 2001 From: "Kevin M. Rosenberg" Date: Sun, 10 Mar 2002 04:36:04 +0000 Subject: [PATCH] r1525: *** empty log message *** --- ChangeLog | 2 +- examples/strtol.cl | 6 +++--- examples/test-all-examples.cl | 4 ++-- tests/strtol.cl | 6 +++--- tests/test-all-examples.cl | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index d9bace3..1000077 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,7 +3,7 @@ - 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 diff --git a/examples/strtol.cl b/examples/strtol.cl index d813f13..387d23b 100644 --- a/examples/strtol.cl +++ b/examples/strtol.cl @@ -9,7 +9,7 @@ ;;;; ;;;; 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. ;;;; @@ -29,14 +29,14 @@ (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) diff --git a/examples/test-all-examples.cl b/examples/test-all-examples.cl index a2a62de..5e39177 100644 --- a/examples/test-all-examples.cl +++ b/examples/test-all-examples.cl @@ -5,11 +5,11 @@ (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*)) diff --git a/tests/strtol.cl b/tests/strtol.cl index d813f13..387d23b 100644 --- a/tests/strtol.cl +++ b/tests/strtol.cl @@ -9,7 +9,7 @@ ;;;; ;;;; 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. ;;;; @@ -29,14 +29,14 @@ (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) diff --git a/tests/test-all-examples.cl b/tests/test-all-examples.cl index a2a62de..5e39177 100644 --- a/tests/test-all-examples.cl +++ b/tests/test-all-examples.cl @@ -5,11 +5,11 @@ (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*)) -- 2.34.1