From: Simon Wright <simon@pushface.org>
Subject: Re: How to exit a loop with keyboard input
Date: Mon, 12 Apr 2010 21:04:56 +0100
Date: 2010-04-12T21:04:56+01:00 [thread overview]
Message-ID: <m2hbnga13r.fsf@pushface.org> (raw)
In-Reply-To: 20100412181434.dd154269.tero.koskinen@iki.fi
Tero Koskinen <tero.koskinen@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').
next prev parent reply other threads:[~2010-04-12 20:04 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 [this message]
2010-04-13 19:51 ` Jerry
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