changed collect_format, collect_value() and lcopy_format, lcopy_value() in
authorTim Janik <timj@gtk.org>
Sat, 17 Feb 2001 05:32:00 +0000 (05:32 +0000)
committerTim Janik <timj@src.gnome.org>
Sat, 17 Feb 2001 05:32:00 +0000 (05:32 +0000)
commitbbc5a3adac7d6d5dbdcf956d7d185e9910c3034b
treeebf571a1c899b7d4a967356015e836dd4d7037ff
parent2836524d87c07d607ab45b8ec9d003ef8665a93e
changed collect_format, collect_value() and lcopy_format, lcopy_value() in

Sat Feb 17 04:55:35 2001  Tim Janik  <timj@gtk.org>

        * gtype.[hc]: changed collect_format, collect_value() and lcopy_format,
        lcopy_value() in the GTypeValueTable. the collect functions are now
        called only once per value, collect_format/lcopy_format are strings
        that enlist all necessary GTypeCValues to be varargs-collected.

        * gvalue.h: ranamed STATIC_TAG to G_VALUE_NOCOPY_CONTENTS to indicate that
        a value shouldn't copy its contents.

        * gvaluecollector.h: changed G_VALUE_COLLECT() and G_VALUE_LCOPY()
        macros to carry an additional argument (flags) that can be used
        to pass G_VALUE_NOCOPY_CONTENTS along to the collection functions.

        * *.c: adapted collect_value() and lcopy_value() functions to the new
        prototypes, support G_VALUE_NOCOPY_CONTENTS where apropriate.

        * gsignal.[hc]: introduced a G_SIGNAL_TYPE_STATIC_SCOPE flag that can
        be passed along (ORed) with the parameter types, indicating that the
        emission arguments are to be considered static for the scope of the
        emission. should be used with care and only if the caller knows that
        a parameter cannot be destroyed/freed from signal handlers connected
        to an emission.
15 files changed:
docs/reference/gobject/tmpl/gobject-unused.sgml
docs/reference/gobject/tmpl/types.sgml
gobject/ChangeLog
gobject/gboxed.c
gobject/genums.c
gobject/gobject.c
gobject/gparam.c
gobject/gsignal.c
gobject/gsignal.h
gobject/gtype.c
gobject/gtype.h
gobject/gvalue.c
gobject/gvalue.h
gobject/gvaluecollector.h
gobject/gvaluetypes.c