Hi,
I was rewriting some of my (C)code in vala. I used to do the following in
my C code,
enum {
#ifdef EMBEDED
MAX_EVENTS=2
#else
MAX_EVENTS=20
#endif
};
int statistics[MAX_EVENTS];
int foo[MAX_EVENTS];
int bar[MAX_EVENTS];
Unfortunately I am not allowed to use enum identifier insid
I am trying to maintain a pool based fast implementation here,
https://github.com/kamanashisroy/aroop
I like the idea of plugable profile.
--
-- Thanks
Kamanashis Roy
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/lis
On Sun, Aug 12, 2012 at 2:10 PM, Kamanashis Roy Shuva <
kamanashis...@gmail.com> wrote:
>And if this feature is not feasible then do you know any work around ?
>
Either allocate arrays dynamically or use an m4 preprocessor.
And if you think you like this idea, then can you please suggest
Try this code:
enum stats_parameters {
#ifdef EMBEDED
MAX_EVENTS=2
#else
MAX_EVENTS=20
#endif
}
int statistics[stats_parameters.MAX_EVENTS];
int foo[stats_parameters.MAX_EVENTS];
int bar[stats_parameters.MAX_EVENTS];Vala enums must be used with the enum name.
Yours,
Tal
Date: Sun, 12 Aug
Hi folks,
what library would you recommend to be used with vala for providing ftp
and ftp/TLS connectivity? Libcurl [1, 2] could be a candidate but is
seems that the bindings are not up to date. Any suggestions?
Thanks,
[1] https://github.com/giuliopaci/ValaBindingsDevelopment/
[2] http://curl.