diff options
| author | redbrain <redbrain@gcc.gnu.org> | 2011-02-08 15:24:24 +0000 |
|---|---|---|
| committer | redbrain <redbrain@gcc.gnu.org> | 2011-02-08 15:24:24 +0000 |
| commit | a848bac8f23f6239883b1adb55effae75baf7db2 (patch) | |
| tree | 42415facd08f66fedcae62a24d2682c82d503cc6 /libgpython | |
| parent | 9ad9e7bde50332d187aab4044e32bab102dc1c2e (diff) | |
| download | gcc-a848bac8f23f6239883b1adb55effae75baf7db2.tar.gz | |
minor cleanups work on calls and dot operator comences
Diffstat (limited to 'libgpython')
| -rw-r--r-- | libgpython/runtime/obj-integer.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libgpython/runtime/obj-integer.c b/libgpython/runtime/obj-integer.c index e27201afafd..98c7c326302 100644 --- a/libgpython/runtime/obj-integer.c +++ b/libgpython/runtime/obj-integer.c @@ -66,7 +66,12 @@ gpy_object_t * gpy_obj_integer_init (gpy_typedef_t * type, /* Destroys self (type) not the object state */ void gpy_obj_integer_destroy (gpy_object_t * self) { - return; + gpy_assert (self->T == TYPE_OBJECT_STATE); + gpy_object_state_t * x = self->o.object_state; + struct gpy_obj_integer_t *x1 = (struct gpy_obj_integer_t *) + x->self; + + gpy_free (x1); } void gpy_obj_integer_print (gpy_object_t * self, FILE * fd, bool newline) @@ -83,7 +88,7 @@ void gpy_obj_integer_print (gpy_object_t * self, FILE * fd, bool newline) } gpy_object_t * -gpy_obj_integer_whoop_noargs (gpy_object_t * self, gpy_object_t ** args ) +gpy_obj_integer_whoop_noargs (gpy_object_t * self, gpy_object_t ** args) { printf("inside whoop function!\n\n"); return NULL_OBJECT; |
