Logo Search packages:      
Sourcecode: inkscape version File versions

guchar* cr_declaration_list_to_string ( CRDeclaration a_this,
gulong  a_indent 
)

Serializes the declaration list into a string

Parameters:
a_this the current instance of CRDeclaration.
a_indent the number of indentation white char to put before the actual serialisation.

Definition at line 531 of file cr-declaration.c.

References cr_declaration_to_string().

{
        CRDeclaration *cur = NULL;
        GString *stringue = NULL;
        gchar *str = NULL,
                *result = NULL;

        g_return_val_if_fail (a_this, NULL);

        stringue = g_string_new (NULL);

        for (cur = a_this; cur; cur = cur->next) {
                str = cr_declaration_to_string (cur, a_indent);
                if (str) {
                        g_string_append_printf (stringue, "%s;", str);
                        g_free (str);
                } else
                        break;
        }
        if (stringue && stringue->str) {
                result = stringue->str;
                g_string_free (stringue, FALSE);
        }

        return (guchar *)result;
}


Generated by  Doxygen 1.6.0   Back to index