File tree 11 files changed +11
-26
lines changed 11 files changed +11
-26
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ install:
12
12
- cmd : C:\Cache\sbcl\sbcl --non-interactive --load C:\cache\quicklisp.lisp --eval "(quicklisp-quickstart:install)" --eval "(ql-util:without-prompting (ql:add-to-init-file))"
13
13
- ps : cp -Recurse . C:\users\appveyor\quicklisp\local-projects\iup
14
14
- cmd : git clone --depth=1 "https://github.com/lispnik/tecgraf-libs.git" "C:\Users\appveyor\quicklisp\local-projects\tecgraf-libs"
15
- - cmd : git clone --depth=1 "https://github.com/lispnik/pffft.git" "C:\Users\Appveyor\quicklisp\local-projects\pffft"
16
15
- cmd : git clone --depth=1 "https://github.com/lispnik/tecgraf-base.git" "C:\Users\appveyor\quicklisp\local-projects\tecgraf-base"
17
16
- cmd : git clone --depth=1 "https://github.com/lispnik/im.git" "C:\Users\Appveyor\quicklisp\local-projects\im"
18
17
- cmd : git clone --depth=1 "https://github.com/lispnik/cd.git" "C:\Users\Appveyor\quicklisp\local-projects\cd"
@@ -42,5 +41,4 @@ test: off
42
41
# - cmd: %SBCL_HOME%\sbcl --noinform --non-interactive --load %CACHE\quicklisp.lisp --eval "(quicklisp-quickstart:install)"
43
42
# - cmd: git clone --depth=1 "https://github.com/lispnik/im.git" "c:\quicklisp\local-projects\im"
44
43
# - cmd: git clone --depth=1 "https://github.com/lispnik/cd.git" "c:\quicklisp\local-projects\cd"
45
- # - cmd: git clone --depth=1 "https://github.com/lispnik/pfft.git" "c:\quicklisp\local-projects\pffft"
46
44
# - cmd: git clone --depth=1 "https://github.com/lispnik/tecgraf-libs.git" "c:\quicklisp\local-projects\tecgraf-libs"
Original file line number Diff line number Diff line change @@ -71,8 +71,6 @@ Download/clone the following systems:
71
71
72
72
- lispnik/`tecgraf-base`
73
73
74
- - lispnik/`pffft`
75
-
76
74
Those are required by Iup.
77
75
78
76
Then load iup.asd in the usual way (e.g. `(ql:quickload "iup")`
Original file line number Diff line number Diff line change 1
1
(defpackage #:iup-gl-cffi
2
2
(:use # :common-lisp)
3
- (:import-from # :tecgraf-base # :ihandle))
3
+ (:import-from # :iup-cffi # :ihandle))
4
4
5
5
(in-package # :iup-gl-cffi)
6
6
Original file line number Diff line number Diff line change 1
1
(defpackage #:iup-glcontrols-cffi
2
- (:use # :common-lisp)
3
- ( :import-from # :tecgraf-base # :ihandle ))
2
+ (:use # :common-lisp
3
+ # :iup-cffi ))
4
4
5
5
(in-package # :iup-glcontrols-cffi)
6
6
Original file line number Diff line number Diff line change 1
1
(defpackage #:iup-im-cffi
2
2
(:use # :common-lisp)
3
- (:import-from # :tecgraf-base # :ihandle))
3
+ (:import-from # :iup-cffi # :ihandle))
4
4
5
5
(in-package # :iup-im-cffi)
6
6
Original file line number Diff line number Diff line change 29
29
# :trivial-arguments
30
30
# :split-sequence
31
31
# :parse-number
32
- # :pffft
33
32
# :tecgraf-base))
Original file line number Diff line number Diff line change 3
3
(defun %make-key (name handle)
4
4
(format nil " ~A -~X "
5
5
name
6
- ( cffi :pointer-address ( pffft :pointer handle)) ))
6
+ handle))
7
7
8
8
(defvar *registered-callbacks* (make-hash-table :test ' equal))
9
9
10
10
(defun register-callback (name handle action)
11
- (check-type handle tecgraf-base :ihandle)
12
11
(setf (gethash (%make-key name handle) *registered-callbacks* )
13
12
action))
14
13
15
14
(defun unregister-callback (name handle)
16
- (check-type handle tecgraf-base :ihandle)
17
15
(remhash (%make-key name handle) *registered-callbacks* ))
18
16
19
17
(defun find-callback (name handle)
20
- (check-type handle tecgraf-base :ihandle)
21
18
(gethash (%make-key name handle) *registered-callbacks* ))
22
19
23
20
(defun unregister-all-callbacks ()
Original file line number Diff line number Diff line change 10
10
(#\V . :pointer ) ; *void
11
11
(#\C . :pointer ) ; *cdCanvas
12
12
(#\v . :pointer ) ; FIXME Asked about this on mailing list, confirmed it should be "C"
13
- (#\n . tecgraf-base :ihandle)))
13
+ (#\n . iup-cffi :ihandle)))
14
14
15
15
(defun class-callback-name (classname callback-name package )
16
16
(declare (ignore package ))
56
56
for s = (assoc-value *iup-callback-encoding* c :test #' char= )
57
57
for arg = (intern (format nil " ARG~A " i))
58
58
collect (cl :list arg s) into arg-list
59
- finally (return (list* ' (arg0 tecgraf-base :ihandle) arg-list))))
59
+ finally (return (list* ' (arg0 iup-cffi :ihandle) arg-list))))
60
60
(return-and-arg-list (cl :list return-type arg-list))
61
61
(callback-name (class-callback-name classname name package )))
62
62
` (cffi :defcallback , callback-name ,@ return-and-arg-list
Original file line number Diff line number Diff line change 1
1
(defpackage #:iup-cffi
2
2
(:use # :common-lisp
3
3
# :alexandria)
4
- (:import-from # :tecgraf-base # :ihandle))
4
+ (:export # :ihandle))
5
5
6
6
(in-package # :iup-cffi)
7
7
12
12
13
13
(cffi :use-foreign-library iup)
14
14
15
- (defmethod print-object ((object ihandle) stream )
16
- (print-unreadable-object (object stream :type t )
17
- (let ((pointer (pffft :pointer object)))
18
- (if (cffi :null-pointer-p pointer)
19
- (write-string " NULL" stream )
20
- (format stream " ~S ~X "
21
- (iup-cffi ::%iup-get-class-name object)
22
- (cffi :pointer-address pointer))))))
15
+ (cffi :defctype ihandle :pointer )
23
16
24
17
(defun attr-name-from-c (value)
25
18
(if (cffi :null-pointer-p value) nil value))
Original file line number Diff line number Diff line change 1
1
(defpackage #:iup-plot-cffi
2
2
(:use # :common-lisp)
3
- (:import-from # :tecgraf-base # :ihandle))
3
+ (:import-from # :iup-cffi # :ihandle))
4
4
5
5
(in-package # :iup-plot-cffi)
6
6
Original file line number Diff line number Diff line change 1
1
(defpackage #:iup-scintilla-cffi
2
2
(:use # :common-lisp)
3
- (:import-from # :tecgraf-base # :ihandle))
3
+ (:import-from # :iup-cffi # :ihandle))
4
4
5
5
(in-package # :iup-scintilla-cffi)
6
6
You can’t perform that action at this time.
0 commit comments