This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [TUI] correctly display windows source files
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Denis PILAT <denis dot pilat at st dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 10 Oct 2006 23:24:37 +0200
- Subject: Re: [TUI] correctly display windows source files
- References: <452A6905.1040308@st.com> <uwt79jnm4.fsf@gnu.org> <452B9EB9.4040709@st.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Tue, 10 Oct 2006 15:23:05 +0200
> From: Denis PILAT <denis.pilat@st.com>
> Cc: gdb-patches@sourceware.org
>
> About your remark,
> I've tried to ungetc(EOF) and I did not get any problem, after
> ungetc(EOF) the next call to fgetc is still EOF.
That could be so, but I'd prefer that our code didn't do anything that
could fail, even theoretically. We shouldn't call functions with
arguments that invoke undefined or uncertain behavior.
It should be a simple matter of adding a test for EOF.