commit | fd8b6bcf5572b342b1e61f4f3737a2a650659166 | [log] [tgz] |
---|---|---|
author | Damien <damien.p.george@gmail.com> | Tue Oct 22 20:26:36 2013 +0100 |
committer | Damien <damien.p.george@gmail.com> | Tue Oct 22 20:26:36 2013 +0100 |
tree | 298c64dacb4a098e6c792f3506aac001334313e9 | |
parent | 7b2d3f38ceae0ca3839d3812421a8a113ae5105c [diff] [blame] |
Add gc_free function to force a block to be freed.
diff --git a/py/gc.h b/py/gc.h index 4fe87b8..d5b5fcc 100644 --- a/py/gc.h +++ b/py/gc.h
@@ -4,7 +4,8 @@ void gc_collect_end(); void gc_collect(); void *gc_alloc(machine_uint_t n_bytes); -machine_uint_t gc_nbytes(void *ptr_in); +void gc_free(void *ptr); +machine_uint_t gc_nbytes(void *ptr); void *gc_realloc(void *ptr, machine_uint_t n_bytes); typedef struct _gc_info_t {