projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sb-bsd-sockets: check for MAKE-ALIEN success in GET-PROTOCOL-BY-NAME
[sbcl.git]
/
src
/
runtime
/
runtime.h
diff --git
a/src/runtime/runtime.h
b/src/runtime/runtime.h
index
2d4eea7
..
abf27da
100644
(file)
--- a/
src/runtime/runtime.h
+++ b/
src/runtime/runtime.h
@@
-168,7
+168,11
@@
FDEFN(lispobj obj)
static inline int
is_lisp_pointer(lispobj obj)
{
static inline int
is_lisp_pointer(lispobj obj)
{
+#if N_WORD_BITS == 64
+ return (obj & 3) == 3;
+#else
return obj & 1;
return obj & 1;
+#endif
}
#include "fixnump.h"
}
#include "fixnump.h"
@@
-229,6
+233,13
@@
fixnum_value(lispobj n)
#endif
typedef int boolean;
#endif
typedef int boolean;
+static inline boolean
+other_immediate_lowtag_p(lispobj header)
+{
+ /* These lowtags are spaced 4 apart throughout the lowtag space. */
+ return (lowtag_of(header) & 3) == OTHER_IMMEDIATE_0_LOWTAG;
+}
+
/* KLUDGE: As far as I can tell there's no ANSI C way of saying
* "this function never returns". This is the way that you do it
* in GCC later than version 2.5 or so. */
/* KLUDGE: As far as I can tell there's no ANSI C way of saying
* "this function never returns". This is the way that you do it
* in GCC later than version 2.5 or so. */
@@
-254,4
+265,7
@@
struct runtime_options {
size_t thread_control_stack_size;
};
size_t thread_control_stack_size;
};
+/* saved runtime path computed from argv[0] */
+extern char *saved_runtime_path;
+
#endif /* _SBCL_RUNTIME_H_ */
#endif /* _SBCL_RUNTIME_H_ */