Hello Andrew,

> 
> > Is there a way to determine if the error hook function is
> > already set or not?
> 
> Currently not, however, glp_error_hook can be changed to return, say,
> the following structure:
> 
> typedef struct { void *func, *info; } glp_hook;

that is just the kind of solution I was thinking of.

So 
glp_hook ret = glp_error_hook(my_cb, my_info);
would return the prior values of func and info.

If glp_error_hook is called the first time
ret.func = NULL;
ret.info = NULL;

It should be save to simply call
glp_error_hook(my_cb, my_info);
if the return information is not needed.

Best regards

Xypron
-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01


_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to