Skip to content

Commit e5e1481

Browse files
committed
remove dep on pfff etc.
1 parent eb62ea1 commit e5e1481

11 files changed

+11
-26
lines changed

.appveyor.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ install:
1212
- 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))"
1313
- ps: cp -Recurse . C:\users\appveyor\quicklisp\local-projects\iup
1414
- 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"
1615
- cmd: git clone --depth=1 "https://github.com/lispnik/tecgraf-base.git" "C:\Users\appveyor\quicklisp\local-projects\tecgraf-base"
1716
- cmd: git clone --depth=1 "https://github.com/lispnik/im.git" "C:\Users\Appveyor\quicklisp\local-projects\im"
1817
- cmd: git clone --depth=1 "https://github.com/lispnik/cd.git" "C:\Users\Appveyor\quicklisp\local-projects\cd"
@@ -42,5 +41,4 @@ test: off
4241
# - cmd: %SBCL_HOME%\sbcl --noinform --non-interactive --load %CACHE\quicklisp.lisp --eval "(quicklisp-quickstart:install)"
4342
# - cmd: git clone --depth=1 "https://github.com/lispnik/im.git" "c:\quicklisp\local-projects\im"
4443
# - 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"
4644
# - cmd: git clone --depth=1 "https://github.com/lispnik/tecgraf-libs.git" "c:\quicklisp\local-projects\tecgraf-libs"

README.org

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ Download/clone the following systems:
7171

7272
- lispnik/`tecgraf-base`
7373

74-
- lispnik/`pffft`
75-
7674
Those are required by Iup.
7775

7876
Then load iup.asd in the usual way (e.g. `(ql:quickload "iup")`

gl/gl-cffi.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(defpackage #:iup-gl-cffi
22
(:use #:common-lisp)
3-
(:import-from #:tecgraf-base #:ihandle))
3+
(:import-from #:iup-cffi #:ihandle))
44

55
(in-package #:iup-gl-cffi)
66

glcontrols/glcontrols-cffi.lisp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(defpackage #:iup-glcontrols-cffi
2-
(:use #:common-lisp)
3-
(:import-from #:tecgraf-base #:ihandle))
2+
(:use #:common-lisp
3+
#:iup-cffi))
44

55
(in-package #:iup-glcontrols-cffi)
66

im/im-cffi.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(defpackage #:iup-im-cffi
22
(:use #:common-lisp)
3-
(:import-from #:tecgraf-base #:ihandle))
3+
(:import-from #:iup-cffi #:ihandle))
44

55
(in-package #:iup-im-cffi)
66

iup.asd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,4 @@
2929
#:trivial-arguments
3030
#:split-sequence
3131
#:parse-number
32-
#:pffft
3332
#:tecgraf-base))

iup/callback.lisp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,18 @@
33
(defun %make-key (name handle)
44
(format nil "~A-~X"
55
name
6-
(cffi:pointer-address (pffft:pointer handle))))
6+
handle))
77

88
(defvar *registered-callbacks* (make-hash-table :test 'equal))
99

1010
(defun register-callback (name handle action)
11-
(check-type handle tecgraf-base:ihandle)
1211
(setf (gethash (%make-key name handle) *registered-callbacks*)
1312
action))
1413

1514
(defun unregister-callback (name handle)
16-
(check-type handle tecgraf-base:ihandle)
1715
(remhash (%make-key name handle) *registered-callbacks*))
1816

1917
(defun find-callback (name handle)
20-
(check-type handle tecgraf-base:ihandle)
2118
(gethash (%make-key name handle) *registered-callbacks*))
2219

2320
(defun unregister-all-callbacks ()

iup/classes.lisp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
(#\V . :pointer) ;*void
1111
(#\C . :pointer) ;*cdCanvas
1212
(#\v . :pointer) ;FIXME Asked about this on mailing list, confirmed it should be "C"
13-
(#\n . tecgraf-base:ihandle)))
13+
(#\n . iup-cffi:ihandle)))
1414

1515
(defun class-callback-name (classname callback-name package)
1616
(declare (ignore package))
@@ -56,7 +56,7 @@
5656
for s = (assoc-value *iup-callback-encoding* c :test #'char=)
5757
for arg = (intern (format nil "ARG~A" i))
5858
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))))
6060
(return-and-arg-list (cl:list return-type arg-list))
6161
(callback-name (class-callback-name classname name package)))
6262
`(cffi:defcallback ,callback-name ,@return-and-arg-list

iup/iup-cffi.lisp

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(defpackage #:iup-cffi
22
(:use #:common-lisp
33
#:alexandria)
4-
(:import-from #:tecgraf-base #:ihandle))
4+
(:export #:ihandle))
55

66
(in-package #:iup-cffi)
77

@@ -12,14 +12,7 @@
1212

1313
(cffi:use-foreign-library iup)
1414

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)
2316

2417
(defun attr-name-from-c (value)
2518
(if (cffi:null-pointer-p value) nil value))

plot/plot-cffi.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(defpackage #:iup-plot-cffi
22
(:use #:common-lisp)
3-
(:import-from #:tecgraf-base #:ihandle))
3+
(:import-from #:iup-cffi #:ihandle))
44

55
(in-package #:iup-plot-cffi)
66

scintilla/scintilla-cffi.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(defpackage #:iup-scintilla-cffi
22
(:use #:common-lisp)
3-
(:import-from #:tecgraf-base #:ihandle))
3+
(:import-from #:iup-cffi #:ihandle))
44

55
(in-package #:iup-scintilla-cffi)
66

0 commit comments

Comments
 (0)