diff options
author | redbrain <redbrain@gcc.gnu.org> | 2012-04-21 19:12:19 +0100 |
---|---|---|
committer | redbrain <redbrain@gcc.gnu.org> | 2012-04-21 19:12:19 +0100 |
commit | 6bb2994a691ee688ac538c2ac9d382804aad5abe (patch) | |
tree | 9bf8e9a3e0886c75383b07c144be6a157b285c11 /libgpython/include/gpython/objects.h | |
parent | 30903ba9eb9e6b3f3d926041cfc438c71377d6f6 (diff) | |
download | gcc-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/objects.h')
-rw-r--r-- | libgpython/include/gpython/objects.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libgpython/include/gpython/objects.h b/libgpython/include/gpython/objects.h index 114a551c676..ecc8d72d8a8 100644 --- a/libgpython/include/gpython/objects.h +++ b/libgpython/include/gpython/objects.h @@ -67,7 +67,8 @@ typedef struct gpy_object_t { } o ; } gpy_object_t ; -typedef void (*fndecl)(gpy_object_t **); +typedef void (*staticmethod_fndecl)(gpy_object_t **); +typedef void (*classmethod_fndecl) (gpy_object_t *, gpy_object_t **); typedef gpy_object_t * (*binary_op)(gpy_object_t *, gpy_object_t *); typedef struct gpy_number_prot_t { @@ -119,8 +120,10 @@ extern gpy_object_attrib_t ** gpy_args_lit_parse_attrib_table (gpy_object_t *); extern gpy_object_t * gpy_create_object_state (gpy_typedef_t *, void *); extern gpy_object_t * gpy_create_object_decl (gpy_typedef_t *, void *); extern unsigned char * gpy_object_staticmethod_getaddr (gpy_object_t *); +extern unsigned char * gpy_object_classmethod_getaddr (gpy_object_t *); extern void gpy_obj_integer_mod_init (gpy_vector_t * const); extern void gpy_obj_staticmethod_mod_init (gpy_vector_t * const); +extern void gpy_object_classmethod_inherit_self (gpy_object_t *, gpy_object_t *); #endif //__GCC_OBJECTS_H__ |