X-Git-Url: https://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/4f931a71edce4d7456c233487703a894410fd599..02cf98875fd0b8462ce39778db16cfd347b5c2d0:/src/parse.y diff --git a/src/parse.y b/src/parse.y index 662f990..46df2d6 100644 --- a/src/parse.y +++ b/src/parse.y @@ -22,7 +22,7 @@ */ %{ -#include "config.h" +#include #include #include #include @@ -416,15 +416,15 @@ export_accessors (const char *var_name, "pointer", "*", NULL); - g_string_sprintf (get_cbuf, - "\t%s%s val; " - "g_object_get (G_OBJECT (self), \"%s\", " - "&val, NULL); " - "return val;\n", - the_type->name, - the_type->pointer ? the_type->pointer : "", - var_name); - + g_string_printf(get_cbuf, + "\t%s%s val; " + "g_object_get (G_OBJECT (self), \"%s\", " + "&val, NULL); " + "return val;\n", + the_type->name, + the_type->pointer ? the_type->pointer : "", + var_name); + typestack = g_list_prepend (typestack, node1); typestack = g_list_prepend (typestack, node3); @@ -451,10 +451,10 @@ export_accessors (const char *var_name, "pointer", "*", NULL); - g_string_sprintf (set_cbuf, - "\tg_object_set (G_OBJECT (self), " - "\"%s\", val, NULL);\n", - var_name); + g_string_printf(set_cbuf, + "\tg_object_set (G_OBJECT (self), " + "\"%s\", val, NULL);\n", + var_name); typestack = g_list_prepend (typestack, node2); typestack = g_list_prepend (typestack, node1); @@ -614,9 +614,9 @@ property_link_and_export (Node *node) const char *setcast = ""; char *to_free = NULL; set_func = g_strdup_printf ("g_value_set_%s", prop->gtktype); - g_strdown (set_func); + gob_strdown (set_func); get_func = g_strdup_printf ("g_value_get_%s", prop->gtktype); - g_strdown (get_func); + gob_strdown (get_func); if (for_cpp) { if (strcmp (prop->gtktype, "FLAGS") == 0) {