summaryrefslogtreecommitdiff
path: root/libgpython/include/gpython/runtime.h
diff options
context:
space:
mode:
authorredbrain <redbrain@gcc.gnu.org>2012-04-21 19:12:19 +0100
committerredbrain <redbrain@gcc.gnu.org>2012-04-21 19:12:19 +0100
commit6bb2994a691ee688ac538c2ac9d382804aad5abe (patch)
tree9bf8e9a3e0886c75383b07c144be6a157b285c11 /libgpython/include/gpython/runtime.h
parent30903ba9eb9e6b3f3d926041cfc438c71377d6f6 (diff)
downloadgcc-alpha-v0.1.tar.gz
lots of argument passing work finished and we can compile python nowalpha-v0.1
Diffstat (limited to 'libgpython/include/gpython/runtime.h')
-rw-r--r--libgpython/include/gpython/runtime.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/libgpython/include/gpython/runtime.h b/libgpython/include/gpython/runtime.h
index cf049237667..11ecfd3597e 100644
--- a/libgpython/include/gpython/runtime.h
+++ b/libgpython/include/gpython/runtime.h
@@ -17,7 +17,22 @@ along with GCC; see the file COPYING3. If not see
#ifndef __GCC_RUNTIME_H__
#define __GCC_RUNTIME_H__
-extern gpy_object_t * gpy_rr_fold_functor_decl (const char *, unsigned char *);
+/*
+ accesors to the internal types...
+ */
+#define __gpy_integer_type_node \
+ (gpy_typedef_t *) __GPY_GLOBL_PRIMITIVES->vector[0]
+#define __gpy_staticmethod_type_node \
+ (gpy_typedef_t *) __GPY_GLOBL_PRIMITIVES->vector[1]
+#define __gpy_class_type_node \
+ (gpy_typedef_t *) __GPY_GLOBL_PRIMITIVES->vector[2]
+#define __gpy_classmethod_type_node \
+ (gpy_typedef_t *) __GPY_GLOBL_PRIMITIVES->vector[3]
+
+extern gpy_object_t * gpy_rr_fold_staticmethod_decl (const char *, unsigned char *);
+extern gpy_object_t * gpy_rr_fold_classmethod_decl (const char *, unsigned char *);
extern unsigned char * gpy_rr_eval_attrib_reference (gpy_object_t *, const char *);
+extern void gpy_rr_eval_print (int, int, ...);
+
#endif //__GCC_RUNTIME_H__