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



On 26/12/2007, Jürg Billeter <j bitron ch> wrote:
Hi Mikkel,

On Mon, 2007-12-24 at 14:41 +0100, Mikkel Kamstrup Erlandsen wrote:
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:

Thanks for the patch. Unfortunately this breaks line numbering for
debugging, i.e. we'd need multiple #line directives if we split the C
code we output. I don't consider minor stylistic improvements very
important right now.


That's ok. I use it because I wanted to use Vala to write some stub C
code and then tweak things myself. Ie using Vala as a glorified code
generator and it eased up my workflow using this tweak.

Anyways thanks for Vala! I've put it to the first real spin and I love it!

Cheers,
Mikkel



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