[Vala] Simpler RE: embedding c code snippet in vala source.
- From: Sam Liddicott <sam liddicott com>
- To: Yu Feng <rainwoodman gmail com>, vala-list <vala-list gnome org>
- Subject: [Vala] Simpler RE: embedding c code snippet in vala source.
- Date: Fri, 22 Aug 2008 19:12:26 +0100
You can probably simplify it and perhaps make it less offensive by getting rid of the C parsing for symbol
names and try another way.
For my work on compact classes vmt expressions etc, I implement it as a macro body; if you implement the
snippet as a macro body it and pass in the vala parameters then the C preprocessor will do the symbol
replacement for you, and you van treat the snippet as an opaque string that becomes the macro bodyguards
For my own stuff the macro args are fixed, but I guess for you they will be the methods own args.
Sam
Sam
-----Original Message-----
From: Yu Feng <rainwoodman gmail com>
Sent: Thursday, August 21, 2008 7:27 PM
To: vala-list <vala-list gnome org>
Subject: [Vala] embedding c code snippet in vala source.
Dear all,
I made a patch that allows embedding c code snippet in vala source.
http://bugzilla.gnome.org/show_bug.cgi?id=548897
This is quite primitive and more has to be done, especially to translate
the vala variable names to cnames.
I would like to analogue this with embedding asm code in c. :-)
Another direction of this patch is to allow small wrapping code in
the .vapi declarations (which might ease the vapi authors's life)
Yu
_______________________________________________
Vala-list mailing list
Vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]