]> granicus.if.org Git - gc/commitdiff
Swap GC_unregister_disappearing_link and GC_move_disappearing_link
authorIvan Maidanski <ivmai@mail.ru>
Mon, 7 Nov 2011 07:38:36 +0000 (11:38 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 7 Nov 2011 07:38:36 +0000 (11:38 +0400)
prototypes order in include/gc.h

include/gc.h

index 65133b7122a91a258c9fffe7c563f63052da12ef..b2727a6a8ffce95d1ec6d6210c6772854a83a2fe 100644 (file)
@@ -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);