2003-01-01 Tor Lillqvist <tml@iki.fi>
* glib/gmessages.c (ensure_stderr_valid): New function, parallel
- to ensure_stdout_valid(). #defined as empty on Unix.
+ to ensure_stdout_valid(). #defined as empty on Unix. Move the
+ alloc_console_called static flag inside these two functions.
(mklevel_prefix): Do use either stderr or stdout on Windows,
too. Otherwise g_warning() messages (that are just warnings, by
definition) will get mixed with proper stdout output. Noticed in
2003-01-01 Tor Lillqvist <tml@iki.fi>
* glib/gmessages.c (ensure_stderr_valid): New function, parallel
- to ensure_stdout_valid(). #defined as empty on Unix.
+ to ensure_stdout_valid(). #defined as empty on Unix. Move the
+ alloc_console_called static flag inside these two functions.
(mklevel_prefix): Do use either stderr or stdout on Windows,
too. Otherwise g_warning() messages (that are just warnings, by
definition) will get mixed with proper stdout output. Noticed in
2003-01-01 Tor Lillqvist <tml@iki.fi>
* glib/gmessages.c (ensure_stderr_valid): New function, parallel
- to ensure_stdout_valid(). #defined as empty on Unix.
+ to ensure_stdout_valid(). #defined as empty on Unix. Move the
+ alloc_console_called static flag inside these two functions.
(mklevel_prefix): Do use either stderr or stdout on Windows,
too. Otherwise g_warning() messages (that are just warnings, by
definition) will get mixed with proper stdout output. Noticed in
2003-01-01 Tor Lillqvist <tml@iki.fi>
* glib/gmessages.c (ensure_stderr_valid): New function, parallel
- to ensure_stdout_valid(). #defined as empty on Unix.
+ to ensure_stdout_valid(). #defined as empty on Unix. Move the
+ alloc_console_called static flag inside these two functions.
(mklevel_prefix): Do use either stderr or stdout on Windows,
too. Otherwise g_warning() messages (that are just warnings, by
definition) will get mixed with proper stdout output. Noticed in
2003-01-01 Tor Lillqvist <tml@iki.fi>
* glib/gmessages.c (ensure_stderr_valid): New function, parallel
- to ensure_stdout_valid(). #defined as empty on Unix.
+ to ensure_stdout_valid(). #defined as empty on Unix. Move the
+ alloc_console_called static flag inside these two functions.
(mklevel_prefix): Do use either stderr or stdout on Windows,
too. Otherwise g_warning() messages (that are just warnings, by
definition) will get mixed with proper stdout output. Noticed in
2003-01-01 Tor Lillqvist <tml@iki.fi>
* glib/gmessages.c (ensure_stderr_valid): New function, parallel
- to ensure_stdout_valid(). #defined as empty on Unix.
+ to ensure_stdout_valid(). #defined as empty on Unix. Move the
+ alloc_console_called static flag inside these two functions.
(mklevel_prefix): Do use either stderr or stdout on Windows,
too. Otherwise g_warning() messages (that are just warnings, by
definition) will get mixed with proper stdout output. Noticed in
# include <windows.h>
# undef STRICT
# include <process.h> /* For _getpid() */
-static gboolean alloc_console_called = FALSE;
static gboolean win32_keep_fatal_message = FALSE;
/* This default message will usually be overwritten. */
static void
ensure_stdout_valid (void)
{
+ static gboolean alloc_console_called = FALSE;
HANDLE handle;
if (win32_keep_fatal_message)
static void
ensure_stderr_valid (void)
{
+ static gboolean alloc_console_called = FALSE;
HANDLE handle;
if (win32_keep_fatal_message)