$(GLIB_DEBUG_FLAGS) \
$(THREAD_FLAGS) \
-DG_DISABLE_DEPRECATED \
- -DGOBJECT_COMPILATION \
- -DG_DISABLE_CONST_RETURNS
+ -DGOBJECT_COMPILATION
gobject.def: gobject.symbols
$(AM_V_GEN) (echo -e EXPORTS; $(CPP) -P -DINCLUDE_VARIABLES -DINCLUDE_INTERNAL_SYMBOLS -DG_OS_WIN32 -DALL_FILES - <$(srcdir)/gobject.symbols | $(SED) -e '/^$$/d' -e 's/^/ /' -e 's/G_GNUC_[^ ]*//g' | sort) > gobject.def
GObject *target;
/* the property names are interned, so they should not be freed */
- gchar *source_property;
- gchar *target_property;
+ const gchar *source_property;
+ const gchar *target_property;
GParamSpec *source_pspec;
GParamSpec *target_pspec;
GObjectClass *class = g_type_class_peek (pspec->owner_type);
guint param_id = PARAM_SPEC_PARAM_ID (pspec);
GParamSpec *redirect;
- static gchar* enable_diagnostic = NULL;
+ static const gchar * enable_diagnostic = NULL;
if (class == NULL)
{
if (flags & G_PARAM_STATIC_NAME)
{
- pspec->name = g_intern_static_string (name);
+ /* pspec->name is not freed if (flags & G_PARAM_STATIC_NAME) */
+ pspec->name = (gchar *) g_intern_static_string (name);
if (!is_canonical (pspec->name))
g_warning ("G_PARAM_STATIC_NAME used with non-canonical pspec name: %s", pspec->name);
}
node->global_gdata = NULL;
g_hash_table_insert (static_type_nodes_ht,
- g_quark_to_string (node->qname),
+ (gpointer) g_quark_to_string (node->qname),
(gpointer) type);
return node;
}
const GValue *handler_return,
gpointer data)
{
- gchar *accu_string = g_value_get_string (return_accu);
- gchar *new_string = g_value_get_string (handler_return);
+ const gchar *accu_string = g_value_get_string (return_accu);
+ const gchar *new_string = g_value_get_string (handler_return);
gchar *result_string;
if (accu_string)