comp.lang.ada
 help / color / mirror / Atom feed
From: Tero Koskinen <tero.koskinen@iki.fi>
Subject: Re: How to exit a loop with keyboard input
Date: Mon, 12 Apr 2010 18:14:34 +0300
Date: 2010-04-12T18:14:34+03:00	[thread overview]
Message-ID: <20100412181434.dd154269.tero.koskinen@iki.fi> (raw)
In-Reply-To: fac52fea-ee47-4d08-b322-7098fb68ea1e@i37g2000yqn.googlegroups.com

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.

> Jerry


-- 
Tero Koskinen - http://iki.fi/tero.koskinen/



  parent reply	other threads:[~2010-04-12 15:14 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 [this message]
2010-04-12 16:16     ` John B. Matthews
2010-04-12 20:04     ` Simon Wright
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