Skip to content

Commit 9930d13

Browse files
committed
Make it work with LispWorks
1 parent 7dc9b46 commit 9930d13

File tree

2 files changed

+19
-14
lines changed

2 files changed

+19
-14
lines changed

backend/lispworks.lisp

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
;;; are disclaimed.
99
;;;
1010

11-
(defpackage swank/lispworks
12-
(:use cl swank/backend))
11+
(defpackage micros/lispworks
12+
(:use cl micros/backend))
1313

14-
(in-package swank/lispworks)
14+
(in-package micros/lispworks)
1515

1616
(eval-when (:compile-toplevel :load-toplevel :execute)
1717
(require "comm"))
@@ -27,34 +27,34 @@
2727
:eql-specializer-object
2828
:compute-applicable-methods-using-classes))
2929

30-
(defun swank-mop:slot-definition-documentation (slot)
30+
(defun micros/mop:slot-definition-documentation (slot)
3131
(documentation slot t))
3232

33-
(defun swank-mop:slot-boundp-using-class (class object slotd)
33+
(defun micros/mop:slot-boundp-using-class (class object slotd)
3434
(clos:slot-boundp-using-class class object
3535
(clos:slot-definition-name slotd)))
3636

37-
(defun swank-mop:slot-value-using-class (class object slotd)
37+
(defun micros/mop:slot-value-using-class (class object slotd)
3838
(clos:slot-value-using-class class object
3939
(clos:slot-definition-name slotd)))
4040

41-
(defun (setf swank-mop:slot-value-using-class) (value class object slotd)
41+
(defun (setf micros/mop:slot-value-using-class) (value class object slotd)
4242
(setf (clos:slot-value-using-class class object
4343
(clos:slot-definition-name slotd))
4444
value))
4545

46-
(defun swank-mop:slot-makunbound-using-class (class object slotd)
46+
(defun micros/mop:slot-makunbound-using-class (class object slotd)
4747
(clos:slot-makunbound-using-class class object
4848
(clos:slot-definition-name slotd)))
4949

50-
(defun swank-mop:compute-applicable-methods-using-classes (gf classes)
50+
(defun micros/mop:compute-applicable-methods-using-classes (gf classes)
5151
(clos::compute-applicable-methods-from-classes gf classes))
5252

5353
;; lispworks doesn't have the eql-specializer class, it represents
5454
;; them as a list of `(EQL ,OBJECT)
55-
(deftype swank-mop:eql-specializer () 'cons)
55+
(deftype micros/mop:eql-specializer () 'cons)
5656

57-
(defun swank-mop:eql-specializer-object (eql-spec)
57+
(defun micros/mop:eql-specializer-object (eql-spec)
5858
(second eql-spec))
5959

6060
(eval-when (:compile-toplevel :execute :load-toplevel)
@@ -168,6 +168,9 @@
168168

169169
;;; Unix signals
170170

171+
#-win32
172+
(defconstant +sigint+ 2)
173+
171174
(defun sigint-handler ()
172175
(with-simple-restart (continue "Continue from SIGINT handler.")
173176
(invoke-debugger "SIGINT")))
@@ -321,13 +324,13 @@ Return NIL if the symbol is unbound."
321324
(defmethod env-internals:environment-display-notifier
322325
((env slime-env) &key restarts condition)
323326
(declare (ignore restarts condition))
324-
(swank:swank-debugger-hook condition *debugger-hook*))
327+
(micros::swank-debugger-hook condition *debugger-hook*))
325328

326329
(defmethod env-internals:environment-display-debugger ((env slime-env))
327330
*debug-io*)
328331

329332
(defmethod env-internals:confirm-p ((e slime-env) &optional msg &rest args)
330-
(apply #'swank:y-or-n-p-in-emacs msg args))
333+
(apply #'micros::y-or-n-p-in-emacs msg args))
331334

332335
(defimplementation call-with-debugger-hook (hook fun)
333336
(let ((*debugger-hook* hook))
@@ -375,7 +378,7 @@ Return NIL if the symbol is unbound."
375378
name)))
376379
(nth-next-frame frame 1)))))
377380
(or (find-named-frame 'invoke-debugger)
378-
(find-named-frame 'swank::safe-backtrace)
381+
(find-named-frame 'micros::safe-backtrace)
379382
;; if we can't find a likely top frame, take any old frame
380383
;; at the top
381384
(dbg::debugger-stack-current-frame dbg::*debugger-stack*))))

micros.asd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
(:file "ccl")
2121
#+ecl
2222
(:file "ecl")
23+
#+lispworks
24+
(:file "lispworks")
2325
(:file "gray")
2426
(:file "match")
2527
(:file "rpc")))

0 commit comments

Comments
 (0)