1. 12 Oct, 2011 1 commit
  2. 04 Jun, 2011 1 commit
    • Alexander Larsson's avatar
      Make g_datalist_get_data not look up the quark · 1cceda49
      Alexander Larsson authored
      Instead of converting the string to a quark and comparing quarks we
      use the new lockless g_quark_to_string and just compare the quarks
      in the datalist with the given string.
      
      This means we avoid the global lock for string to quark. Additionally
      most of the time the data list will be quite short, so the cost of
      doing the sting comparisons is likely similar to that of the quark
      hashtable lookup (which does at least one string comparison for a
      successfull lookup).
      
      https://bugzilla.gnome.org/show_bug.cgi?id=650458
      1cceda49
  3. 05 May, 2008 1 commit
    • Michael Natterer's avatar
      #define __GLIB_H_INSIDE__ around including everything. · e0aa9d8a
      Michael Natterer authored
      2008-05-05  Michael Natterer  <mitch@imendio.com>
      
      	* glib/glib.h: #define __GLIB_H_INSIDE__ around including
      	everything.
      
      	* glib/*.h: check for that define instead of __G_LIB_H__ if
      	G_DISABLE_SINGLE_INCLUDES is defined.
      
      	* glib/gdatasetprivate.h: #include <glib.h> instead of
      	<glib/gdataset.h>
      
      
      svn path=/trunk/; revision=6875
      e0aa9d8a
  4. 14 Mar, 2008 1 commit
    • Michael Natterer's avatar
      make it possible to disable single-file includes by defining · f4bb21aa
      Michael Natterer authored
      2008-03-14  Michael Natterer  <mitch@imendio.com>
      
      	* glib/*.h: make it possible to disable single-file includes by
      	defining G_DISABLE_SINGLE_INCLUDES when building against GLib.
      	Approved by Tim Janik.
      
      	* glib/glib.h: include <glib/gslice.h>.
      
      	* glib/gi18n.h
      	* glib/gi18n-lib.h
      	* glib/gprintf.h: include <glib.h> so the above works when these
      	files are included without including <glib.h> first.
      
      
      svn path=/trunk/; revision=6713
      f4bb21aa
  5. 05 May, 2005 1 commit
    • Owen Taylor's avatar
      Add g_object_add/remove_toggle_ref() functions to get notification when a · 2ae1a46b
      Owen Taylor authored
      2005-05-05  Owen Taylor  <otaylor@redhat.com>
      
              * gobject.[ch] gobject.symbols: Add
              g_object_add/remove_toggle_ref() functions to get notification
              when a reference count is the last remaining reference; this
              enables better memory management for language bindings.
              (http://mail.gnome.org/archives/gtk-devel-list/2005-April/msg00095.html)
      
      2005-05-05  Owen Taylor  <otaylor@redhat.com>
      
              * glib/gdataset.[ch] glib/gdatasetprivate.h: Add
              g_datalist_set/unset_flags(), g_datalist_get_flags() functions
              to squeeze some bits into a GDataSet... this is needed for
              efficient implementation of toggle references in GObject.
      
              * tests/gobject/references.c tests/gobject/Makefile.am:
              Add a test case for weak and toggle references.
      
              * glib/gfileutils.[ch]: Rename g_file_replace() back
              to g_file_set_contents().
      
              * glib/glib.symbols: Update.
      
      2005-05-05  Owen Taylor  <otaylor@redhat.com>
      
              * glib/Makefile.am glib/glib-sections.txt gobject/gobject-sections.txt:
              Update
      
              * gobject/tmpl/objects.sgml: Document toggle-references.
      2ae1a46b
  6. 26 Jun, 2001 1 commit
    • Owen Taylor's avatar
      Move glib library into a subdirectory, make all GLib include files include · 2fd6b001
      Owen Taylor authored
      Tue Jun 26 11:43:46 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* configure.in Makefile.am *.[ch] glib/*.[ch] glib/Makefile.am:
      	Move glib library into a subdirectory, make all GLib include
      	files include as <glib/glist.h>
      
      	* tests/testglib.c tests/testgdate.c tests/testgdateparser.c
      	  tests/timeloop.c tests/timeloop-basic.c: Move all tests into
      	the tests/ subdirectory.
      2fd6b001
  7. 12 Oct, 2000 1 commit
    • Sebastian Wilhelmi's avatar
      Split glib.h into many header files mostly according to the resp. · b1d15587
      Sebastian Wilhelmi authored
      
      2000-10-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* glib.h, galloca.h, garray.h, gasyncqueue.h, gbacktrace.h,
      	gcache.h, gcompletion.h, gconvert.h, gdataset.h, gdate.h, ghash.h,
      	ghook.h, giochannel.h, glist.h , gmacros.h, gmain.h, gmem.h,
      	gmessages.h, gnode.h, gprimes.h, gquark.h, gqueue.h, grand.h,
      	grel.h, gscanner.h, gslist.h, gstrfuncs.h, gstring.h, gthread.h,
      	gthreadpool.h, gtimer.h, gtree.h, gtypes.h, gutils.h: Split glib.h
      	into many header files mostly according to the resp. *.c-files.
      
      	* gmacros.h: Added G_BEGIN_DECLS and G_END_DECLS to mean: 'in case
      	of C++: extern "C" { ... }' analogous to glibc __BEGIN_DECLS and
      	__END_DECLS.
      
      	* configure.in, gerror.h, gfileutils.h, gshell.h, gspawn.h,
      	gunicode.h, : Changed guard-macro names to something more
      	consistent.
      
      	* configure.in, *.h: Use G_BEGIN_DECLS and G_END_DECLS.
      b1d15587