help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] [PATCH] determine whether we are handling an error


From: Heinrich Schuchardt
Subject: Re: [Help-glpk] [PATCH] determine whether we are handling an error
Date: Thu, 05 Nov 2015 22:20:20 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0

Hello Jeroen,

could you, please, describe the use case for the patch.

Currently both normal messages and error messages are sent to stdout,
which does not match usual usage of output streams.

I propose to store the information if an error message is written in
env->term_out and to use a new value GLP_ERROR = 2 to indicate an error
message.

This value then should be used in glp_puts to decide if a message shall
be sent to stdout or stderr.

An API function could be provided to read env->term_out. The return
value could be used in the terminal hook function.

Best regards

Heinrich Schuchardt

On 11/05/2015 11:08 AM, Jeroen Demeyer wrote:
> Hello,
> 
> In attachment you will find a patch which adds a function
> glp_have_error() to check whether or not GLPK is handling an error. This
> is meant to be used by a term hook to differentiate between normal
> messages and error messages.
> 
> Can this patch be applied to GLPK?
> 
> Thanks,
> Jeroen.
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]