Re: [Vala] Loop not found?

2009-06-25 Thread Jürg Billeter
On Thu, 2009-06-25 at 07:17 +0800, Yu Feng wrote: I was trying to catch up with recent vala master branch, but I get this error: valacodevisitor.vala:308.34-308.37: error: The type name `Loop' could not be found public virtual void visit_loop (Loop stmt) { [...] Nevertheless git

Re: [Vala] malloc/free CCode attributes

2009-06-25 Thread Sam Liddicott
* Arc Riley wrote, On 24/06/09 17:55: While don't you write an example of what your proposal would look like to the list? I honestly don't understand how your proposed solution would work for non-gobject bindings. Off my head, with possibly wrong syntax, possibly abuse of abstract in

[Vala] libyaml-glib: YAML and GObject

2009-06-25 Thread Yu Feng
Dear list(s), I have been playing around GLib and libyaml with vala for a couple of months. While I don't see a clear future of the code, I would like to post a link to my code in case it will be useful to others. The library is written in VALA, but one can write applications and link against it

Re: [Vala] Loop not found?

2009-06-25 Thread Yu Feng
On Thu, 2009-06-25 at 09:24 +0200, Jürg Billeter wrote: On Thu, 2009-06-25 at 07:17 +0800, Yu Feng wrote: I was trying to catch up with recent vala master branch, but I get this error: valacodevisitor.vala:308.34-308.37: error: The type name `Loop' could not be found public

[Vala] [PATCH] GType is a IntegerType + SimpleType

2009-06-25 Thread Yu Feng
Refer to Sam's email on Jun 24th Switch statement on GType. I can't access mail-archive in china; weird. --- vapi/gobject-2.0.vapi |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/vapi/gobject-2.0.vapi b/vapi/gobject-2.0.vapi index 54b53e0..d902452 100644 ---

[Vala] [Patch] Small improvements on gsl bindings

2009-06-25 Thread Yu Feng
Dear list, Here are a few small improvements on gsl bindings. Several places the pointers are properly replaced by arrays, and several delegates are handled the native vala way. - Yu --- vapi/gsl.vapi 2009-06-19 15:45:23.0 +0800 +++ ../vala/vapi/gsl.vapi 2009-06-25 07:06:59.0

Re: [Vala] [Patch] Small improvements on gsl bindings

2009-06-25 Thread Matías De la Puente
2009/6/25 Yu Feng rainwood...@gmail.com Dear list, Here are a few small improvements on gsl bindings. Several places the pointers are properly replaced by arrays, and several delegates are handled the native vala way. Thanks for the patch, hope juergbi can apply it Matias

Re: [Vala] [PATCH] Add parenthesis to macro substitutions

2009-06-25 Thread Jürg Billeter
On Thu, 2009-06-25 at 17:24 +0800, Yu Feng wrote: Only for expressions. No parenthesis is added to string macros. A test is attached. Without the patch compiles to a wrong expression. What do you mean with ? Jürg ___ Vala-list mailing list

Re: [Vala] [PATCH] Add parenthesis to macro substitutions

2009-06-25 Thread Frederik Sdun
Hi, thats a common problem with C makros. Here a better example: public const double = 1.0 + 3.0; public const double = 2.0 / ; will be replaced to 2.0 / 1.0 + 3.0 = 5.0 instead of 0.5. The Patch add () around and the statement will be correct: = 2.0 / ( 1.0 + 3.0

Re: [Vala] [RESEND] [PATCH] Fix Posix.getpgid() binding

2009-06-25 Thread Jürg Billeter
On Sat, 2009-06-20 at 14:37 -0400, Michael B. Trausch wrote: It's been a while since I sent this, and looking at the archives, I somehow must have mangled the email. Here it is again. This fixes the binding for getpgid() to take a single parameter, a pid_t, which complies both with POSIX