git.fiddlerwoaroof.com
Browse code

Add compat.lisp with a few compatibility routines

Orivej Desh authored on 10/02/2012 10:18:25
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,30 @@
1
+#+sbcl
2
+(require '#:sb-simple-streams)
3
+
4
+(rename-package 'acl-compat.mp 'acl-compat.mp
5
+                (union '(mp) (package-nicknames 'acl-compat.mp)))
6
+(rename-package 'acl-compat.excl 'acl-compat.excl
7
+                (union '(excl) (package-nicknames 'acl-compat.excl)))
8
+
9
+(in-package #:socket)
10
+(defvar make-ssl-client-stream)
11
+(setf (symbol-function 'make-ssl-client-stream) (symbol-function 'cl+ssl:make-ssl-client-stream))
12
+(export 'make-ssl-client-stream)
13
+
14
+(in-package #:cl-user)
15
+#+sbcl
16
+(unintern 'read-sequence)
17
+#+sbcl
18
+(import 'sb-simple-streams:read-sequence)
19
+
20
+(in-package #:excl)
21
+;; From PJB's cesarum.utility
22
+(defmacro while (condition &body body)
23
+  "While loop."
24
+  `(do () ((not ,condition))  ,@body))
25
+(defmacro until (condition &body body)
26
+  "Until loop."
27
+  `(do () (,condition)        ,@body))
28
+(defvar match-re)
29
+(setf (symbol-function 'match-re) (symbol-function 'match-regexp))
30
+(export '(while until match-re))