1. 10 Nov, 2007 1 commit
  2. 15 Jan, 2007 1 commit
  3. 28 Dec, 2006 1 commit
  4. 01 Jun, 2006 1 commit
  5. 04 Apr, 2006 1 commit
    • Matthias Clasen's avatar
      Move short_month_names and long_month_names to bss. · b58fb2bd
      Matthias Clasen authored
      2006-04-04  Matthias Clasen  <mclasen@redhat.com>
      
              * glib/gdate.c: Move short_month_names and long_month_names
              to bss.
      
              * glib/gspawn-win32.c (g_spawn_error_quark):
              * glib/gspawn.c (g_spawn_error_quark):
              * glib/gshell.c (g_shell_error_quark):
              * glib/gmarkup.c (g_markup_error_quark):
              * glib/goption.c (g_option_error_quark):
              * glib/gkeyfile.c (g_key_file_error_quark):
              * glib/giochannel.c (g_io_channel_error_quark):
              * glib/gfileutils.c (g_file_error_quark):
              * glib/gconvert.c (g_convert_error_quark):
              * glib/gbookmarkfile.c (g_bookmark_file_error_quark):
              * glib/gthread.c (g_thread_error_quark): No point in making
              the error path fast by caching quarks.
      
              * glib/gbookmarkfile.c: Make the parser struct const.
      b58fb2bd
  6. 05 Dec, 2005 1 commit
  7. 28 Aug, 2005 1 commit
  8. 15 Jul, 2005 1 commit
    • Matthias Clasen's avatar
      Make refcounting threadsafe by using atomic operations. (#166020, Wim · 39ea11ce
      Matthias Clasen authored
      2005-07-15  Matthias Clasen  <mclasen@redhat.com>
      
      	Make refcounting threadsafe by using atomic
      	operations.  (#166020, Wim Taymans)
      
      	* gobject.c: Use a recursive lock to protect the
      	notify queue.
      	(g_object_unref): Get rid of g_object_last_unref and
      	do the last unref handling in g_object_unref.
      	(g_object_ref, g_object_unref): Use atomic operations.
      
      	* gsignal.c (struct _HandlerMatch): Use a full integer
      	for the ref_count field.
      	(handler_ref, handler_unref_R): Use atomic operations.
      
      	* gparam.c (g_param_spec_ref, g_param_spec_unref):
      	Use atomic operations instead of a lock to make the
      	refcounting threadsafe.
      
      	* gclosure.c (g_closure_ref, g_closure_unref): Use atomic
      	operations. This is more complicated here, since the
      	refcount is stored in a bitfield, so we also have
      	to access all other bitfield members atomically.
      
      	* gsignal.c (handlers_find): Read the meta_marshal flag
      	of the closure atomically.
      
      	* tests/Makefile.am (SUBDIRS): Add tests/refcount
      
      	* configure.in: Add tests/refcount
      
      	* tests/refcount/properties.c: Test property changes
      	from multiple threads.
      
      	* tests/refcount/signals.c: Test signal emission from
      	multiple threads.
      
      	* tests/refcount/objects.c: Test refcounting from
      	multiple threads.
      
      	* tests/refcount/objects2.c:
      	* tests/refcount/properties2.c: Tests to measure the
      	overhead of threadsafe refcounting.
      
      	* glib/giochannel.c (g_io_channel_ref, g_io_channel_unref):
      	Use atomic operations to make refcounting
      	threadsafe.  (#166020, Wim Taymans)
      39ea11ce
  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. 08 Nov, 2004 2 commits
  11. 24 Oct, 2004 1 commit
  12. 16 Sep, 2004 1 commit
  13. 14 Mar, 2004 1 commit
    • Owen Taylor's avatar
      Some warning fixes for the Sun compiler (Reported by David L. Cooper II, · 0b6eeb2e
      Owen Taylor authored
      Sat Mar 13 23:10:35 2004  Owen Taylor  <otaylor@redhat.com>
      
              Some warning fixes for the Sun compiler (Reported by
              David L. Cooper II, #136401)
      
              * glib/giochannel.c (g_io_channel_read): Return
              G_IO_ERROR_NONE, not G_IO_STATUS_NORMAL, since hte
              function returns a GIOError.
      
              * glib/guniprop.c: Fix some guchar/gchar confusion
              with special_case_table.
      0b6eeb2e
  14. 25 Jul, 2003 1 commit
  15. 01 Jun, 2003 1 commit
  16. 31 May, 2003 1 commit
  17. 30 May, 2003 2 commits
  18. 19 Mar, 2003 1 commit
    • Matthias Clasen's avatar
      Fix docs. · f86a5fad
      Matthias Clasen authored
      2003-03-19  Matthias Clasen  <maclas@gmx.de>
      
      	* glib/giochannel.c (g_io_channel_read_to_end): Fix docs.
      f86a5fad
  19. 05 Jan, 2003 1 commit
  20. 04 Dec, 2002 1 commit
  21. 28 Nov, 2002 1 commit
    • Matthias Clasen's avatar
      Move some docs inline, and add deprecation information. To see the list of · 803bae66
      Matthias Clasen authored
      	* glib/gutils.c:
      	* glib/gtree.c:
      	* glib/gstring.c:
      	* glib/gstrfuncs.c:
      	* glib/giochannel.c: Move some docs inline, and add deprecation
      	information. To see the list of affected functions, grep for
      	"Deprecated:".
      
      	* glib/tmpl/strings.sgml:
      	* glib/tmpl/string_utils.sgml:
      	* glib/tmpl/misc_utils.sgml: Move some docs inline.
      803bae66
  22. 02 Nov, 2002 1 commit
  23. 18 Oct, 2002 1 commit
  24. 26 Jul, 2002 1 commit
    • Owen Taylor's avatar
      Fix docs for @str_return to conform to the main docs and the · 289ad03a
      Owen Taylor authored
      Thu Jul 25 20:57:20 2002  Owen Taylor  <otaylor@redhat.com>
      
              * glib/giochannel.c (g_io_channel_read_line): Fix
              docs for @str_return to conform to the main docs
              and the implementation as to whether the terminator
              is included. (#87964, Jacob Berkman)
      289ad03a
  25. 25 Jul, 2002 2 commits
  26. 20 May, 2002 1 commit
    • Owen Taylor's avatar
      Fix double close of file descriptor on error. (#82139, Wayne Schuller) · 81ad1bb2
      Owen Taylor authored
      Mon May 20 15:35:59 2002  Owen Taylor  <otaylor@redhat.com>
      
              * glib/gfileutils.c (get_contents_regfile): Fix double
              close of file descriptor on error. (#82139, Wayne Schuller)
      
              * glib/gspawn.c (close_and_invalidate): Don't close
              fd's that have already been closed. (Fix from Michael
              Meeks, #81959)
      
              * glib/giochannel.c (g_io_channel_close): If not flushing,
              dump the contents of the write buffers, so we won't try
              to write them to an invalid fd later. (Patch from Ron Steinke,
              fixing #78290, Andreas Persenius.)
      81ad1bb2
  27. 14 Mar, 2002 1 commit
  28. 08 Mar, 2002 1 commit
    • Owen Taylor's avatar
      Final updates for 2.0.0 · cef5d28c
      Owen Taylor authored
      Fri Mar  8 10:20:46 2002  Owen Taylor  <otaylor@redhat.com>
      
              * NEWS: Final updates for 2.0.0
      
              * glib/gstrfuncs.c: Convert the results of strerror()
              and strsignal() to UTF-8.
      
              * glib/gconvert.c glib/gdir.c glib/giochannel.c glib/giounix.c
              glib/giowin32.c: Use g_strerror(), not strerror().
      cef5d28c
  29. 15 Feb, 2002 1 commit
    • Owen Taylor's avatar
      Updated. · 5d43b9ad
      Owen Taylor authored
      Fri Feb 15 10:41:51 2002  Owen Taylor  <otaylor@redhat.com>
      
              * NEWS: Updated.
      
              * configure.in: Require autoconf-2.52, run AC_SYS_LARGEFILE.
              (#71410, Sven Neumann)
      
              * glib/giounix.c glib/giowin32.c glib/giochannel.[ch]:
              Change offset type for g_io_channel_seek[_position] to
              gint64.
      5d43b9ad
  30. 28 Jan, 2002 1 commit
  31. 13 Dec, 2001 1 commit
    • Matthias Clasen's avatar
      Revert mistaken change: it is UNIX, not Unix. · a3d7806b
      Matthias Clasen authored
              * glib/tmpl/completion.sgml, glib/tmpl/date.sgml,
              glib/tmpl/fileutils.sgml, glib/tmpl/iochannels.sgml,
              glib/tmpl/macros.sgml, glib/tmpl/memory.sgml,
              glib/tmpl/misc_utils.sgml, glib/tmpl/warnings.sgml,
              glib/tmpl/windows.sgml: Revert mistaken change: it is UNIX, not Unix.
      
              * glib/tmpl/memory_chunks.sgml,
              glib/tmpl/date.sgml, glib/tmpl/threads.sgml,
              glib/tmpl/gtype.sgml: Trivial markup fixes.
      
              * glib/gconvert.c, glib/giochannel.c, glib/gmain.c,
              glib/gwin32.c: Revert mistaken change: it is UNIX, not Unix.
      a3d7806b
  32. 15 Nov, 2001 1 commit
    • Matthias Clasen's avatar
      Documentation fixes. · 50c25041
      Matthias Clasen authored
              * glib/giochannel.c: Documentation fixes.
      
              * glib/tmpl/iochannels.sgml: Document GIOFlags, fix typos.
      
              * glib/tmpl/conversions.sgml, glib/tmpl/unicode.sgml,
              glib/tmpl/spawn.sgml, glib/tmpl/fileutils.sgml,
              glib/tmpl/shell.sgml, glib/tmpl/windows.sgml: Add
              some missing short and long descriptions.
      50c25041
  33. 02 Oct, 2001 1 commit
  34. 27 Sep, 2001 1 commit
    • Bruno Haible's avatar
      When the sublangid is SUBLANG_DEFAULT, return the locale of the language's · 34462896
      Bruno Haible authored
      2001-09-24  Bruno Haible  <haible@clisp.cons.org>
      
      	* glib/gwin32.c (g_win32_getlocale): When the sublangid is
      	SUBLANG_DEFAULT, return the locale of the language's main country,
      	not a country-neutral locale. E.g. "en_US" instead of "en". Add
      	handling of LANG_SORBIAN. Fix typo for SUBLANG_CHINESE_SIMPLIFIED
      	(China == CN, CH == Switzerland). Ignore empty environment
      	variable values.
      
      2001-09-28  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/makefile.{mingw,msc}.in: Add localcharset.o. Just copy the
      	source file from libcharset and compile in this directory.
      
      	* glib/giochannel.c: Mark rest of g_set_error strings for
      	translation, too.
      
      	* glib/giowin32.c: Add some debugging output functions, call them
      	when debugging.
      	(create_events, g_io_win32_msg_write): Free message fetched with
      	g_win32_error_message ().
      	(g_io_win32_check): Indentation fixes.
      	(g_io_win32_fd_read,g_io_win32_sock_read): Don't always return
      	G_IO_STATUS_NORMAL. Do return G_IO_STATUS_EOF if we got 0 bytes,
      	like on Unix. This helps making the test programs run
      	successfully.
      
      	* glib/gmain.c (g_poll): Return the code ifdeffed out with
      	TEST_WITHOUT_THIS. Can't remember why it was ifdeffed out. Things
      	seem to work as previously with the code in place. Especially
      	spawn-test didn't work with the code ifdeffed out (Bug#61067).
      
      	* glib/grand.c (g_rand_new): Don't try to use /dev/urandom unless
      	on Unix.
      
      	* glib/gspawn-win32-helper.c (WinMain): Remove Sleep(10000)
      	accidentally left in.
      
      gthread:
      
      2001-09-28  Tor Lillqvist  <tml@iki.fi>
      
      	* gthread-win32.c: Use an extra level of indirection for GMutex.
      	It is now a pointer either to a pointer to a CRITICAL_SECTION
      	struct, or to a mutex HANDLE. This is needed in case the user
      	defines G_ERRORCHECK_MUTEXES. G_MUTEX_SIZE must correctly reflect
      	the size of *GMutex, but this used to vary depending on whether we
      	at run-time chose to use CRITICAL_SECTIONs or mutexes.
      	(g_mutex_free_win32_cs_impl, g_cond_free_win32_impl): Call
      	DeleteCriticalSection() when done with it.
      
      	* gthread-impl.c (g_thread_init_with_errorcheck_mutexes): Call
      	g_thread_impl_init() before accessing
      	g_thread_functions_for_glib_use_default, as the
      	g_thread_impl_init() function might modify it.
      
      po:
      
      2001-09-28  Tor Lillqvist  <tml@iki.fi>
      
      	* POTFILES.in: Add iochannel.c and giowin32.c.
      
      	* sv.po: Remove a bogus fuzziness indicator.
      34462896
  35. 19 Sep, 2001 1 commit
  36. 18 Sep, 2001 1 commit
    • Owen Taylor's avatar
      Fixes for compilation on Solaris (#59026, Frank Belew) · a9b48f33
      Owen Taylor authored
      Tue Sep 18 18:23:02 2001  Owen Taylor  <otaylor@redhat.com>
      
              Fixes for compilation on Solaris (#59026, Frank Belew)
      
              * glib/gqsort.c (g_qsort_with_data): Use g_alloca().
      
              * glib/giochannel.c (g_io_channel_read_to_end): Fix use
              of ternary on left-hand-side.
      
              * configure.in: Handle the ac_cv_working_alloca_h variable
              set by autoconf-2.5x.
      
      Tue Sep 11 18:50:44 2001  Owen Taylor  <otaylor@redhat.com>
      
              * m4macros/glib-gettext.m4 acinclude.m4: Remove commented
              out sections for clarity.
      a9b48f33
  37. 10 Sep, 2001 1 commit
    • Ron Steinke's avatar
      Modified Files: glib/ChangeLog glib/glib/giochannel.h · d5485ef3
      Ron Steinke authored
      Modified Files:
      	glib/ChangeLog glib/glib/giochannel.h glib/glib/giochannel.c
      
      	* glib/giochannel.h glib/giochannel.c: Added a length argument
      	to g_io_channel_[set,get]_line_term(), allowing embeded nulls
      	and binary safe line termination strings
      
      	* glib/giochannel.c: Got rid of a compile warning in
      	g_io_channel_write_chars()
      d5485ef3