+2005-09-08 Kjartan Maraas <kmaraas@gnome.org>
+
+ * gclosure.c: (g_closure_set_meta_marshal): Remove some unused
+ code.
+ * gsignal.c: (g_signal_emitv): Same here
+ * gtype.c: (g_type_register_fundamental): And here
+ * testgobject.c: Mark some functions static.
+
2005-09-05 Matthias Clasen <mclasen@redhat.com>
* gsignal.c (struct _SignalNode): Make the name field const.
GClosureMarshal meta_marshal)
{
GClosureNotifyData *notifiers;
- guint n;
g_return_if_fail (closure != NULL);
g_return_if_fail (meta_marshal != NULL);
g_return_if_fail (closure->in_marshal == FALSE);
g_return_if_fail (closure->meta_marshal == 0);
- n = CLOSURE_N_NOTIFIERS (closure);
notifiers = closure->notifiers;
closure->notifiers = g_renew (GClosureNotifyData, NULL, CLOSURE_N_NOTIFIERS (closure) + 1);
if (notifiers)
GQuark detail,
GValue *return_value)
{
- const GValue *param_values;
gpointer instance;
SignalNode *node;
#ifdef G_ENABLE_DEBUG
+ const GValue *param_values;
guint i;
#endif
g_return_if_fail (G_TYPE_CHECK_INSTANCE (instance));
g_return_if_fail (signal_id > 0);
+#ifdef G_ENABLE_DEBUG
param_values = instance_and_params + 1;
-
+#endif
+
SIGNAL_LOCK ();
node = LOOKUP_SIGNAL_NODE (signal_id);
if (!node || !g_type_is_a (G_TYPE_FROM_INSTANCE (instance), node->itype))
const GTypeFundamentalInfo *finfo,
GTypeFlags flags)
{
- GTypeFundamentalInfo *node_finfo;
TypeNode *node;
g_return_val_if_uninitialized (static_quark_type_flags, g_type_init, 0);
G_WRITE_LOCK (&type_rw_lock);
node = type_node_fundamental_new_W (type_id, type_name, finfo->type_flags);
- node_finfo = type_node_fundamental_info_I (node);
type_add_flags_W (node, flags);
if (check_type_info_I (NULL, NODE_FUNDAMENTAL_TYPE (node), type_name, info))
static void iface_base_finalize (TestIfaceClass *iface);
static void print_foo (TestIface *tiobj,
const gchar *string);
-GType
+static GType
test_iface_get_type (void)
{
static GType test_iface_type = 0;
/* initialize stuff */
iface->print_string = print_foo;
}
-void
+static void
iface_print_string (TestIface *tiobj,
const gchar *string)
{
static gchar* test_object_test_signal (TestObject *tobject,
TestIface *iface_object,
gpointer tdata);
-GType
+static GType
test_object_get_type (void)
{
static GType test_object_type = 0;