summaryrefslogtreecommitdiff
path: root/libgpython/include/gpython
diff options
context:
space:
mode:
authorredbrain <redbrain@crules.org>2010-07-08 19:00:36 +0100
committerredbrain <redbrain@crules.org>2010-07-08 19:00:36 +0100
commit5e8789d3b0d7f0c6b290f3fd0ef1d27faaf6bf8b (patch)
tree27e005aec00ba13a67721213ce12f0cafe6863fa /libgpython/include/gpython
parent338a9b0aa530351ef3ba9166a0e17d2fa98ab2ee (diff)
downloadgcc-5e8789d3b0d7f0c6b290f3fd0ef1d27faaf6bf8b.tar.gz
cleanups
Diffstat (limited to 'libgpython/include/gpython')
-rw-r--r--libgpython/include/gpython/gpython.h10
-rw-r--r--libgpython/include/gpython/vectors.h2
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;