From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,430e73ffe1dca4e9 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!aioe.org!not-for-mail From: "John B. Matthews" Newsgroups: comp.lang.ada Subject: Re: How to exit a loop with keyboard input Date: Mon, 12 Apr 2010 12:16:52 -0400 Organization: The Wasteland Message-ID: References: <176f2831-ce2a-4bb1-9e04-47f662fc7176@q23g2000yqd.googlegroups.com> <20100412181434.dd154269.tero.koskinen@iki.fi> NNTP-Posting-Host: LQJtZWzu+iKlBROuDg+IUg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Xref: g2news2.google.com comp.lang.ada:10938 Date: 2010-04-12T12:16:52-04:00 List-Id: In article <20100412181434.dd154269.tero.koskinen@iki.fi>, Tero Koskinen wrote: > On Mon, 12 Apr 2010 03:36:42 -0700 (PDT) Jerry wrote: > > > Thanks, Georg and Manuel, for testing. I'm on OS X 10.5.8 and: > > Most likely Get_Immediate is not implemented for OS X and > the code is defaulting to blocking behaviour. > > Look at getc_immediate_common in sysdep.c. > > I have there (gcc 4.3.4) following #ifdef jungle: > ... > { > #if defined (linux) || defined (sun) || defined (sgi) || defined (__EMX__) \ > || (defined (__osf__) && ! defined (__alpha_vxworks)) \ > || defined (__CYGWIN32__) || defined (__MACHTEN__) || defined (__hpux__) \ > || defined (_AIX) || (defined (__svr4__) && defined (i386)) \ > || defined (__Lynx__) || defined (__FreeBSD__) || defined (__OpenBSD__) > ... > > __MACHTEN__ might be related to OS X, but I don't have a Mac around, so > I am just guessing. For reference, MachTen is a product to run the GNU development toolset, including GNAT, on Mac OS 9. -- John B. Matthews trashgod at gmail dot com