+cl-uffi (1.2.22-1) unstable; urgency=low
+
+ * New upstream with Lispworks patch from Edi Weitz
+
+ -- Kevin M. Rosenberg <kmr@debian.org> Tue, 12 Aug 2003 08:09:04 -0600
+
cl-uffi (1.2.21-1) unstable; urgency=low
* New upstream -- fix for Franz's mlisp
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
-;;;; $Id: aggregates.lisp,v 1.7 2003/06/06 21:59:18 kevin Exp $
+;;;; $Id: aggregates.lisp,v 1.8 2003/08/13 18:53:42 kevin Exp $
;;;;
;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
#+(or cmu scl) `((* (alien:struct ,name)))
#+sbcl `((* (sb-alien:struct ,name)))
#+mcl `((:* (:struct ,name)))
- #-(or cmu sbcl scl mcl) `((* ,name))
+ #+lispworks `((:pointer ,name))
+ #-(or cmu sbcl scl mcl lispworks) `((* ,name))
`(,(convert-from-uffi-type type :struct))))))
(if variant
(push (list def) processed)
;;;; Author: Kevin M. Rosenberg
;;;; Date Started: Mar 2002
;;;;
-;;;; $Id: arrays.lisp,v 1.4 2003/05/01 04:59:37 kevin Exp $
+;;;; $Id: arrays.lisp,v 1.5 2003/08/13 18:53:42 kevin Exp $
;;;;
-;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
+;;;; This file, part of UFFI, is Copyright (c) 2002-2003 by Kevin M. Rosenberg
;;;;
-;;;; UFFI users are granted the rights to distribute and use this software
-;;;; as governed by the terms of the Lisp Lesser GNU Public License
-;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
;;;; *************************************************************************
-(in-package :uffi-tests)
+(in-package #:uffi-tests)
(uffi:def-constant +column-length+ 10)
(uffi:def-constant +row-length+ 10)
;;;; *************************************************************************
;;;; FILE IDENTIFICATION
;;;;
-;;;; Name: atoifl.cl
+;;;; Name: atoifl.lisp
;;;; Purpose: UFFI Example file to atoi/atof/atol
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Mar 2002
;;;;
-;;;; $Id: atoifl.lisp,v 1.2 2003/04/29 12:57:10 kevin Exp $
+;;;; $Id: atoifl.lisp,v 1.3 2003/08/13 18:53:42 kevin Exp $
;;;;
-;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
+;;;; This file, part of UFFI, is Copyright (c) 2002-2003 by Kevin M. Rosenberg
;;;;
-;;;; UFFI users are granted the rights to distribute and use this software
-;;;; as governed by the terms of the Lisp Lesser GNU Public License
-;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
;;;; *************************************************************************
-(in-package :uffi-tests)
+(in-package #:uffi-tests)
(uffi:def-function ("atoi" c-atoi)
((str :cstring))
;;;; Author: Kevin M. Rosenberg\r
;;;; Date Started: Feb 2002\r
;;;;\r
-;;;; $Id: compress.lisp,v 1.11 2003/05/02 02:50:12 kevin Exp $\r
+;;;; $Id: compress.lisp,v 1.12 2003/08/13 18:53:42 kevin Exp $\r
;;;;\r
-;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg\r
+;;;; This file, part of UFFI, is Copyright (c) 2002-2003 by Kevin M. Rosenberg\r
;;;;\r
-;;;; UFFI users are granted the rights to distribute and use this software\r
-;;;; as governed by the terms of the Lisp Lesser GNU Public License\r
-;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.\r
;;;; *************************************************************************\r
\r
-(in-package :uffi-tests)\r
+(in-package #:uffi-tests)\r
\r
(uffi:def-function ("compress" c-compress)\r
((dest (* :unsigned-char))\r
;;;; Author: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
-;;;; $Id: foreign-loader.lisp,v 1.3 2003/06/26 18:02:08 kevin Exp $
+;;;; $Id: foreign-loader.lisp,v 1.4 2003/08/13 18:53:42 kevin Exp $
;;;;
;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
-;;;; UFFI users are granted the rights to distribute and use this software
-;;;; as governed by the terms of the Lisp Lesser GNU Public License
-;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
;;;; *************************************************************************
;;; For CMUCL, it's necessary to load foreign files separate from their
;;; usage
-(in-package :uffi-tests)
+(in-package #:uffi-tests)
(eval-when (:compile-toplevel :load-toplevel :execute)
(unless (uffi:load-foreign-library
;;;; *************************************************************************
;;;; FILE IDENTIFICATION
;;;;
-;;;; Name: getenv.cl
+;;;; Name: getenv.lisp
;;;; Purpose: UFFI Example file to get environment variable
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
-;;;; $Id: getenv.lisp,v 1.3 2003/05/01 23:31:40 kevin Exp $
+;;;; $Id: getenv.lisp,v 1.4 2003/08/13 18:53:42 kevin Exp $
;;;;
-;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
+;;;; This file, part of UFFI, is Copyright (c) 2002-2003 by Kevin M. Rosenberg
;;;;
-;;;; UFFI users are granted the rights to distribute and use this software
-;;;; as governed by the terms of the Lisp Lesser GNU Public License
-;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
;;;; *************************************************************************
-(in-package :uffi-tests)
+(in-package #:uffi-tests)
(uffi:def-function ("getenv" c-getenv)
;;;; *************************************************************************
;;;; FILE IDENTIFICATION
;;;;
-;;;; Name: gethostname.cl
+;;;; Name: gethostname.lisp
;;;; Purpose: UFFI Example file to get hostname of system
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
-;;;; $Id: gethostname.lisp,v 1.5 2003/04/29 14:13:55 kevin Exp $
+;;;; $Id: gethostname.lisp,v 1.6 2003/08/13 18:53:42 kevin Exp $
;;;;
-;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
+;;;; This file, part of UFFI, is Copyright (c) 2002-2003 by Kevin M. Rosenberg
;;;;
-;;;; UFFI users are granted the rights to distribute and use this software
-;;;; as governed by the terms of the Lisp Lesser GNU Public License
-;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
;;;; *************************************************************************
-(in-package :uffi-tests)
+(in-package #:uffi-tests)
;;; This example is inspired by the example on the CL-Cookbook web site
;;;; *************************************************************************
;;;; FILE IDENTIFICATION
;;;;
-;;;; Name: strtol.cl
+;;;; Name: strtol.lisp
;;;; Purpose: UFFI Example file to strtol, uses pointer arithmetic
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
-;;;; $Id: strtol.lisp,v 1.2 2003/04/29 12:57:10 kevin Exp $
+;;;; $Id: strtol.lisp,v 1.3 2003/08/13 18:53:42 kevin Exp $
;;;;
-;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
+;;;; This file, part of UFFI, is Copyright (c) 2002-2003 by Kevin M. Rosenberg
;;;;
-;;;; UFFI users are granted the rights to distribute and use this software
-;;;; as governed by the terms of the Lisp Lesser GNU Public License
-;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
;;;; *************************************************************************
-(in-package :uffi-tests)
+(in-package #:uffi-tests)
(uffi:def-foreign-type char-ptr (* :unsigned-char))
--- /dev/null
+;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
+;;;; *************************************************************************
+;;;; FILE IDENTIFICATION
+;;;;
+;;;; Name: structs.lisp
+;;;; Purpose: UFFI Example file to strtol, uses pointer arithmetic
+;;;; Programmer: Kevin M. Rosenberg
+;;;; Date Started: Feb 2002
+;;;;
+;;;; $Id: structs.lisp,v 1.1 2003/08/13 18:53:42 kevin Exp $
+;;;;
+;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
+;;;;
+;;;; *************************************************************************
+
+(in-package #:uffi-tests)
+
+;; Compilation failure as reported by Edi Weitz
+
+
+(uffi:def-struct foo
+ (bar :pointer-self))
+
+(uffi:def-foreign-type foo-ptr (* foo))
+
+(uffi:def-function "baz"
+ ((x :int))
+ :returning foo-ptr
+ :module "frob")
+
+(defun test ()
+ (with-foreign-object (p 'foo)
+ (baz p)))
+
;;;; Author: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
-;;;; $Id: time.lisp,v 1.1 2003/04/30 14:06:14 kevin Exp $
+;;;; $Id: time.lisp,v 1.2 2003/08/13 18:53:42 kevin Exp $
;;;;
;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
-;;;; UFFI users are granted the rights to distribute and use this software
-;;;; as governed by the terms of the Lisp Lesser GNU Public License
-;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
;;;; *************************************************************************
-(in-package :uffi-tests)
+(in-package #:uffi-tests)
(uffi:def-foreign-type time-t :unsigned-long)
;;;; *************************************************************************
;;;; FILE IDENTIFICATION
;;;;
-;;;; Name: c-test-fns.cl
+;;;; Name: uffi-c-test-lib.lisp
;;;; Purpose: UFFI Example file for zlib compression
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Mar 2002
;;;;
-;;;; $Id: uffi-c-test-lib.lisp,v 1.2 2003/05/02 02:50:12 kevin Exp $
+;;;; $Id: uffi-c-test-lib.lisp,v 1.3 2003/08/13 18:53:42 kevin Exp $
;;;;
-;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
+;;;; This file, part of UFFI, is Copyright (c) 2002-2003 by Kevin M. Rosenberg
;;;;
-;;;; UFFI users are granted the rights to distribute and use this software
-;;;; as governed by the terms of the Lisp Lesser GNU Public License
-;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
;;;; *************************************************************************
-(in-package :uffi-tests)
+(in-package #:uffi-tests)
(uffi:def-function ("cs_to_upper" cs-to-upper)
;;;; *************************************************************************
;;;; FILE IDENTIFICATION
;;;;
-;;;; Name: union.cl
+;;;; Name: union.lisp
;;;; Purpose: UFFI Example file to test unions
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Mar 2002
;;;;
-;;;; $Id: union.lisp,v 1.4 2003/04/29 14:08:02 kevin Exp $
+;;;; $Id: union.lisp,v 1.5 2003/08/13 18:53:42 kevin Exp $
;;;;
-;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
+;;;; This file, part of UFFI, is Copyright (c) 2002-2003 by Kevin M. Rosenberg
;;;;
-;;;; UFFI users are granted the rights to distribute and use this software
-;;;; as governed by the terms of the Lisp Lesser GNU Public License
-;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
;;;; *************************************************************************
-(in-package :uffi-tests)
+(in-package #:uffi-tests)
(uffi:def-union tunion1
(char :char)
;;;; Author: Kevin M. Rosenberg
;;;; Date Started: Apr 2003
;;;;
-;;;; $Id: uffi-tests.asd,v 1.7 2003/05/02 02:50:12 kevin Exp $
+;;;; $Id: uffi-tests.asd,v 1.8 2003/08/13 18:53:42 kevin Exp $
;;;; *************************************************************************
(defpackage #:uffi-tests-system
(:file "gethostname" :depends-on ("package"))
(:file "union" :depends-on ("package"))
(:file "arrays" :depends-on ("package"))
+ (:file "structs" :depends-on ("package"))
(:file "time" :depends-on ("package"))
(:file "foreign-loader" :depends-on ("package"))
(:file "compress" :depends-on ("foreign-loader"))