gc_chooser: avoid `undeclared gc_register_finalizer` by correctly declaring it
authorJean Privat <jean@pryen.org>
Fri, 2 Jan 2015 20:56:58 +0000 (15:56 -0500)
committerJean Privat <jean@pryen.org>
Fri, 2 Jan 2015 20:56:58 +0000 (15:56 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>

clib/gc_chooser.h

index fa395b0..255e07a 100644 (file)
@@ -20,7 +20,7 @@ void *nit_raw_alloc(size_t); /* allocate raw memory to store a raw stram of byte
 void nit_gcollect(void); /* force a garbage collection */
 void initialize_gc_option(void); /* Select the wanted GC using envvar `NIT_GC_OPTION` */
 
-void gc_set_finializer(void*); /* Tag a pointer for finalization */
+void gc_register_finalizer(void*); /* Tag a pointer for finalization */
 void gc_finalize(void*, void*); /* Finalize a pointer, implemented in the generated code. */
 
 #endif