1. 10 Apr, 2012 1 commit
  2. 08 Mar, 2012 1 commit
    • Chun-wei Fan's avatar
      Use G_VA_COPY instead of va_copy() · b72bb9dd
      Chun-wei Fan authored
      va_vopy() is not universally available in all compilers, so make use of
      the existing G_VA_COPY macro which either calls va_copy() if it is
      available, or emulates it if otherwise.
      b72bb9dd
  3. 02 Mar, 2012 3 commits
  4. 06 Oct, 2011 4 commits
  5. 05 Oct, 2011 1 commit
    • Dan Williams's avatar
      closure: fix handling of ENUMs and integral return types on 64-bit BE platforms · 8e82225a
      Dan Williams authored
      enums are stored in v_long but need to be marshalled as signed
      integers.  On platforms where int is 32 bits, taking the
      address of v_long resulted in the wrong 32 bits being marshalled.
      So we need to stuff the enum's int-sized value to a temporary
      int-sized variable and marshall that instead.
      
      Second, on return, libffi actually returns a pointer to a value
      that's sized according to platform conventions, not according to
      what the caller requested.  ie if ffi_type_sint was requested, the
      value can still be a 64-bit sign-extended long on a 64-bit
      architecture like PPC64, thus the caller cannot simply cast
      the return value as a pointer to the desired type, but must cast
      as a pointer to an integral type and then cast to the desired
      type to remove any sign extension complications.
      
      For more information on how to correctly handle libffi return
      values, see the following bug, specifically comment 35:
      
      https://bugzilla.redhat.com/show_bug.cgi?id=736489
      
      "For 64-bit ABIs that extend integral returns types to 64-bits, libffi always
      returns full 64-bit values that you can truncate in the calling code.   It's
      just the way it is has always been.  Please don't change libffi.  I'll document
      this clearly for the next version (perhaps there is a mention of this, I
      haven't looked yet).
      
      The same is true for returning 8-bit values, for instance, on 32-bit systems.
      All ABIs extend those results to the full 32-bits so you need to provide a
      properly aligned buffer that's big enough to hold the result."
      
      https://bugzilla.gnome.org/show_bug.cgi?id=659881
      8e82225a
  6. 23 Sep, 2011 1 commit
  7. 29 Aug, 2011 1 commit
    • Matthias Clasen's avatar
      Spelling fixes · 1b28408b
      Matthias Clasen authored
      Spelling fixes in comments and docs, provided by
      Kjartan Maraas in bug 657336.
      1b28408b
  8. 19 Aug, 2011 1 commit
  9. 20 Jun, 2011 1 commit
  10. 14 Jun, 2011 2 commits
  11. 02 May, 2011 1 commit
  12. 08 Apr, 2011 1 commit
  13. 19 Dec, 2010 1 commit
  14. 04 Aug, 2010 1 commit
    • Emmanuele Bassi's avatar
      binding: Add a default marshaller for the closure API · 4bc9654c
      Emmanuele Bassi authored
      The g_object_bind_property_with_closures() function should set a
      marshaller if the two GClosures don't have one already. This simplifies
      the caller code and avoids duplication.
      
      We need to add a new marshaller to the gmarshal.list matching the
      signature of the GBindingTransformFunc function.
      4bc9654c
  15. 07 Jul, 2010 1 commit
  16. 23 Jun, 2010 1 commit
  17. 23 Feb, 2009 1 commit
  18. 02 Jul, 2008 1 commit
  19. 22 Jun, 2008 3 commits
    • Michael Natterer's avatar
      remove trailing whitespace from newly added gtk-doc comments and · 6347be5f
      Michael Natterer authored
      2008-06-22  Michael Natterer  <mitch@imendio.com>
      
      	* *.c: remove trailing whitespace from newly added gtk-doc
      	comments and reformatted some where they contained overly long or
      	ill-formatted lines.
      
      
      svn path=/trunk/; revision=7090
      6347be5f
    • Michael Natterer's avatar
      moved includes back to the top of the files (before gtk-doc SECTION · 5602b7e2
      Michael Natterer authored
      2008-06-22  Michael Natterer  <mitch@imendio.com>
      
      	* *.c: moved includes back to the top of the files (before gtk-doc
      	SECTION comments). Add "config.h" in all files and move system
      	included before glib includes. Remove trailing whitespace from
      	SECTION comments and did some reformatting where lines were overly
      	long, no documentation content was changed.
      
      
      svn path=/trunk/; revision=7089
      5602b7e2
    • Stefan Kost's avatar
      Migrating docs. · 356fe465
      Stefan Kost authored
      	* docs/reference/gobject/tmpl/signals.sgml:
      	* gobject/gclosure.c:
      	* gobject/gobject.c:
      	* gobject/gsignal.c:
      	* gobject/gsignal.h:
      	  Migrating docs.
      
      
      svn path=/trunk/; revision=7083
      356fe465
  20. 21 Jun, 2008 4 commits
    • Stefan Kost's avatar
      Add --sgml-mode to allow sgml in doc-fragments (which somehow works before · f22d19fc
      Stefan Kost authored
      	* docs/reference/gobject/Makefile.am:
      	  Add --sgml-mode to allow sgml in doc-fragments (which somehow works
      	  before already).
      	* gobject/gboxed.h:
      	* gobject/gclosure.c:
      	* gobject/gparam.c:
      	* gobject/gparam.h:
      	* gobject/gtype.h:
      	  Convert character entities back. FIx some broken sgml.
      
      
      svn path=/trunk/; revision=7078
      f22d19fc
    • Stefan Kost's avatar
      Add titles back from tmpl. · bce5ebd4
      Stefan Kost authored
      	* gobject/gboxed.c:
      	* gobject/gclosure.c:
      	* gobject/genums.c:
      	* gobject/gparam.c:
      	* gobject/gvalue.c:
      	  Add titles back from tmpl.
      
      
      svn path=/trunk/; revision=7076
      bce5ebd4
    • Stefan Kost's avatar
      Use file-names from the section file for SECTION: comments. · d5f1c71f
      Stefan Kost authored
      	* gobject/gboxed.c:
      	* gobject/gclosure.c:
      	* gobject/genums.c:
      	* gobject/gvalue.c:
      	  Use file-names from the section file for SECTION: comments.
      
      
      svn path=/trunk/; revision=7072
      d5f1c71f
    • Stefan Kost's avatar
      Migrating docs. · 83dd5450
      Stefan Kost authored
      	* docs/reference/gobject/tmpl/gclosure.sgml:
      	* gobject/gboxed.h:
      	* gobject/gclosure.c:
      	* gobject/gclosure.h:
      	* gobject/gobject.c:
      	* gobject/gsourceclosure.c:
      	* gobject/gsourceclosure.h:
      	  Migrating docs.
      
      
      svn path=/trunk/; revision=7069
      83dd5450
  21. 30 Jan, 2006 1 commit
  22. 08 Sep, 2005 1 commit
  23. 03 Aug, 2005 1 commit
  24. 01 Aug, 2005 1 commit
    • Tim Janik's avatar
      turned all modifications to the first 32 integer bits in a closure into · 834ddd19
      Tim Janik authored
      Mon Aug  1 23:00:42 2005  Tim Janik  <timj@imendio.com>
      
              * gclosure.c: turned all modifications to the first 32 integer bits in a
              closure into atomic accesses. wrapped write accesses into special macros
              to keep the atomic modification logic in a single place. comment cleanups.
      
              * gclosure.h: made all atomicly accessed closure fields volatile.
      
              * gobject.h: made ref_count field volatile.
      834ddd19
  25. 30 Jul, 2005 1 commit
    • Tim Janik's avatar
      reverted notify_mutex introduction, since this prevents parallelized · f0cfc267
      Tim Janik authored
      Sat Jul 30 21:10:26 2005  Tim Janik  <timj@gtk.org>
      
              * gobject.c: reverted notify_mutex introduction, since this prevents
              parallelized setting of object properties on different objects, and
              serves no apparent purpose (to me at least).
              g_object_real_dispose(): removed non-atomic reference count
              modifications.
              g_object_unref(): make sure the closures array is destroyed when
              destroying signal handlers.
      
              * gparam.c: cosmetic changes.
      
              * gsignal.c: comment fixup. allow 16bit blocking count.
      
              * gsignal.c: reverted GClosure related changes.
      
              * gclosure.c: reverted premature commit of atomic reference
              counting attempt.
      f0cfc267
  26. 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
  27. 14 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      Make work again. · 3448a278
      Matthias Clasen authored
      2005-03-14  Matthias Clasen  <mclasen@redhat.com>
      
      	* abicheck.sh: Make work again.
      
      	* gsourceclosure.c: Fix a typo.
      
      	Make PLT-reduction work with gcc4, and don't include
      	everything in gobjectalias.h:
      
      	* gobject.symbols: Group symbols by header and source
      	file.
      	* makegobjectalias.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
      	* Makefile.am (gobjectaliasdef.c): Add a rule to
      	build this file.
      	* *.c: Include gobjectalias.h after the other i
              GLib headers, include gobjectaliasdef.c at the bottom.
      3448a278
  28. 16 Sep, 2004 1 commit
    • Matthias Clasen's avatar
      Implement the same PLT reduction technique used in GTK+: · 465c7d1e
      Matthias Clasen authored
      2004-09-16  Matthias Clasen  <mclasen@redhat.com>
      
      	Implement the same PLT reduction technique used in GTK+:
      
      	* Makefile.am: Generate gobjectalias.h from gobject.symbols.
      	(BUILT_SOURCES): Add gobjectalias.h.
      
      	* makegobjectalias.pl: Script to generate gobjectalias.h.
      
      	* *.c: Include gobjectalias.h
      465c7d1e
  29. 13 Mar, 2002 1 commit
    • Erwann Chenede's avatar
      glib/gconvert.c glib/gen-unicode-tables.pl fixed cast/type problems to · 738c1cfd
      Erwann Chenede authored
      2002-03-13  Erwann Chenede  <erwann.chenede@sun.com>
        * glib/gconvert.c
        * glib/gen-unicode-tables.pl
        * glib/gunidecomp.h : fixed cast/type problems to
          avoid warnings (with forte compiler)
        * gobject/gclosure.c
        * gobject/gobject.c
        * gobject/gsignal.c: fixed cast problems with function pointer
          to avoid warnings (with forte compiler) (#73898)
      738c1cfd