chiark / gitweb /
Added alien type specifier OPTIMIZED-DOUBLE-FLOAT
[clg] / gffi / defpackage.lisp
CommitLineData
b286c6ed 1;; Common Lisp bindings for GTK+ v2.x
2;; Copyright 2006 Espen S. Johnsen <espen@users.sf.net>
3;;
4;; Permission is hereby granted, free of charge, to any person obtaining
5;; a copy of this software and associated documentation files (the
6;; "Software"), to deal in the Software without restriction, including
7;; without limitation the rights to use, copy, modify, merge, publish,
8;; distribute, sublicense, and/or sell copies of the Software, and to
9;; permit persons to whom the Software is furnished to do so, subject to
10;; the following conditions:
11;;
12;; The above copyright notice and this permission notice shall be
13;; included in all copies or substantial portions of the Software.
14;;
15;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16;; EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17;; MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18;; IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
19;; CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
5fa2eaf1 23;; $Id: defpackage.lisp,v 1.7 2007-01-02 15:20:32 espen Exp $
b286c6ed 24
25(defpackage "GFFI"
26 (:use "COMMON-LISP" "AUTOEXPORT" "PKG-CONFIG" "CLG-UTILS")
27 #+cmu(:use "SYSTEM" "KERNEL" "PCL" "EXT")
28 #+sbcl(:use "SB-SYS" "SB-KERNEL" "SB-MOP" "SB-EXT")
29 #+clisp(:use "CLOS" "EXT")
30 #+(or cmu sbcl)(:shadow "POINTER")
31 #+cmu(:shadowing-import-from "PCL" "CLASS-DIRECT-SUPERCLASSES")
32 #+clisp(:shadow "TYPE-EXPAND-1" "SLOT-DEFINITION-TYPE")
33 #+(or cmu sbcl)
34 (:import-from #+cmu"PCL" #+sbcl"SB-PCL"
35 "READER-FUNCTION" "WRITER-FUNCTION" "BOUNDP-FUNCTION"
36 "INITIALIZE-INTERNAL-SLOT-FUNCTIONS" "COMPUTE-SLOT-ACCESSOR-INFO"
37 "COMPUTE-EFFECTIVE-SLOT-DEFINITION-INITARGS"
38 #?-(pkg-config:sbcl>= 0 9 8)"INITIALIZE-INTERNAL-SLOT-GFS")
39 #+cmu(:import-from "ALIEN" "CALLBACK")
40 #+(or cmu sbcl)
41 (:import-from #+cmu"ALIEN" #+sbcl"SB-ALIEN"
42 "WITH-ALIEN" "ALIEN-FUNCALL" "%HEAP-ALIEN" "MAKE-HEAP-ALIEN-INFO"
43 "ADDR" "PARSE-ALIEN-TYPE" "SYSTEM-AREA-POINTER" "EXTERN-ALIEN"
44 "ALIEN-SAP")
45 #+cmu(:import-from "C-CALL" "VOID" "C-STRING")
46 #+sbcl(:import-from "SB-ALIEN" "VOID" "C-STRING")
47 ;; Symbols from memory.lisp
48 (:export "MAKE-POINTER" "POINTER-ADDRESS" "NULL-POINTER-P" "POINTER="
49 "POINTER+" "REF-POINTER" "REF-BYTE" "ALLOCATE-MEMORY"
50 "DEALLOCATE-MEMORY" "COPY-MEMORY" "CLEAR-MEMORY" "MEMORY-CLEAR-P"
bf54963e 51 "WITH-MEMORY" "WITH-POINTER" "*MEMORY-ALLOCATOR*"
52 "*MEMORY-DEALLOCATOR*")
b286c6ed 53 ;; Symbols from interface.lisp
54 (:export "DEFBINDING" "MKBINDING" "USE-PREFIX" "PACKAGE-PREFIX"
55 "DEFINE-CALLBACK" "CALLBACK" "CALLBACK-ADDRESS"
56 "DEFINE-TYPE-GENERIC" "DEFINE-TYPE-METHOD" "IN-ARG-P" "OUT-ARG-P"
57 "DEFAULT-ALIEN-TYPE-NAME" "DEFAULT-TYPE-NAME" "TYPE-EXPAND"
58 "TYPE-EXPAND-1" "TYPE-EXPAND-TO")
59 ;; Symbols from basic-types.lisp
90e8bbf6 60 (:export "LONG" "UNSIGNED-LONG" "INT" "UNSIGNED-INT" "SHORT" "UNSIGNED-SHORT"
61 "SIGNED" "UNSIGNED" "CHAR" "POINTER" "BOOL" "COPY-OF" "STATIC"
62 "SIZE-OF" "TYPE-ALIGNMENT" "ALIEN-TYPE" "UNBOUND-VALUE"
b286c6ed 63 "ALIEN-ARG-WRAPPER" "TO-ALIEN-FORM" "FROM-ALIEN-FORM"
64 "CALLBACK-WRAPPER" "TO-ALIEN-FUNCTION" "FROM-ALIEN-FUNCTION"
65 "READER-FUNCTION" "WRITER-FUNCTION" "GETTER-FUNCTION"
66 "PEEK-FUNCTION" "DESTROY-FUNCTION" "UNBOUND-VALUE"
09d572a5 67 "COPY-FUNCTION" "ASSERT-INLINED" "ASSERT-NOT-INLINED"
5fa2eaf1 68 "UTF8-LENGTH" "OPTIMIZED-DOUBLE-FLOAT")
b286c6ed 69 ;; Symbols from vector.lisp
70 (:export "MAKE-C-VECTOR" "MAP-C-VECTOR" "WITH-C-VECTOR" "COUNTED-VECTOR"
71 "NULL-TERMINATED-VECTOR")
72 ;; Symbols from enums.lisp
73 (:export "ENUM" "ENUM-INT" "INT-ENUM" "ENUM-MAPPING" "DEFINE-ENUM-TYPE"
74 "FLAGS" "DEFINE-FLAGS-TYPE")
75 ;; Symbols from virtual-slots.lisp
76 (:export "VIRTUAL-SLOTS-CLASS" "DIRECT-VIRTUAL-SLOT-DEFINITION"
77 "EFFECTIVE-VIRTUAL-SLOT-DEFINITION" "DIRECT-SPECIAL-SLOT-DEFINITION"
78 "EFFECTIVE-SPECIAL-SLOT-DEFINITION" "COMPUTE-MOST-SPECIFIC-INITARGS"
79 "MOST-SPECIFIC-SLOT-VALUE" "VIRTUAL-SLOTS-OBJECT"
80 "COMPUTE-EFFECTIVE-SLOT-DEFINITION-INITARGS" "BOUNDP-FUNCTION"
81 "COMPUTE-SLOT-READER-FUNCTION" "COMPUTE-SLOT-BOUNDP-FUNCTION"
82 "COMPUTE-SLOT-WRITER-FUNCTION" "COMPUTE-SLOT-MAKUNBOUND-FUNCTION"
2bd78f93 83 "SLOT-READABLE-P" "SLOT-WRITABLE-P" #+clisp"SLOT-DEFINITION-TYPE")
b286c6ed 84 ;; Symbols from proxy.lisp
85 (:export "CACHE-INSTANCE" "FIND-CACHED-INSTANCE" "LIST-CACHED-INSTANCES"
86 "REMOVE-CACHED-INSTANCE" "PROXY" "INSTANCE-FINALIZER"
87 "REFERENCE-FUNCTION" "UNREFERENCE-FUNCTION" "INVALIDATE-INSTANCE"
88 "ALLOCATE-FOREIGN" "FOREIGN-LOCATION" "PROXY-VALID-P"
89 "MOST-SPECIFIC-PROXY-SUPERCLASS" "DIRECT-PROXY-SUPERCLASS"
90 "PROXY-CLASS" "FOREIGN-SIZE-P" "DIRECT-ALIEN-SLOT-DEFINITION"
91 "EFFECTIVE-ALIEN-SLOT-DEFINITION" "FOREIGN-SIZE" "REF" "UNREF"
92 "ENSURE-PROXY-INSTANCE" "MAKE-PROXY-INSTANCE" "STRUCT"
9bd651a2 93 "STRUCT-CLASS" "STATIC-STRUCT-CLASS" "INLINED" "ADJUST-OFFSET"))