chiark
/
gitweb
/
~mdw
/
clg
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
73383a9
)
Made WITH-GC-DISABLED just a wrapper for internal CMUCL/SBCL macros
author
espen
<espen>
Sun, 17 Apr 2005 21:38:15 +0000
(21:38 +0000)
committer
espen
<espen>
Sun, 17 Apr 2005 21:38:15 +0000
(21:38 +0000)
glib/utils.lisp
patch
|
blob
|
blame
|
history
diff --git
a/glib/utils.lisp
b/glib/utils.lisp
index b1b402c83cd147152b8d0d89d9126eeaacc0a6fd..822a67390810f3e04a632edadc12e42c41b836d2 100644
(file)
--- a/
glib/utils.lisp
+++ b/
glib/utils.lisp
@@
-15,7
+15,7
@@
;; License along with this library; if not, write to the Free Software
;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
;; License along with this library; if not, write to the Free Software
;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-;; $Id: utils.lisp,v 1.
3 2005-02-03 23:09:0
5 espen Exp $
+;; $Id: utils.lisp,v 1.
4 2005-04-17 21:38:1
5 espen Exp $
(in-package "GLIB")
(in-package "GLIB")
@@
-45,15
+45,8
@@
(defun type-expand-to (type form)
(expand form)))
(defmacro with-gc-disabled (&body body)
(expand form)))
(defmacro with-gc-disabled (&body body)
- (let ((gc-inhibit (make-symbol "GC-INHIBIT")))
- `(progn
- (let ((,gc-inhibit #+cmu lisp::*gc-inhibit*
- #+sbcl sb-impl::*gc-inhibit*))
- (gc-off)
- (unwind-protect
- ,@body
- (unless ,gc-inhibit
- (gc-on)))))))
+ #+cmu`(system:without-gcing ,@body)
+ #+sbcl`(sb-impl::without-gcing ,@body))
(defun mklist (obj)
(if (and obj (atom obj)) (list obj) obj))
(defun mklist (obj)
(if (and obj (atom obj)) (list obj) obj))