Re: [Vala] Vala on win32



Hi Hans,

On Son, 2007-05-06 at 22:58 +0200, Hans Breuer wrote:
Hi,
recently I stumbled over Vala and immediately liked the concept. As a long
term win32 gtk+ developer the first thing I've done was to port Vala to
win32 following the pattern from:
http://svn.gnome.org/viewcvs/glib/trunk/README.win32?revision=5294&view=markup

Nice, thanks.

Given that the Vala compiler is written in Vala but the generated C source
was not compilable as is with msvc, I needed a combination of modifying
generated sources and regeneration on linux.

Developing self-hosting compilers can be tricky sometimes ;)

Is the following patch acceptable?

* vapi/glib-2.0.vala : instead of strtoll() map to g_ascii_strtoll() to for
increased portability

* gobject/valacodegenerator.vala : avoid empty struct declaration which is
a gccism

Committed to SVN.

* gobject/valacodegeneratorclass.vala gobject/valacodegeneratormethod.vala
vala/valatyperegisterfunction.vala : don't use of 'cdecl' as variable name,
it's a keyword to specify the calling convention with windoze compilers

I've added keyword awareness to the code generator, seems to make more
sense than restricting variable names within vala.

* vala/parser.y : declare variables at the beginning of blocks as required
for c89

Committed to SVN.

There are much more issues with the use of c99 and the msvc compiler, but
I've written a Python script to deal with them.

Could you list the issues or send me the script, maybe we can integrate
(some of) the changes into the code generator.

Jürg




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