1. 26 Jan, 2007 1 commit
  2. 28 Dec, 2006 1 commit
    • Tor Lillqvist's avatar
      On Win32, if we get a fatal error message while being debugged we break · fd1f409e
      Tor Lillqvist authored
      2006-12-28  Tor Lillqvist  <tml@novell.com>
      
      	* glib/gmessages.c (g_logv): On Win32, if we get a fatal error
      	message while being debugged we break into the debugger with
      	G_BREAKPOINT(). Don't call abort() if the user is foolhardy enough
      	to continue after the breakpoint. The user presumably knows what
      	he is doing and deserves what he gets. (#376645, Andreas Köhler)
      fd1f409e
  3. 10 May, 2006 1 commit
    • Sebastian Wilhelmi's avatar
      Renamed to glib/gthreadprivate.h and moved system thread identifier · e4f8f3b9
      Sebastian Wilhelmi authored
      
      2006-05-09  Sebastian Wilhelmi  <wilhelmi@google.com>
      
      	* glib/gthreadinit.h: Renamed to glib/gthreadprivate.h and moved
      	system thread identifier comparision and assignment macros from
      	glib/gthread.c to glib/gthreadprivate.h.
      
      	* glib/Makefile.am, glib/gatomic.c, glib/gconvert.c, glib/gmain.c,
      	glib/gmem.c, glib/gmessages.c, glib/grand.c, glib/gslice.c,
      	glib/gthread.c, glib/gutils.c, gthread/gthread-impl.c: Use
      	glib/gthreadprivate.h instead of glib/gthreadinit.h.
      
      	* gthread/gthread-impl.c: Use GSystemThread instead of GThread for
      	owner determination. This fixes #311043 and is mostly modeled
      	after the patch from jylefort@FreeBSD.org.
      e4f8f3b9
  4. 01 Dec, 2005 1 commit
    • Tim Janik's avatar
      new slice allocator implementation. · 733b1789
      Tim Janik authored
      Thu Dec  1 17:32:46 2005  Tim Janik  <timj@imendio.com>
      
              * glib/gslice.[hc]: new slice allocator implementation.
      
              * tests/slice-test.c: added random slice allocation test.
      
              * glib/gthread.[hc]: removed newly added private thread mem API.
      
              * glib/gthreadinit.h:
              * glib/gmessages.c:
              * glib/gthread.c:
              * glib/gmem.c: divided glib threading initialisation into three phases,
              initialisation where private keys and messaging are not available (only
              needed by gmem.c), initialisation without messaging but private keys
              available (gslice.c, gmessage.c), and full fledged initialisers that
              server the rest of glib. initialisation functions got renamed to reflect
              the limitations of their corresponding phases.
      
              * glib/gmem.c: removed memchunk code, defer allocations to
              g_slice_* instead.
      
              * glib/gmem.[hc]: removed g_slice_* skeletons.
      
              * glib/glib.symbols: added g_slice_* symbols.
      
              * configure.in: check for availability of posix_memalign(3), memalign(3)
              and valloc(3).
      
              * glib/Makefile.am: added gslice.[hc].
      733b1789
  5. 04 Nov, 2005 1 commit
  6. 02 Jul, 2005 1 commit
  7. 20 Mar, 2005 1 commit
    • Tor Lillqvist's avatar
      glib/gmessages.c (g_log_default_handler) Move the Win32 code that asks the · 398008da
      Tor Lillqvist authored
      2005-03-20  Tor Lillqvist  <tml@novell.com>
      
      	* glib/gmessages.c (g_log_default_handler)
      	* glib/gutils.c (g_get_prgname): Move the Win32 code that asks the
      	program name from the system to g_get_prgname(). Do output the pid
      	also on Win32 (useful in case there are several instances of the
      	same program running).
      398008da
  8. 18 Mar, 2005 1 commit
    • Hans Breuer's avatar
      handle galiasdef.c (although completely useless for msvc build) · 6b551645
      Hans Breuer authored
      2005-03-18  Hans Breuer  <hans@breuer.org>
      
      	* glib/makefile.msc.in : handle galiasdef.c (although completely
      	useless for msvc build)
      
      	* glib/gbacktrace.c glib/gmessage.c : need at least _WIN_VER 0x0401
      	for IsDebuggerPresent()
      
      	* gobject/makefile.msc.in : handle gobjectaliasdef.c
      6b551645
  9. 14 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      Make PLT-reduction work with gcc4, and don't include everything in · 608a31b9
      Matthias Clasen authored
      2005-03-13  Matthias Clasen  <mclasen@redhat.com>
      
      	Make PLT-reduction work with gcc4, and don't include
      	everything in galias.h:
      
      	* glib/glib.symbols: Group symbols by header and source file.
      	* glib/makegalias.pl: Protect definitions by the same
      	preprocessor symbols used to guard the headers. Move
      	the alias declarations to a separate file which is
      	produced when calling makegalias.pl -def
      	* glib/Makefile.am (galiasdef.c): Add a rule to generate this
      	file.
      	* glib/*.c: Include galias.h after the other GLib headers,
      	include galiasdef.c at the bottom.
      608a31b9
  10. 19 Jan, 2005 2 commits
  11. 25 Nov, 2004 1 commit
    • Manish Singh's avatar
      filter out G_GNUC stuff when doing the compare. · ccc3c1c4
      Manish Singh authored
      Thu Nov 25 14:02:43 2004  Manish Singh  <yosh@gimp.org>
      
              * glib/abicheck.sh: filter out G_GNUC stuff when doing the compare.
      
              * glib/gmessages.c (g_assert_warning): call abort() at the end, so
              gcc doesn't warn.
      ccc3c1c4
  12. 30 Sep, 2004 1 commit
    • Matthias Clasen's avatar
      Add g_assert_warning. · 0455122b
      Matthias Clasen authored
      2004-09-29  Matthias Clasen  <mclasen@redhat.com>
      
      	* glib/glib.symbols: Add g_assert_warning.
      
      	* glib/gmessages.h:
      	* glib/gmessages.c (g_assert_warning): Treat g_assert
      	in the same way as g_return_if_fail and move the string
      	constants into a helper function, which also takes
      	care of removing the "IA__" prefix from internal aliases.
      0455122b
  13. 22 Sep, 2004 1 commit
    • Tor Lillqvist's avatar
      [Win32] Don't open a console window if standard output or standard error · 7e0e251a
      Tor Lillqvist authored
      2004-09-22  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/gmessages.c: [Win32] Don't open a console window if
      	standard output or standard error are invalid (as they are for GUI
      	applications). These console windows that open up unexpectedly
      	have caused endless amounts of confusion among end-users.
      
      	Don't output the process id on Windows. Only output the program
      	name. If not set with g_set_prgname(), fetch the application
      	executable's name and use that.
      7e0e251a
  14. 20 Sep, 2004 1 commit
  15. 16 Sep, 2004 1 commit
  16. 09 Sep, 2004 2 commits
  17. 05 Sep, 2004 1 commit
  18. 22 Apr, 2004 1 commit
    • Matthias Clasen's avatar
      Add testcases for g_message() involving non-printable and unsafe · 05501852
      Matthias Clasen authored
      2004-04-22  Matthias Clasen  <mclasen@redhat.com>
      
      	* tests/testglib.c (main): Add testcases for g_message() involving
      	non-printable and unsafe characters.
      
      	* glib/gmessages.c (escape_string): Don't assume that
      	string->str remains unchanged over g_string_insert()
      	calls.  (#139030, Christophe Saout)
      05501852
  19. 14 Mar, 2004 1 commit
  20. 25 Aug, 2003 1 commit
  21. 19 Aug, 2003 1 commit
  22. 25 Jul, 2003 1 commit
  23. 30 Mar, 2003 1 commit
    • Matthias Clasen's avatar
      Optimize the common cases (init == NULL or init == "") a bit. replace uses · 6710fd6e
      Matthias Clasen authored
      2003-03-30  Matthias Clasen  <maclas@gmx.de>
      
      	* glib/gstring.c (g_string_new): Optimize the common cases
      	(init == NULL or init == "") a bit.
      	* glib/gmarkup.c, glib/gmessages.c, glib/gscanner.c,
      	glib/gshell.c, glib/gspawn-win32-helper.c, glib/gspawn-win32.c,
      	glib/gspawn.c, gobject/gvaluetransform.c: replace uses of
      	g_string_new ("") by g_string_new (NULL).  (#106973, Morten Welinder)
      6710fd6e
  24. 14 Feb, 2003 1 commit
    • Sebastian Wilhelmi's avatar
      Fixes for #101264 and #99372: · 8e91cf9e
      Sebastian Wilhelmi authored
      
      2003-02-14  Sebastian Wilhelmi  <seppi@seppi.de>
      
      	Fixes for #101264 and #99372:
      
      	* glib/gconvert.h, glib/gmain.c, glib/gmem.c, glib/gmessages.c,
      	glib/grand.c: Include gthreadinit.h and rename the thread
      	initialization functions a bit and let them start with _, so that
      	later we can stop exporting them.
      
      	* glib/gmem.c, glib/gmessages.c: Move the g_private_new() calls to
      	new functions. They have to be called after setting
      	g_threads_got_initialized to TRUE (see #101264).
      
      	* glib/gthread.c: Include gthreadinit.h. Renamed g_mutex_init() to
      	g_thread_init_glib(). Call the thread initialization functions
      	(which are not allowed to call g_private_new), then set
      	g_threads_got_initialized to TRUE, then call the other thread
      	initialization functions (which must not call anything but
      	g_private_new()).
      
      	* glib/gthreadinit.h: New private header to cleanly declare all
      	thread initialization functions.
      
      	* gthread/gthread-impl.c: Include gthreadinit.h. In
      	g_thread_init() just call g_thread_init_glib(), which in turn calls the
      	other functions (see #99372).
      
      	* glib/Makefile.am: Added gthreadinit.h.
      8e91cf9e
  25. 01 Jan, 2003 3 commits
    • Tor Lillqvist's avatar
      Check the C stdout and stderr streams for validity, instead of what · 1377e3d1
      Tor Lillqvist authored
      2003-01-01  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/gmessages.c (ensure_stdout_valid, ensure_stderr_valid):
      	Check the C stdout and stderr streams for validity, instead of
      	what GetStdHandle() returns.
      1377e3d1
    • Tor Lillqvist's avatar
      Move the alloc_console_called static flag inside these two functions. · ac17691a
      Tor Lillqvist authored
      2003-01-01  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/gmessages.c (ensure_stderr_valid, ensure_stdout_valid): Move the
      	alloc_console_called static flag inside these two functions.
      ac17691a
    • Tor Lillqvist's avatar
      New function, parallel to ensure_stdout_valid(). #defined as empty on · 1b68ce70
      Tor Lillqvist authored
      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.
      	(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
      	GIMP's gimpconfig-dump.
      	(strdup_convert, mklevel_prefix, g_printerr): Call
      	ensure_stderr_valid() before trying to use stderr.
      	(g_logv): [Win32] Convert message to current codepage before
      	display with MessageBox().
      1b68ce70
  26. 04 Dec, 2002 1 commit
  27. 21 Nov, 2002 1 commit
    • Matthias Clasen's avatar
      Include a printf implementation supporting C99 snprintf and SUS · bc54ea6e
      Matthias Clasen authored
      	positional parameters:  (#79488)
      
      	* glib/gstrfuncs.c:
      	* glib/gspawn-win32.c:
      	* glib/gscanner.c:
      	* glib/gconvert.c:
      	* glib/gbacktrace.c: Use _g_printf wrappers.
      
      	* glib/gutils.c (g_vsnprintf): Simplify, since we can assume C99
      	snprintf semantics now.
      
      	* glib/gmessages.c (printf_string_upper_bound): No longer needed,
      	since we can assume C99 snprintf semantics now.
      	(g_logv): Simplify.
      
      	* acinclude.m4 (AC_FUNC_PRINTF_UNIX98): New macro to check wether
      	printf supports SUS positional parameters.
      
      	* configure.in: New option --enable-included-printf to force
      	compilation of trio; otherwise trio is compiled if the system
      	printf misses either C99 snprintf semantics of SUS positional
      	parameters.
      
      	* glib/Makefile.am (SUBDIRS): Conditionally compile trio.
      	(libglib_2_0_la_SOURCES): Add gprintf.c and gprintfint.h.
      	(glibsubinclude_HEADERS): Add gprintf.h.
      
      	* glib/gprintfint.h: New private wrapping either system printf
      	or trio printf variants in _g_printf wrappers for use inside glib.
      
      	* glib/gprintf.h: New public header declaring g_printf variants.
      	* glib/gprintf.c: Corresponding implementations.
      
      	* glib/trio/*: New directory, containing the trio-1.9 sources.
      
      	* glib/tmpl/string_utils.sgml: Add note on including gprintf.h,
      	move some docs inline.
      
      	* glib/glib-sections.txt: Add g_printf, g_vprintf, g_fprintf,
      	g_vfprintf, g_sprintf, g_vsprintf.
      bc54ea6e
  28. 13 May, 2002 1 commit
    • Owen Taylor's avatar
      Update from libcharset CVS. Includes additional encodings for Solaris · 893b73e2
      Owen Taylor authored
      Mon May 13 11:42:23 2002  Owen Taylor  <otaylor@redhat.com>
      
            		* glib/libcharset/*: Update from libcharset CVS.
              Includes additional encodings for Solaris (#80396,
              Qingjiang Yuan)
      
              * configure.in: Add getc_unlocked to CHECK_FUNCS().
      
              * glib/gmessages.c (strdup_convert): If
              g_convert_with_fallback() fails, print the error
              message to stderr the first time, then return
              the original string. (#78197)
      893b73e2
  29. 28 Mar, 2002 2 commits
    • Owen Taylor's avatar
      Remove warning about g_print, etc, encoding. · 90d93042
      Owen Taylor authored
      Thu Mar 28 18:22:53 2002  Owen Taylor  <otaylor@redhat.com>
      
              * README: Remove warning about g_print, etc, encoding.
      
              * NEWS: Updates.
      
              * glib/gmessages.c (g_log_default_handler): Use %lu
              (plus a cast) when printing out pid_t arguments.
              (#76770, Morten Welinder)
      
              * glib/gstrfuncs.c (g_strdup_vprintf): Check the
              result of vasprintf(), return NULL on failure.
              (#76802, Akira Tagoh)
      
              * tests/testglib.c (TEST): Supress a warning with
              some GCC versions.
      90d93042
    • Tim Janik's avatar
      convert prtinf() strings to local charset when writing them to stdout or · f4040896
      Tim Janik authored
      Thu Mar 28 20:31:51 2002  Tim Janik  <timj@gtk.org>
      
              * glib/gmessages.c:
              (g_print):
              (g_printerr): convert prtinf() strings to local charset
              when writing them to stdout or stderr.
      f4040896
  30. 27 Mar, 2002 1 commit
    • Tim Janik's avatar
      major cleanups. introduced _g_log_fallback_handler() to handle recursive · f4d7817b
      Tim Janik authored
      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.
      f4d7817b
  31. 14 Mar, 2002 1 commit
    • Sebastian Wilhelmi's avatar
      Fixed threading issues brought up by #74577. Make g_log_find_domain, · 148a8466
      Sebastian Wilhelmi authored
      
      2002-03-14  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* glib/gmessages.c: Fixed threading issues brought up by
      	#74577. Make g_log_find_domain, g_log_domain_new,
      	g_log_domain_check_free and g_log_domain_get_handler require being
      	called with g_messages_lock held and remove all internal locking
      	in them. Then added proper locking to g_log_set_handler,
      	g_log_remove_handler and g_logv. Problem spotted by Miroslaw
      	Dobrzanski-Neumann <mne@mosaic-ag.com>. (#74577)
      148a8466
  32. 21 Feb, 2002 1 commit
    • Matthias Clasen's avatar
      New header containing GTK_DEBUG-style debugging support for GLib. · 642897a7
      Matthias Clasen authored
      	* glib/gdebug.h: New header containing GTK_DEBUG-style debugging
      	support for GLib. Currently only the fatal_warnings debug option exists.
      
      	* glib/gmessages.c (g_log_msg_prefix_init): New one-shot function
      	for parsing G_MESSAGES_PREFIXED.
      	(_g_debug_init): New one-shot function for parsing G_DEBUG.
      	(g_log_write_prefix): Use g_log_msg_prefix_init().
      	(g_messages_init): Use g_log_msg_prefix_init() and _g_debug_init().
      
      	* glib/Makefile.am (libglib_1_3_la_SOURCES): Add gdebug.h.
      
      
      	* glib/Makefile.am (IGNORE_HFILES): Add gdebug.h.
      
      	* glib/running.sgml: Document the G_DEBUG environment variable.
      
      	* glib/tmpl/threads.sgml: Replace g_thread_wait() by
      	g_thread_join() in two places.
      642897a7
  33. 14 Feb, 2002 1 commit
  34. 23 Jan, 2002 1 commit
  35. 28 Dec, 2001 1 commit