0.8.14.23:
authorChristophe Rhodes <csr21@cam.ac.uk>
Tue, 14 Sep 2004 17:25:16 +0000 (17:25 +0000)
committerChristophe Rhodes <csr21@cam.ac.uk>
Tue, 14 Sep 2004 17:25:16 +0000 (17:25 +0000)
Attempt to fix the fixnump()-related problems in the runtime.
This version Works For Me, but then so did the old one...

src/runtime/fixnump.h [new file with mode: 0644]
src/runtime/gc-common.c
src/runtime/gc-internal.h
src/runtime/gc.h
src/runtime/gencgc.c
src/runtime/purify.c
version.lisp-expr

diff --git a/src/runtime/fixnump.h b/src/runtime/fixnump.h
new file mode 100644 (file)
index 0000000..cb56fe0
--- /dev/null
@@ -0,0 +1,22 @@
+/*
+ * This software is part of the SBCL system. See the README file for
+ * more information.
+ *
+ * This software is derived from the CMU CL system, which was
+ * written at Carnegie Mellon University and released into the
+ * public domain. The software is in the public domain and is
+ * provided with absolutely no warranty. See the COPYING and CREDITS
+ * files for more information.
+ */
+
+#ifndef _FIXNUMP_H
+#define _FIXNUMP_H
+
+static inline int fixnump(lispobj obj) {
+    return((obj & 
+           (LOWTAG_MASK & 
+            (~(EVEN_FIXNUM_LOWTAG|ODD_FIXNUM_LOWTAG)))) 
+          == 0);
+}
+
+#endif
index 2dfe4c9..be3c62a 100644 (file)
@@ -37,6 +37,7 @@
 #include "validate.h"
 #include "lispregs.h"
 #include "arch.h"
+#include "fixnump.h"
 #include "gc.h"
 #include "genesis/primitive-objects.h"
 #include "genesis/static-symbols.h"
index 0b4bd4d..78aeaa0 100644 (file)
@@ -80,6 +80,8 @@ lispobj *search_read_only_space(void *pointer);
 lispobj *search_static_space(void *pointer);
 lispobj *search_dynamic_space(void *pointer);
 
+#include "fixnump.h"
+
 /* Scan an area looking for an object which encloses the given pointer.
  * Return the object start on success or NULL on failure. */
 static lispobj *
index 8b0f62e..6da2236 100644 (file)
@@ -29,11 +29,6 @@ extern void clear_auto_gc_trigger(void);
 
 extern int maybe_gc_pending;
 
-static inline int fixnump(lispobj obj) {
-    return((obj & 
-           (LOWTAG_MASK & 
-            (~(EVEN_FIXNUM_LOWTAG|ODD_FIXNUM_LOWTAG)))) 
-          == 0);
-}
+#include "fixnump.h"
 
 #endif /* _GC_H_ */
index b50b8d8..212c711 100644 (file)
@@ -37,6 +37,7 @@
 #include "validate.h"
 #include "lispregs.h"
 #include "arch.h"
+#include "fixnump.h"
 #include "gc.h"
 #include "gc-internal.h"
 #include "thread.h"
index 1cac459..e212972 100644 (file)
@@ -27,6 +27,7 @@
 #include "interrupt.h"
 #include "purify.h"
 #include "interr.h"
+#include "fixnump.h"
 #include "gc.h"
 #include "gc-internal.h"
 #include "thread.h"
index 4b6b8bf..2ac5955 100644 (file)
@@ -17,4 +17,4 @@
 ;;; checkins which aren't released. (And occasionally for internal
 ;;; versions, especially for internal versions off the main CVS
 ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"0.8.14.22"
+"0.8.14.23"