git.fiddlerwoaroof.com
Browse code

Restore Allegro *features* conditionals

Orivej Desh authored on 10/02/2012 19:07:33
Showing 1 changed files
... ...
@@ -1904,7 +1904,8 @@
1904 1904
 
1905 1905
 
1906 1906
 ;  this used to be exported from the excl package
1907
-;; #+(version>= 6 0)
1907
+#+(or (and allegro (version>= 6 0))
1908
+      (not allegro))
1908 1909
 (defvar *keyword-package* (find-package :keyword))
1909 1910
 
1910 1911
 (defun kwd-intern-possible-list (form)
... ...
@@ -2084,15 +2085,15 @@
2084 2085
 
2085 2086
 (defvar *line-buffers* nil)
2086 2087
 
2087
-;; #+(version>= 8 1)
2088
-;; (defvar *line-buffers-lock* (make-basic-lock :name "line-buffers"))
2088
+#+(and allegro (version>= 8 1))
2089
+(defvar *line-buffers-lock* (make-basic-lock :name "line-buffers"))
2089 2090
 
2090 2091
 (defmacro with-locked-line-buffers (&rest body)
2091
-;; #+(version>= 8 1)
2092
-;;   `(with-locked-structure (*line-buffers-lock*
2093
-;;                         :non-smp :without-scheduling)
2094
-;;      ,@body)
2095
-;; #-(version>= 8 1)
2092
+  #+(and allegro (version>= 8 1))
2093
+  `(with-locked-structure (*line-buffers-lock*
2094
+                        :non-smp :without-scheduling)
2095
+     ,@body)
2096
+  #-(and allegro (version>= 8 1))
2096 2097
   `(mp:without-scheduling ,@body)
2097 2098
   )
2098 2099