summaryrefslogtreecommitdiffstatshomepage
path: root/py/gc.h
diff options
context:
space:
mode:
authorDamien <damien.p.george@gmail.com>2013-10-22 20:26:36 +0100
committerDamien <damien.p.george@gmail.com>2013-10-22 20:26:36 +0100
commitfd8b6bcf5572b342b1e61f4f3737a2a650659166 (patch)
tree298c64dacb4a098e6c792f3506aac001334313e9 /py/gc.h
parent7b2d3f38ceae0ca3839d3812421a8a113ae5105c (diff)
downloadmicropython-fd8b6bcf5572b342b1e61f4f3737a2a650659166.tar.gz
micropython-fd8b6bcf5572b342b1e61f4f3737a2a650659166.zip
Add gc_free function to force a block to be freed.
Diffstat (limited to 'py/gc.h')
-rw-r--r--py/gc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/py/gc.h b/py/gc.h
index 4fe87b8308..d5b5fcc91c 100644
--- a/py/gc.h
+++ b/py/gc.h
@@ -4,7 +4,8 @@ void gc_collect_root(void **ptrs, machine_uint_t len);
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 {