new function: is_lisp_immediate()
[sbcl/pkhuong.git] / src / runtime / ppc-darwin-os.h
blob6d23ee2166eedacb6bba9765e1da3c8e325686a3
1 #ifndef _PPC_DARWIN_OS_H
2 #define _PPC_DARWIN_OS_H
4 typedef unsigned int os_context_register_t;
6 static inline os_context_t *arch_os_get_context(void **void_context)
8 return (os_context_t *) *void_context;
10 /* As of XCode 3.0, the field names for the thread state have changed
11 * and now are prepended with __. Use some #define hackery to deal
12 * with this. MAC_OS_X_VERSION_10_5 seems to be a good test to see if
13 * we need the new style field names.
15 #if MAC_OS_X_VERSION_10_5
17 #define PPC_DARWIN_REGIFY(foo) __ ## foo
19 typedef ppc_thread_state_t ppc_ss_struct_t;
21 #else
23 #define PPC_DARWIN_REGIFY(foo) foo
25 typedef ppc_saved_state_t ppc_ss_struct_t;
27 #endif /* MAC_OS_X_VERSION_10_5 */
29 #endif /* _PPC_DARWIN_OS_H */