From: Ivan Maidanski Date: Mon, 7 Nov 2011 07:38:36 +0000 (+0400) Subject: Swap GC_unregister_disappearing_link and GC_move_disappearing_link X-Git-Tag: gc7_3alpha2~316 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60438bf58b6af0df942fdf42aa8956fafd6ad0b4;p=gc Swap GC_unregister_disappearing_link and GC_move_disappearing_link prototypes order in include/gc.h --- diff --git a/include/gc.h b/include/gc.h index 65133b71..b2727a6a 100644 --- a/include/gc.h +++ b/include/gc.h @@ -945,11 +945,6 @@ GC_API int GC_CALL GC_general_register_disappearing_link(void ** /* link */, /* GC_NO_MEMORY if registration failed for lack of */ /* memory (and GC_oom_fn did not handle the problem). */ -GC_API int GC_CALL GC_unregister_disappearing_link(void ** /* link */); - /* Undoes a registration by either of the above two */ - /* routines. Returns 0 if link was not actually */ - /* registered (otherwise returns 1). */ - GC_API int GC_CALL GC_move_disappearing_link(void ** /* link */, void ** /* new_link */); /* Moves a link previously registered via */ @@ -964,6 +959,11 @@ GC_API int GC_CALL GC_move_disappearing_link(void ** /* link */, /* returned if new_link is equal to link), GC_NOT_FOUND */ /* if no link is registered at the original location. */ +GC_API int GC_CALL GC_unregister_disappearing_link(void ** /* link */); + /* Undoes a registration by either of the above two */ + /* routines. Returns 0 if link was not actually */ + /* registered (otherwise returns 1). */ + /* Returns !=0 if GC_invoke_finalizers has something to do. */ GC_API int GC_CALL GC_should_invoke_finalizers(void);