This is the mail archive of the insight@sourceware.org mailing list for the Insight project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Thu, Mar 09, 2006 at 08:10:56PM +0100, Mark Kettenis wrote:I think this usage of -1 is a bad idea.Date: Thu, 09 Mar 2006 15:37:22 +0000 From: Andrew STUBBS <andrew.stubbs@st.com>
2006-03-09 Andrew Stubbs <andrew.stubbs@st.com>
* cli/cli-script.c (execute_user_command): Set instream to -1, not 0. (read_command_lines): Check instream before calling the prompt hook.
Me too. We're already using a global variable; why not just add another and restore it in the same cleanup?
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |