source: trunk/j/src/org/armedbear/lisp/swank-allegro.lisp @ 8462

Last change on this file since 8462 was 8462, checked in by piso, 16 years ago

Initial checkin.

File size: 1.7 KB
Line 
1;;; swank-allegro.lisp
2;;;
3;;; Copyright (C) 2005 Peter Graves
4;;; $Id: swank-allegro.lisp,v 1.1 2005-02-04 19:33:13 piso Exp $
5;;;
6;;; This program is free software; you can redistribute it and/or
7;;; modify it under the terms of the GNU General Public License
8;;; as published by the Free Software Foundation; either version 2
9;;; of the License, or (at your option) any later version.
10;;;
11;;; This program is distributed in the hope that it will be useful,
12;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with this program; if not, write to the Free Software
18;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19
20;;; Adapted from SLIME, the "Superior Lisp Interaction Mode for Emacs",
21;;; originally written by Eric Marsden, Luke Gorrie and Helmut Eller.
22
23(eval-when (:compile-toplevel :load-toplevel :execute)
24  (require :sock)
25  (require :process))
26
27(in-package #:swank)
28
29(defun create-socket (host port)
30  (socket:make-socket :connect :passive :local-port port
31                      :local-host host :reuse-address t))
32
33(defun local-port (socket)
34  (socket:local-port socket))
35
36(defun close-socket (socket)
37  (close socket))
38
39(defun accept-connection (socket)
40  (socket:accept-connection socket :wait t))
41
42(defun make-thread (function)
43  (mp:process-run-function nil function))
44
45(defun arglist (function-name)
46  (multiple-value-bind (arglist known-p) (excl:arglist function-name)
47    (if known-p
48        arglist
49        :not-available))))
50
51(defun find-definitions (name)
52  (declare (ignore name)))
Note: See TracBrowser for help on using the repository browser.