diff options
Diffstat (limited to 'libgpython/include/gpython/gpython.h')
| -rw-r--r-- | libgpython/include/gpython/gpython.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libgpython/include/gpython/gpython.h b/libgpython/include/gpython/gpython.h index 345b29a9b92..b9aa3661da0 100644 --- a/libgpython/include/gpython/gpython.h +++ b/libgpython/include/gpython/gpython.h @@ -62,12 +62,12 @@ typedef gpy_object_state_t (*binary_op)( gpy_object_state_t, enum GPY_LIT_T { TYPE_INTEGER, TYPE_STRING }; typedef struct gpy_rr_literal_t { - enum GPY_LIT_T; + enum GPY_LIT_T type; union { int integer; char * string; /* ... */ - } + } literal ; } gpy_literal_t ; typedef struct gpy_number_prot_t @@ -104,6 +104,12 @@ typedef struct gpy_type_obj_def_t { ((expr) ? (void) 0 : gpy_assertion_failed( #expr, __LINE__, \ __FILE__, __func__ )); +extern void * gpy_malloc( size_t ); + +extern void * gpy_realloc( void * , size_t ); + +extern void * gpy_calloc( size_t , size_t ); + #define gpy_free( x ) \ gpy_assert( x ); \ free( x ); \ |
