summaryrefslogtreecommitdiff
path: root/libguile/programs.h
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2010-01-05 16:50:58 +0100
committerAndy Wingo <wingo@pobox.com>2010-01-07 10:19:53 +0100
commitf318aa1e386a941df1d2cb2f4d82f8337578baa5 (patch)
tree707395c9689e7347ed84a7009d0a8ee33525db3f /libguile/programs.h
parent31a26df2cc91427f0a4281d6ac5a1c0b53a8c0f1 (diff)
downloadguile-f318aa1e386a941df1d2cb2f4d82f8337578baa5.tar.gz
add SCM_PROGRAM_IS_PRIMITIVE_GENERIC flag and checker
* libguile/programs.h (SCM_F_PROGRAM_IS_PRIMITIVE_GENERIC) (SCM_PROGRAM_IS_PRIMITIVE_GENERIC): Add a primitive-generic flag and accessor, for when we switch primitives to be implemented using VM trampolines.
Diffstat (limited to 'libguile/programs.h')
-rw-r--r--libguile/programs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libguile/programs.h b/libguile/programs.h
index 836f1ff0d..0ae5bfe9c 100644
--- a/libguile/programs.h
+++ b/libguile/programs.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001, 2009 Free Software Foundation, Inc.
+/* Copyright (C) 2001, 2009, 2010 Free Software Foundation, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
@@ -27,6 +27,7 @@
*/
#define SCM_F_PROGRAM_IS_BOOT 0x100
+#define SCM_F_PROGRAM_IS_PRIMITIVE_GENERIC 0x200
#define SCM_PROGRAM_P(x) (!SCM_IMP (x) && SCM_TYP7(x) == scm_tc7_program)
#define SCM_PROGRAM_OBJCODE(x) (SCM_CELL_OBJECT_1 (x))
@@ -35,6 +36,7 @@
#define SCM_PROGRAM_DATA(x) (SCM_OBJCODE_DATA (SCM_PROGRAM_OBJCODE (x)))
#define SCM_VALIDATE_PROGRAM(p,x) SCM_MAKE_VALIDATE (p, x, PROGRAM_P)
#define SCM_PROGRAM_IS_BOOT(x) (SCM_CELL_WORD_0 (x) & SCM_F_PROGRAM_IS_BOOT)
+#define SCM_PROGRAM_IS_PRIMITIVE_GENERIC(x) (SCM_CELL_WORD_0 (x) & SCM_F_PROGRAM_IS_PRIMITIVE_GENERIC)
SCM_API SCM scm_make_program (SCM objcode, SCM objtable, SCM free_variables);