comp.lang.ada
 help / color / mirror / Atom feed
From: Jerry <lanceboyle@qwest.net>
Subject: Re: How to exit a loop with keyboard input
Date: Tue, 13 Apr 2010 12:51:06 -0700 (PDT)
Date: 2010-04-13T12:51:06-07:00	[thread overview]
Message-ID: <f9a79b46-ea42-40c9-a806-72a4ef1ef6cf@b33g2000yqc.googlegroups.com> (raw)
In-Reply-To: m2hbnga13r.fsf@pushface.org

On Apr 12, 1:04 pm, Simon Wright <si...@pushface.org> wrote:
> Tero Koskinen <tero.koski...@iki.fi> 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__) \
> >     || (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.
>
> The current source (r156233) says
>
> {
> #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__) \
>     || 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



  reply	other threads:[~2010-04-13 19:51 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-12  4:12 How to exit a loop with keyboard input Jerry
2010-04-12  8:50 ` Georg Bauhaus
2010-04-12  9:21   ` Manuel Collado
2010-04-12 10:36 ` Jerry
2010-04-12 13:59   ` John McCormick
2010-04-13 19:38     ` Jerry
2010-04-12 15:14   ` Tero Koskinen
2010-04-12 16:16     ` John B. Matthews
2010-04-12 20:04     ` Simon Wright
2010-04-13 19:51       ` Jerry [this message]
2010-04-13 21:22         ` Simon Wright
2010-04-15  3:39           ` Jerry
2010-04-15  4:08             ` John B. Matthews
2010-04-15 18:51               ` Jerry
2010-04-16  0:44                 ` John B. Matthews
2010-04-16  4:43                   ` Simon Wright
2010-04-16 14:03                     ` John B. Matthews
2010-04-15 19:22             ` Simon Wright
2010-04-16 10:25               ` Jerry
2010-04-12 20:57 ` Alex Mentis
2010-04-12 22:51   ` Jerry
2010-04-16  0:06     ` BrianG
2010-04-16  7:23       ` Jerry
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox