r1525: *** empty log message ***
authorKevin M. Rosenberg <kevin@rosenberg.net>
Sun, 10 Mar 2002 04:36:04 +0000 (04:36 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Sun, 10 Mar 2002 04:36:04 +0000 (04:36 +0000)
ChangeLog
examples/strtol.cl
examples/test-all-examples.cl
tests/strtol.cl
tests/test-all-examples.cl

index d9bace39663d48bd98655500d8769bc08afb05ee..1000077e66274844cd8903f3a08128f9afb594e4 100644 (file)
--- 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
index d813f1333173b416c20f976d76cfce96813caaf6..387d23b26b639b4a8fbf7705d1ecc1a20ccf0b14 100644 (file)
@@ -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. 
 ;;;;
 
 (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)
index a2a62de55abce8aabbbf23be10a6ae2e53138ce2..5e39177cf439b4f91d82ca24ad0bdebf54dbe7ab 100644 (file)
@@ -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*))
index d813f1333173b416c20f976d76cfce96813caaf6..387d23b26b639b4a8fbf7705d1ecc1a20ccf0b14 100644 (file)
@@ -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. 
 ;;;;
 
 (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)
index a2a62de55abce8aabbbf23be10a6ae2e53138ce2..5e39177cf439b4f91d82ca24ad0bdebf54dbe7ab 100644 (file)
@@ -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*))