[glib] gbacktrace.c: special treatment for a weird symbol



commit 4625c138e96bca942c9215132df14d194c884802
Author: Ryan Lortie <desrt desrt ca>
Date:   Thu Dec 6 14:03:22 2012 -0500

    gbacktrace.c: special treatment for a weird symbol
    
    We have a public symbol 'glib_on_error_halt' that is exported from
    gbacktrace.c without appearing in a header, presumably with the
    intention that people will be able to hit it from their debugger.
    
    Mark it as GLIB_AVAILABLE_IN_ALL from inside the .c file...
    
    https://bugzilla.gnome.org/show_bug.cgi?id=688681

 glib/gbacktrace.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/glib/gbacktrace.c b/glib/gbacktrace.c
index 957c482..4d19d6f 100644
--- a/glib/gbacktrace.c
+++ b/glib/gbacktrace.c
@@ -89,7 +89,8 @@
 static void stack_trace (char **args);
 #endif
 
-extern volatile gboolean glib_on_error_halt;
+/* People want to hit this from their debugger... */
+GLIB_AVAILABLE_IN_ALL volatile gboolean glib_on_error_halt;
 volatile gboolean glib_on_error_halt = TRUE;
 
 /**



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]