From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-91-241.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=none autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: get_immediate echoe character--compiled error? Date: Tue, 03 Oct 2023 11:20:40 +0100 Organization: A noiseless patient Spider Message-ID: References: <87fs2tr2vf.fsf@nosuchdomain.example.com> <87lecku0bu.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: dont-email.me; posting-host="16e27560e867034c0ef7a61f231f7847"; logging-data="3690401"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1++VRfYGuEFWGTdw+pVkM2fB3cd6wzWX84=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin) Cancel-Lock: sha1:Zo+c6wSEOcEusYBoBcdxEllSSBM= sha1:z6zJ1i6rilD1Bl9sKW/S0tCmZ/k= Xref: news.eternal-september.org comp.lang.ada:65771 List-Id: Niklas Holsti writes: > Possibly this is why AdaCore have given different echoing behaviors to > the two forms of Get_Immediate, with and without the "Available" > parameter. If so, this echo difference is unfortunately coupled with > the wait/no-wait behavior difference, and that coupling may be > unwanted. The low-level Get_Immediate implementation is in sysdep.c (probably not in the adainclude/ directory in an installed compiler), in getc_immediate() and getc_immediate_nowait(), both of which call getc_immediate_common(), and I can't see any difference! ECHO gets turned off in getc_immediate_common(), regardless of caller - see link. https://github.com/gcc-mirror/gcc/blob/3ca09d684e496240a87c0327687e2898060c2363/gcc/ada/sysdep.c#L387