[GRASS-dev] G7: Definition problem in parser_standard_options.c
Glynn Clements
glynn at gclements.plus.com
Wed Jul 24 06:56:41 PDT 2013
Markus Neteler wrote:
> Besides copying manually the G_asprintf() stuff into the module (no
> good), is there a better way of implementing it?
If the module changes ->options, it needs to change ->descriptions to
match.
However, if it's only appending options, it can make use of the
existing descriptions, e.g.:
char *desc = method->descriptions;
G_asprintf((char **) &(method->descriptions),
"%s;lanczos;%s", desc,
_("Lanczos interpolation"));
G_free(desc);
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list