[AD] another FAQ?

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On my system, the attached Q&A applies.  I'd like to know if it
applies on other systems too.  I tried with 3.9.36, 3.9.37, and
current CVS.

$ gcc -v
Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux/2.96/specs
gcc version 2.96 20000731 (Linux-Mandrake 8.0 2.96-0.48mdk)
Index: docs/faq._tx
===================================================================
RCS file: /cvsroot/alleg/allegro/docs/faq._tx,v
retrieving revision 1.15
diff -u -r1.15 faq._tx
--- docs/faq._tx	2001/09/23 20:50:36	1.15
+++ docs/faq._tx	2001/09/25 01:45:17
@@ -634,6 +634,19 @@
       which uses a variety of methods to draw itself.
 
 <h4><li>
+@@   Why doesn't busy waiting on the key array work? For example,
+   "while (!key[KEY_ENTER]);" doesn't work.
+</h4>
+      If the code works without optimisations, then it could be the
+      compiler's fault. You can try beating the compiler into submission,
+      for example:
+<pre>
+      while (!key[KEY_ENTER])
+         yield_timeslice();</pre>
+
+      For this case, however, it would be better to use readkey() instead.
+
+<h4><li>
 @@   I'm still confused. Where can I get help?
 </h4>
       See <link>http://www.talula.demon.co.uk/allegro/maillist.html</a>.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/