X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fruntime.h;h=abf27dae1695bf9e163e42e915aa644047c15654;hb=ab5427d31da2bd95805cccc8e47b8f43d3dd606d;hp=2d4eea7e362a9396de5c303ab110220428b07be2;hpb=3cb38bad21763eb16bd89d89a5fac9a186ac625b;p=sbcl.git diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h index 2d4eea7..abf27da 100644 --- 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) { +#if N_WORD_BITS == 64 + return (obj & 3) == 3; +#else return obj & 1; +#endif } #include "fixnump.h" @@ -229,6 +233,13 @@ fixnum_value(lispobj n) #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. */ @@ -254,4 +265,7 @@ struct runtime_options { size_t thread_control_stack_size; }; +/* saved runtime path computed from argv[0] */ +extern char *saved_runtime_path; + #endif /* _SBCL_RUNTIME_H_ */