[Vala] [patch] glib style methods in generated C code



Hi,

Here's a patch to make the generated C code follow the GLib style more closely.

What it does is to put newlines after the method return type and
before the code block. Method decls are not affected. Output looks
like this:


static gint sample_main (int args_length1, char** args);

<SNIP>

static gint
sample_main (int args_length1, char** args)
{
        Sample* sample;
        gint _tmp0;
        sample = sample_new ();
        sample_run (sample);
        return (_tmp0 = 0, (sample == NULL ? NULL : (sample =
(g_object_unref (sample), NULL))), _tmp0);
}

Merry christmas, cheers,
Mikkel

Attachment: g-style-functions.patch
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]