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 <[email protected]>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to