Hello Nigel,
This implementation provides the same interface as requested, which is good
and sufficient.
The difference appears to be using calloc instead of malloc. As calloc is just
a convenience
form of malloc, does this implementation address the issue regarding xmalloc
you made in
the origional response?
these are the lines I added to glpk.i:
// Add handling for String arrays in glp_main
%include "various.i"
%apply char **STRING_ARRAY { const char *argv[] };
If an error occurs in glp_main the glp_error_hook will safely return the
execution
to the point where the allocated memory can be freed.
See the generated code in Java_org_gnu_glpk_GLPKJNI_glp_1main().
Best regards
Xypron
_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk