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: a07f3367d7,430e73ffe1dca4e9 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!b33g2000yqc.googlegroups.com!not-for-mail From: Jerry Newsgroups: comp.lang.ada Subject: Re: How to exit a loop with keyboard input Date: Tue, 13 Apr 2010 12:51:06 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <176f2831-ce2a-4bb1-9e04-47f662fc7176@q23g2000yqd.googlegroups.com> <20100412181434.dd154269.tero.koskinen@iki.fi> NNTP-Posting-Host: 75.172.180.11 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1271188266 31605 127.0.0.1 (13 Apr 2010 19:51:06 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 13 Apr 2010 19:51:06 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b33g2000yqc.googlegroups.com; posting-host=75.172.180.11; posting-account=x5rpZwoAAABMN2XPwcebPWPkebpwQNJG User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-US) AppleWebKit/528.16+(KHTML, like Gecko, Safari/528.16) OmniWeb/v622.8.0,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:9978 Date: 2010-04-13T12:51:06-07:00 List-Id: On Apr 12, 1:04=A0pm, Simon Wright wrote: > Tero Koskinen writes: > > 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= __) \ > > =A0 =A0 || (defined (__osf__) && ! defined (__alpha_vxworks)) \ > > =A0 =A0 || defined (__CYGWIN32__) || defined (__MACHTEN__) || defined (= __hpux__) \ > > =A0 =A0 || defined (_AIX) || (defined (__svr4__) && defined (i386)) \ > > =A0 =A0 || defined (__Lynx__) || defined (__FreeBSD__) || defined (__Op= enBSD__) > > ... > > > __MACHTEN__ might be related to OS X, but I don't have a Mac around, so > > I am just guessing. > > The current source (r156233) says > > { > #if defined (linux) || defined (sun) || defined (sgi) || defined (__EMX__= ) \ > =A0 =A0 || (defined (__osf__) && ! defined (__alpha_vxworks)) \ > =A0 =A0 || defined (__CYGWIN32__) || defined (__MACHTEN__) || defined (__= hpux__) \ > =A0 =A0 || defined (_AIX) || (defined (__svr4__) && defined (i386)) \ > =A0 =A0 || defined (__Lynx__) || defined (__FreeBSD__) || defined (__Open= BSD__) \ > =A0 =A0 || defined (__GLIBC__) || defined (__APPLE__) > > and it's the __APPLE__ that does the trick. This was fixed 2009-04-15 > (r146098) and is OK in GNAT GPL 2009 and, of course, in GCC 4.5.0 (still > only 'experimental'). Thanks, Simon. The GPL versions from both your build at sourceforge and from AdaCore indeed have this problem fixed. However, both of these builds still contain the old bug which arises when using Ada.Numerics.Long_Real_Arrays; in which the linker can't find the non-existent (on OS X) library lgnalasup (linear algebra support) requested by i-forbla.adb. I thought this was fixed a long time ago and if I'm reading the history correctly it was fixed on Apr 22 07:14:31 2008. I suppose I should raise this on another thread, however. Jerry