Re: [Vala] Converting library by hand



Hi,

Thank you very much to answer me !
Ok, i will try to port this library by hand.

So can you give me an example to convert some kind of code for vapi file.

First:

typedef enum de_crossover_t
 {
 GA_DE_CROSSOVER_UNKNOWN = 0,
 GA_DE_CROSSOVER_BINOMIAL = 1,
 GA_DE_CROSSOVER_EXPONENTIAL = 2
 } ga_de_crossover_type;


Second:

GAULFUNC population *ga_population_new(    const int stable_size,
               const int num_chromosome,
               const int len_chromosome);

Third:

GAULFUNC boolean    ga_seed_boolean_random(population *pop, entity *adam);

Thank you in advance.
Nicolas.




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