[hunspell-fi-devel] Malaga 7.4 on julkaistu

Harri Pitkänen hatapitk at cc.jyu.fi
Sat May 6 12:48:59 EEST 2006


On Friday 05 May 2006 22:15, Reijo Tomperi wrote:
> The "string_t" type has been changed to "const char_t *", which improves
> source
> code documentation, optimisation and interaction via the "malaga.h" API.

Tiedostosta malaga.h:

extern string_t get_value_string( value_t string );
/* Return the value of STRING as a C-style string in external encoding.
 * The string must be freed after use. */


Tässä kohdassa on tapahtunut pieni virhe, koska const char * -tyypin muuttujaa 
ei voi vapauttaa. Nyt joudun tekemään

const char * analysis_string;
...
analysis_string = get_value_string(analysis);
...
free((char *) analysis_string);

mikä näyttää aika hassulta. Mutta olkoon, tämä toimii kyllä.

Harri



More information about the devel mailing list