]> granicus.if.org Git - gc/commitdiff
Fixed STATIC style for exit() and abort() callback hooks.
authorJean-Claude Beaudoin <jean.claude.beaudoin@gmail.com>
Fri, 22 Jun 2012 04:40:04 +0000 (00:40 -0400)
committerJean-Claude Beaudoin <jean.claude.beaudoin@gmail.com>
Fri, 22 Jun 2012 04:40:04 +0000 (00:40 -0400)
misc.c

diff --git a/misc.c b/misc.c
index 00a0e18dc0d54085983bb11962c27509e9974de6..7ae02f5bd5b1cd76b30901ead812fe29027d273c 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -509,8 +509,8 @@ GC_API void GC_CALL GC_get_heap_usage_safe(GC_word *pheap_size,
 
 
 #ifdef THREADS
-static int suspend_signal = SIG_SUSPEND_DEFAULT;
-static int thread_restart_signal = SIG_THR_RESTART_DEFAULT;
+STATIC int suspend_signal = SIG_SUSPEND_DEFAULT;
+STATIC int thread_restart_signal = SIG_THR_RESTART_DEFAULT;
 
 void GC_set_suspend_signal(const int sig)
 {
@@ -1478,7 +1478,7 @@ GC_API GC_warn_proc GC_CALL GC_get_warn_proc(void)
     return(result);
 }
 
-static GC_abort_func abort_fn = NULL; /* JCB */
+STATIC GC_abort_func abort_fn = NULL; /* JCB */
 
 GC_API void GC_CALL GC_set_abort_func(GC_abort_func fn)
 {
@@ -1527,7 +1527,7 @@ GC_API void GC_CALL GC_set_abort_func(GC_abort_func fn)
   }
 #endif /* !SMALL_CONFIG */
 
-static GC_exit_func exit_fn = NULL;
+STATIC GC_exit_func exit_fn = NULL;
 
 void GC_exit(int status)
 {