1. 06 Mar, 2007 1 commit
  2. 01 Nov, 2005 1 commit
    • Tim Janik's avatar
      prepared deprecation of GMemChunk and GAllocator. added g_slice_*() API to · 0cba1b53
      Tim Janik authored
      Tue Nov  1 16:24:20 2005  Tim Janik  <timj@imendio.com>
      
              * glib/gmem.[hc]: prepared deprecation of GMemChunk and GAllocator.
              added g_slice_*() API to allocate and cache small bits of memory.
              an actuall allocator implementation for g_slice_*() is still pending.
      
              * glib/gthread.[hc]: changes from a patch by Matthias Clasen.
              changed GRealThread list to use in-structure *next; fields instead
              of GSList, in order for thread iteration to not depenend on g_slice_*()
              indirectly.
              _g_thread_mem_private_get():
              _g_thread_mem_private_set(): added accessors for private memory,
              needed because the ordinary GPrivate implementation relies on GArray
              and GSList and therefore indirectly on working g_slice_*() allocations.
      
              * glib/gthread.[hc]:
              g_thread_foreach(): new public API function to loop over all existing threads.
      
              * glib/gdataset.c:
              * glib/gstring.c:
              * glib/gcache.c:
              * glib/garray.c:
              * glib/gqueue.c:
              * glib/gslist.c:
              * glib/glist.c:
              * glib/ghash.c:
              * glib/gtree.c:
              * glib/ghook.c:
              * glib/gmain.c:
              * glib/gnode.c:
              removed GAllocator and free list usages and accompanying locks.
              use g_slice_*() API to allocate and cache small bits of memory.
      
              * glib/ghook.h: removed GMemChunk field from public API.
      
              * glib/gslist.h:
              * glib/glist.h: deprecate allocator API, provide _free1() for consistency.
      
              * glib/gnode.h: deprecate allocator API.
      
              * glib/gmain.c: reordered GPollRec fields so g_slice_free_chain() can
              be used for poll rec lists.
      
              * glib/grel.c: removed mem chunk usage, and allocated tuples via g_slice_*().
              g_relation_destroy(): free all tuples from the all_tuples hash table,
              this effectively maintains the life time track keeping of tuples.
              g_relation_delete_tuple(): free tuples which are removed from the
              all_tuples hash table. this fixes a temporary leak that was present
              in the memchunk code until the destruction of the relation.
      0cba1b53
  3. 20 Sep, 2005 1 commit
  4. 15 Aug, 2005 1 commit
  5. 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
  6. 21 Feb, 2005 1 commit
  7. 04 Dec, 2004 1 commit
  8. 16 Sep, 2004 1 commit
  9. 22 Apr, 2004 1 commit
    • Matthias Clasen's avatar
      Add some tests for off-by-one errors. · 2efb5e1c
      Matthias Clasen authored
      2004-04-22  Matthias Clasen  <mclasen@redhat.com>
      
      	* tests/queue-test.c (main): Add some tests for off-by-one errors.
      
      	* glib/gqueue.c (g_queue_pop_nth_link): Fix an off-by-one
      	error.  (#139703, Philippe Blain)
      2efb5e1c
  10. 27 Feb, 2004 1 commit
  11. 21 Feb, 2004 2 commits
  12. 04 Dec, 2002 1 commit
  13. 08 Nov, 2002 1 commit
    • Soeren Sandmann's avatar
      Trivial s/foo/foo_/ fixes to make <glib.h> includable with -Wshadow · d201974f
      Soeren Sandmann authored
      Fri Nov  8 19:44:20 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* docs/reference/glib/tmpl/arrays.sgml:
      	* docs/reference/glib/tmpl/arrays_byte.sgml:
      	* docs/reference/glib/tmpl/arrays_pointer.sgml:
      	* docs/reference/glib/tmpl/date.sgml:
      	* docs/reference/glib/tmpl/linked_lists_double.sgml:
      	* docs/reference/glib/tmpl/linked_lists_single.sgml:
      	* docs/reference/glib/tmpl/main.sgml:
      	* docs/reference/glib/tmpl/queue.sgml:
      	* docs/reference/glib/tmpl/random_numbers.sgml:
      	* docs/reference/glib/tmpl/relations.sgml:
      	* docs/reference/glib/tmpl/scanner.sgml:
      	* docs/reference/gobject/tmpl/gtype.sgml:
      	* docs/reference/gobject/tmpl/value_arrays.sgml glib/garray.h:
      	* glib/gdate.h glib/giochannel.h glib/glist.h glib/gmain.c:
      	* glib/gmain.h glib/gqueue.c glib/gqueue.h glib/grand.c glib/grand.h:
      	* glib/grel.h glib/gslist.h glib/gtimer.h gobject/gvaluearray.h:
      
      	Trivial s/foo/foo_/ fixes to make <glib.h> includable with
      	-Wshadow without warnings (#91680)
      d201974f
  14. 02 Oct, 2001 1 commit
  15. 19 Dec, 2000 1 commit
    • Sebastian Wilhelmi's avatar
      Ok, I'm a moron. When I originally implemented ENABLE_GC_FRIENDLY, I · 2fb47703
      Sebastian Wilhelmi authored
      
      2000-12-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* gslist.c, glist.c: Ok, I'm a moron. When I originally
      	implemented ENABLE_GC_FRIENDLY, I forgot to include config.h into
      	the affected files. Now that Alex did that for those two,
      	inevitable typos surfaced, which are now fixed.
      
      	* garray.c, ghash.c, gqueue.c, gtree.c: Include config.h as well,
      	as ENABLE_GC_FRIENDLY should be known.
      2fb47703
  16. 26 Jul, 2000 1 commit
  17. 17 Apr, 2000 2 commits
    • Sebastian Wilhelmi's avatar
      Add configure test for garbage collector friendliness for GLib. If · 8c90d776
      Sebastian Wilhelmi authored
      
      2000-04-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* configure.in, acconfig.h: Add configure test for garbage
      	collector friendliness for GLib. If enabled, ENABLE_GC_FRIENDLY
      	will be defined.
      
      	* garray.c, ghash.c, glist.c, gmain.c, gmem.c, gnode.c, gqueue.c,
      	gslist.c, gtree.c: If ENABLE_GC_FRIENDLY is defined, NULLify all
      	memory released by the user, but cached by GLib. This lets a
      	garbage collector have a more correct view of the actually used
      	memory.
      8c90d776
    • Sebastian Wilhelmi's avatar
      Renamed g_queue_create to g_queue_new in conformance to all other GLib · 8f02fac4
      Sebastian Wilhelmi authored
      
      2000-04-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* glib.h, gqueue.c, tests/queue-test.c (main): Renamed
      	g_queue_create to g_queue_new in conformance to all other GLib
      	data types.
      8f02fac4
  18. 13 Mar, 2000 1 commit
  19. 24 Jul, 1999 1 commit
    • Tim Janik's avatar
      18:36. incorporated proposed cleanups from gtk-devel-list. · 87c7aeb9
      Tim Janik authored
      Sat Jul 24 20:11:35 1999  Tim Janik  <timj@gtk.org>
      
              * merged GLib 1.3.0 with glib-1.2.3 from Fri Jul 16 22:18:36.
              * incorporated proposed cleanups from gtk-devel-list.
      
              * bumped version number to GLib-1.3.1
      
              * glib.h:
              * gqueue.c:
              * gstring.c:
              * glist.c:
              removed string tokenisation (we got g_strsplit() and g_strjoin()
              already) and readline functions.
              s/g_list_delete/g_list_delete_link.
              implemented g_slist_delete_link.
              removed notion of g_ATEXIT() macro in glib.h, this is an *internal*
              macro, g_atexit() is provided for public consumption.
              added GTrashStack inline utility functions.
              reimplement double eneded queues.
              removed GStack implementation, people can use a queue or a (singly)
              linked list for this task.
              deprecated g_strescape(), we need the SunOS variants here.
      
              * gdate.c: added DEBUG_MSG() macro to wrap old messages.
      
              * *.*: CVS merges.
      
              * upgrade to libtool 1.3.3.
      87c7aeb9
  20. 17 Mar, 1999 1 commit
  21. 09 Mar, 1999 1 commit
    • Jeff Garzik's avatar
      Added stack, queue ADTs and related tests. · fd7ba69e
      Jeff Garzik authored
      Tue Mar  9 14:37:32 1999  Jeff Garzik  <jgarzik@pobox.com>
      
              * Makefile.am, glib.h, gstack.c, gqueue.c,
                tests/Makefile.am, tests/queue-test.c, tests/stack-test.c:
              Added stack, queue ADTs and related tests.
      
              * glib.h, glist.c:
              New g_list_delete() function.
      fd7ba69e