Re: [Vala] posix.vapi additions (termios)

2009-02-05 Thread Ed Schouten
. Please take a look at the following page: http://www.opengroup.org/onlinepubs/9699919799/basedefs/termios.h.html I remember I sent a termios binding to this some time ago. Please take a look at the archives. -- Ed Schouten WWW: http://80386.nl/ pgpb5sP2iegaq.pgp Description: PGP

Re: [Vala] .vapi and GPL

2009-02-01 Thread Ed Schouten
on, say, the POSIX vapi. But I'm not sure this is required. I seem to recall that you are allowed to use GPL licensed headers/libraries if the API that is implemented is a default system interface... But IANAL. :-) -- Ed Schouten WWW: http://80386.nl/ pgpfsoCw0

Re: [Vala] posix.vapi additions

2009-01-28 Thread Ed Schouten
is bad. On a modern POSIX operating system, we have almost a dozen different types of file descriptors. File descriptors pointing to an actual object in the VFS aren't any more important than the others. -- Ed Schouten WWW: http://80386.nl/ pgpI1aXGGuOc2.pgp Descript

Re: [Vala] Small syntax request labeled loops

2008-07-02 Thread Ed Schouten
* Arto Karppinen <[EMAIL PROTECTED]> wrote: > If you have a lot of loops inside one another, it needs some figuring > out which loops happens to be number 2 at any given point. I bet the compiler already stores references to the current, but also the parent scope. -- Ed Scho

Re: [Vala] Small syntax request labeled loops

2008-07-01 Thread Ed Schouten
t; for (int i=0; i<1000; i++) { > if (a) > break pixels; > if (b) > continue pixels; > } > } > > See the "last" and "next" statements of perl for a larger example. > > Thanks! > Dov Why not do it sh(1) sty

Re: [Vala] Serial port help + posix + signals

2008-05-06 Thread Ed Schouten
ow how tempting it might be to use SIGIO, stay away from it. SIGIO is one of these things in POSIX that was added because someone was bored. There are other tools to implement these things (see sys/select.h and aio.h). -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://80386.nl/ pgpHuyKzN2

Re: [Vala] Serial port help

2008-05-02 Thread Ed Schouten
y with the namespace and the class having the same name, but ideally we should introduce a `POSIX' namespace, which should contain all POSIX (not ISO C) stuff. Have fun! -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://80386.nl/ /* termios.vala * * Copyright (c) 2008 Ed Schouten &l

Re: [Vala] Serial port help

2008-05-02 Thread Ed Schouten
PLICATION USAGE'). It is safe to define the XSI bits, though. If you need any help with this, be sure to mail me. I don't like to brag, but I'm currently working on a rewrite of the FreeBSD TTY layer for my graduation, so I should know a lot about the interface. Good luck! -- Ed Sch

[Vala] libgee and non-null types

2008-04-25 Thread Ed Schouten
Are there any plans to release a new libgee one of these days? Yours, -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://80386.nl/ pgp1Qf51lgO5L.pgp Description: PGP signature ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] stdout.printf not working correctly in GTK+ program

2008-03-30 Thread Ed Schouten
quot; to the end of the string you're trying to print. -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://g-rave.nl/ pgpHIfiiRByWv.pgp Description: PGP signature ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] Vala Quine?

2008-03-20 Thread Ed Schouten
I've got a shorter one: | using GLib; public class Quine { public static void main() { string s = "using GLib; public class Quine { public static void main() { string s = %c%s%c; stdout.printf(s, 34, s, 34); } }"; stdout.printf(s, 34, s, 34); } } Based on the old C printf tric

Re: [Vala] Socket bindings VAPI file

2008-03-19 Thread Ed Schouten
Posix socket API: > > socket() > connect() > bind() > listen () > accept() > getaddrinfo() > > and its related structures. I saw the .vapi defines some constant numbers. Can't these constants be different across architectures? -- Ed Schouten <[EMAIL PROTECT

Re: [Vala] type MIN and MAX

2008-03-05 Thread Ed Schouten
ot;uint64.min => %llu\n", uint64.MIN); | stdout.printf ("uint64.max => %llu\n", uint64.MAX); | } | } Output: | uint.min=> 0 | uint.max=> 4294967295 | ulong.min => 0 | ulong.max => 4294967295 | uint32.min => 0 | uint32.max => 4294967295 | int64.min => -9223372036854775808 | int64.max => 9223372036854775807 | uint64.min => 0 | uint64.max => 18446744073709551615 Be sure to read `man 3 printf'. -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://g-rave.nl/ pgpM8T9sbYswE.pgp Description: PGP signature ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] gtkaml - An Application Markup Language for GTK+Vala

2008-02-03 Thread Ed Schouten
* Vlad Grecescu <[EMAIL PROTECTED]> wrote: > I had this idea for some months now, to write a preprocessor that > converts xml like the one below into valid GTK+ code: But... isn't this what Glade already does? -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://g-rave.

Re: [Vala] Inline C

2008-01-25 Thread Ed Schouten
ler will do the inlining for you. Whether you can write your own inline routines from within Vala? I think you can't. -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://g-rave.nl/ pgpaqdNnWo4lu.pgp Description: PGP signature ___ Vala

Re: [Vala] [ANNOUNCE] Vala 0.1.6 - Compiler for the GObject type system

2008-01-22 Thread Ed Schouten
* Jürg Billeter <[EMAIL PROTECTED]> wrote: > interface Foo { > public abstract int bar (int x) > requires (x > 0) > ensures (result > 0); > } Is this turned into run-time assertions, or is there some compile-time range checking

Re: [Vala] gtk+2.0.vapi bug

2008-01-07 Thread Ed Schouten
rrayLength] | public bool get_dest_row_at_pos (int drag_x, int drag_y, out weak | Gtk.TreePath path, Gtk.TreeViewDropPosition[] pos); This will omit the length argument. -- Ed Schouten <[EMAIL PROTECTED]> WWW: http://g-rave.nl/ pgpaVlWKvQeRW.pgp Description: PGP signature ___

Re: [Vala] Possibly, error in code generator

2007-12-11 Thread Ed Schouten
ead to crashes. As written before, future versions of > valac won't allow to call close() manually for variables using automatic > memory management. Indeed. Just setting the variable to `null' would be a more elegant solution. That's what I did with the Curses bindings as wel