@@ -446,42 +446,42 @@ private static function init(): void
446446typedef struct _GClosureNotifyData GClosureNotifyData;
447447struct _GClosureNotifyData
448448{
449- void* data;
450- GClosureNotify notify;
449+ void* data;
450+ GClosureNotify notify;
451451};
452452struct _GClosure
453453{
454- /*< private >*/
455- int ref_count : 15; /* (atomic) */
456- /* meta_marshal is not used anymore but must be zero for historical reasons
457- as it was exposed in the G_CLOSURE_N_NOTIFIERS macro */
458- int meta_marshal_nouse : 1; /* (atomic) */
459- int n_guards : 1; /* (atomic) */
460- int n_fnotifiers : 2; /* finalization notifiers (atomic) */
461- int n_inotifiers : 8; /* invalidation notifiers (atomic) */
462- int in_inotify : 1; /* (atomic) */
463- int floating : 1; /* (atomic) */
464- /*< protected >*/
465- int derivative_flag : 1; /* (atomic) */
466- /*< public >*/
467- int in_marshal : 1; /* (atomic) */
468- int is_invalid : 1; /* (atomic) */
469-
470- /*< private >*/ marshaler marshal;
471- /*< protected >*/ void* data;
472-
473- /*< private >*/ GClosureNotifyData *notifiers;
474-
475- /* invariants/constraints:
476- * - ->marshal and ->data are _invalid_ as soon as ->is_invalid==TRUE
477- * - invocation of all inotifiers occurs prior to fnotifiers
478- * - order of inotifiers is random
479- * inotifiers may _not_ free/invalidate parameter values (e.g. ->data)
480- * - order of fnotifiers is random
481- * - each notifier may only be removed before or during its invocation
482- * - reference counting may only happen prior to fnotify invocation
483- * (in that sense, fnotifiers are really finalization handlers)
484- */
454+ /*< private >*/
455+ int ref_count : 15; /* (atomic) */
456+ /* meta_marshal is not used anymore but must be zero for historical reasons
457+ as it was exposed in the G_CLOSURE_N_NOTIFIERS macro */
458+ int meta_marshal_nouse : 1; /* (atomic) */
459+ int n_guards : 1; /* (atomic) */
460+ int n_fnotifiers : 2; /* finalization notifiers (atomic) */
461+ int n_inotifiers : 8; /* invalidation notifiers (atomic) */
462+ int in_inotify : 1; /* (atomic) */
463+ int floating : 1; /* (atomic) */
464+ /*< protected >*/
465+ int derivative_flag : 1; /* (atomic) */
466+ /*< public >*/
467+ int in_marshal : 1; /* (atomic) */
468+ int is_invalid : 1; /* (atomic) */
469+
470+ /*< private >*/ marshaler marshal;
471+ /*< protected >*/ void* data;
472+
473+ /*< private >*/ GClosureNotifyData *notifiers;
474+
475+ /* invariants/constraints:
476+ * - ->marshal and ->data are _invalid_ as soon as ->is_invalid==TRUE
477+ * - invocation of all inotifiers occurs prior to fnotifiers
478+ * - order of inotifiers is random
479+ * inotifiers may _not_ free/invalidate parameter values (e.g. ->data)
480+ * - order of fnotifiers is random
481+ * - each notifier may only be removed before or during its invocation
482+ * - reference counting may only happen prior to fnotify invocation
483+ * (in that sense, fnotifiers are really finalization handlers)
484+ */
485485};
486486long g_signal_connect_closure(GObject* object, const char* detailed_signal, GClosure *closure, bool after);
487487GClosure* g_closure_new_simple (int sizeof_closure, void* data);
0 commit comments