mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-14 11:45:11 +01:00
major cleanups. introduced _g_log_fallback_handler() to handle recursive
Wed Mar 27 18:42:22 2002 Tim Janik <timj@gtk.org> * gmessages.[hc]: major cleanups. introduced _g_log_fallback_handler() to handle recursive messages which really doesn't call any GLib functions. this allowes the default handler to use normal GLib functions and also fixes user supplied log level handlers. fixed locking issues, based on a patch from Sebastian Willhelmi, attached to #74356. translate log messages from UTF-8, based on the same patch. save fatal and recursion flags across flag loop. use new integer format code from above patch. move GLib functions out of locked mutex state to avoid deadlocks. move the level prefix and filedescriptor logic into mklevel_prefix(). move _g_debug_init() into a place where we can figure and handle recursion.
This commit is contained in:
parent
564cbf8516
commit
f4d7817b13
16
ChangeLog
16
ChangeLog
@ -1,3 +1,19 @@
|
||||
Wed Mar 27 18:42:22 2002 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gmessages.[hc]:
|
||||
major cleanups. introduced _g_log_fallback_handler() to handle
|
||||
recursive messages which really doesn't call any GLib functions.
|
||||
this allowes the default handler to use normal GLib functions and
|
||||
also fixes user supplied log level handlers.
|
||||
fixed locking issues, based on a patch from Sebastian Willhelmi,
|
||||
attached to #74356. translate log messages from UTF-8, based
|
||||
on the same patch. save fatal and recursion flags across flag
|
||||
loop. use new integer format code from above patch.
|
||||
move GLib functions out of locked mutex state to avoid deadlocks.
|
||||
move the level prefix and filedescriptor logic into mklevel_prefix().
|
||||
move _g_debug_init() into a place where we can figure and handle
|
||||
recursion.
|
||||
|
||||
Mon Mar 25 18:13:06 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gtypes.h (GUINT*_SWAP_LE_BE_X86): Remove __const__
|
||||
|
@ -1,3 +1,19 @@
|
||||
Wed Mar 27 18:42:22 2002 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gmessages.[hc]:
|
||||
major cleanups. introduced _g_log_fallback_handler() to handle
|
||||
recursive messages which really doesn't call any GLib functions.
|
||||
this allowes the default handler to use normal GLib functions and
|
||||
also fixes user supplied log level handlers.
|
||||
fixed locking issues, based on a patch from Sebastian Willhelmi,
|
||||
attached to #74356. translate log messages from UTF-8, based
|
||||
on the same patch. save fatal and recursion flags across flag
|
||||
loop. use new integer format code from above patch.
|
||||
move GLib functions out of locked mutex state to avoid deadlocks.
|
||||
move the level prefix and filedescriptor logic into mklevel_prefix().
|
||||
move _g_debug_init() into a place where we can figure and handle
|
||||
recursion.
|
||||
|
||||
Mon Mar 25 18:13:06 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gtypes.h (GUINT*_SWAP_LE_BE_X86): Remove __const__
|
||||
|
@ -1,3 +1,19 @@
|
||||
Wed Mar 27 18:42:22 2002 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gmessages.[hc]:
|
||||
major cleanups. introduced _g_log_fallback_handler() to handle
|
||||
recursive messages which really doesn't call any GLib functions.
|
||||
this allowes the default handler to use normal GLib functions and
|
||||
also fixes user supplied log level handlers.
|
||||
fixed locking issues, based on a patch from Sebastian Willhelmi,
|
||||
attached to #74356. translate log messages from UTF-8, based
|
||||
on the same patch. save fatal and recursion flags across flag
|
||||
loop. use new integer format code from above patch.
|
||||
move GLib functions out of locked mutex state to avoid deadlocks.
|
||||
move the level prefix and filedescriptor logic into mklevel_prefix().
|
||||
move _g_debug_init() into a place where we can figure and handle
|
||||
recursion.
|
||||
|
||||
Mon Mar 25 18:13:06 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gtypes.h (GUINT*_SWAP_LE_BE_X86): Remove __const__
|
||||
|
@ -1,3 +1,19 @@
|
||||
Wed Mar 27 18:42:22 2002 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gmessages.[hc]:
|
||||
major cleanups. introduced _g_log_fallback_handler() to handle
|
||||
recursive messages which really doesn't call any GLib functions.
|
||||
this allowes the default handler to use normal GLib functions and
|
||||
also fixes user supplied log level handlers.
|
||||
fixed locking issues, based on a patch from Sebastian Willhelmi,
|
||||
attached to #74356. translate log messages from UTF-8, based
|
||||
on the same patch. save fatal and recursion flags across flag
|
||||
loop. use new integer format code from above patch.
|
||||
move GLib functions out of locked mutex state to avoid deadlocks.
|
||||
move the level prefix and filedescriptor logic into mklevel_prefix().
|
||||
move _g_debug_init() into a place where we can figure and handle
|
||||
recursion.
|
||||
|
||||
Mon Mar 25 18:13:06 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gtypes.h (GUINT*_SWAP_LE_BE_X86): Remove __const__
|
||||
|
@ -1,3 +1,19 @@
|
||||
Wed Mar 27 18:42:22 2002 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gmessages.[hc]:
|
||||
major cleanups. introduced _g_log_fallback_handler() to handle
|
||||
recursive messages which really doesn't call any GLib functions.
|
||||
this allowes the default handler to use normal GLib functions and
|
||||
also fixes user supplied log level handlers.
|
||||
fixed locking issues, based on a patch from Sebastian Willhelmi,
|
||||
attached to #74356. translate log messages from UTF-8, based
|
||||
on the same patch. save fatal and recursion flags across flag
|
||||
loop. use new integer format code from above patch.
|
||||
move GLib functions out of locked mutex state to avoid deadlocks.
|
||||
move the level prefix and filedescriptor logic into mklevel_prefix().
|
||||
move _g_debug_init() into a place where we can figure and handle
|
||||
recursion.
|
||||
|
||||
Mon Mar 25 18:13:06 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gtypes.h (GUINT*_SWAP_LE_BE_X86): Remove __const__
|
||||
|
@ -1,3 +1,19 @@
|
||||
Wed Mar 27 18:42:22 2002 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gmessages.[hc]:
|
||||
major cleanups. introduced _g_log_fallback_handler() to handle
|
||||
recursive messages which really doesn't call any GLib functions.
|
||||
this allowes the default handler to use normal GLib functions and
|
||||
also fixes user supplied log level handlers.
|
||||
fixed locking issues, based on a patch from Sebastian Willhelmi,
|
||||
attached to #74356. translate log messages from UTF-8, based
|
||||
on the same patch. save fatal and recursion flags across flag
|
||||
loop. use new integer format code from above patch.
|
||||
move GLib functions out of locked mutex state to avoid deadlocks.
|
||||
move the level prefix and filedescriptor logic into mklevel_prefix().
|
||||
move _g_debug_init() into a place where we can figure and handle
|
||||
recursion.
|
||||
|
||||
Mon Mar 25 18:13:06 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gtypes.h (GUINT*_SWAP_LE_BE_X86): Remove __const__
|
||||
|
@ -1,3 +1,19 @@
|
||||
Wed Mar 27 18:42:22 2002 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gmessages.[hc]:
|
||||
major cleanups. introduced _g_log_fallback_handler() to handle
|
||||
recursive messages which really doesn't call any GLib functions.
|
||||
this allowes the default handler to use normal GLib functions and
|
||||
also fixes user supplied log level handlers.
|
||||
fixed locking issues, based on a patch from Sebastian Willhelmi,
|
||||
attached to #74356. translate log messages from UTF-8, based
|
||||
on the same patch. save fatal and recursion flags across flag
|
||||
loop. use new integer format code from above patch.
|
||||
move GLib functions out of locked mutex state to avoid deadlocks.
|
||||
move the level prefix and filedescriptor logic into mklevel_prefix().
|
||||
move _g_debug_init() into a place where we can figure and handle
|
||||
recursion.
|
||||
|
||||
Mon Mar 25 18:13:06 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/gtypes.h (GUINT*_SWAP_LE_BE_X86): Remove __const__
|
||||
|
722
glib/gmessages.c
722
glib/gmessages.c
File diff suppressed because it is too large
Load Diff
@ -99,6 +99,13 @@ GLogLevelFlags g_log_set_fatal_mask (const gchar *log_domain,
|
||||
GLogLevelFlags fatal_mask);
|
||||
GLogLevelFlags g_log_set_always_fatal (GLogLevelFlags fatal_mask);
|
||||
|
||||
/* internal */
|
||||
void _g_log_fallback_handler (const gchar *log_domain,
|
||||
GLogLevelFlags log_level,
|
||||
const gchar *message,
|
||||
gpointer unused_data);
|
||||
|
||||
|
||||
#ifndef G_LOG_DOMAIN
|
||||
#define G_LOG_DOMAIN ((gchar*) 0)
|
||||
#endif /* G_LOG_DOMAIN */
|
||||
|
Loading…
x
Reference in New Issue
Block a user