[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keyboard problems with MiNT 1.15.0 Beta 4 and Milan



Konrad Kokoszkiewicz <draco@mi.com.pl> writes:

|>                 /* xconin[] are always blocking, and we don't want to   
|>                    hang at ipl7 even if something impossible like a     
|>                    `magically' empty buffer happens.  so check again. */
|>                 if (ior->tail != ior->head) {                           
|>                         if (buf)                                        
|>                                 *p++ = callout1(*cin, bdev);            
|>                         else                                            
|>                                 (void) callout1(*cin, bdev);            
|>                 }                                                       
|> 
|> rather than:
|> 
|>                 /* xconin[] are always blocking, and we don't want to   
|>                    hang at ipl7 even if something impossible like a     
|>                    `magically' empty buffer happens.  so check again. */
|>                 if (ior->tail != ior->head)
|>                         if (buf)                                        
|>                                 *p++ = callout1(*cin, bdev);            
|>                         else                                            
|>                                 (void) callout1(*cin, bdev);            

There is no semantic difference between theses two, it's just a matter of
style.

-- 
Andreas Schwab                                      "And now for something
schwab@issan.informatik.uni-dortmund.de              completely different"
schwab@gnu.org