bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] Anomolous looking code in eval.c


From: Joern Thyssen
Subject: Re: [Bug-gnubg] Anomolous looking code in eval.c
Date: Fri, 19 Jul 2002 07:40:34 +0000
User-agent: Mutt/1.2.5.1i

On Thu, Jul 18, 2002 at 07:01:46PM +0200, Jim Segrave wrote
[snip]
> I'm also curious why the realind callback handler is sometimes
> removed, instead of setting it to a handler which simply discards
> input lines. If you start an anlaysis in a gtk game and type Enter in
> the text window, you get a core dump with a
> readline_callback_read_char() called with no handler! followed by a
> core dump. It strikes me that in the places where the
> rl_callback_handler_remove () is called, it should be followed by
> installing a handler that will silently consume input or otherwise
> survive.
> 
> The following patch seems to fix that problem:
[snip patch]

It seems to work. I've commited it to the repository (I changed printf
to the wrapper "output" gnubg uses).

Jørn

-- 
Joern Thyssen, PhD
Vendsysselgade 3, 3., DK-9000 Aalborg, Denmark
+45 9813 2791 (private) / +45 2077 2689 (mobile) / +45 9633 7036 (work)



reply via email to

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