diff options
Diffstat (limited to 'libgpython/include/gpython')
| -rw-r--r-- | libgpython/include/gpython/gpython.h | 10 | ||||
| -rw-r--r-- | libgpython/include/gpython/vectors.h | 2 |
2 files changed, 9 insertions, 3 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 ); \ diff --git a/libgpython/include/gpython/vectors.h b/libgpython/include/gpython/vectors.h index 19fea8caa9d..be4e329e653 100644 --- a/libgpython/include/gpython/vectors.h +++ b/libgpython/include/gpython/vectors.h @@ -22,7 +22,7 @@ along with GCC; see the file COPYING3. If not see typedef struct gpy_vector_t { void ** vector; signed long size, length; -} gpy_ident_vector_t; +} gpy_vector_t; typedef unsigned long gpy_hashval_t; |
