home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.sys.atari.st      Discussion about 16 bit Atari micros      15,439 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 14,406 of 15,439   
   Henk Robbers to All   
   AHCC and bool   
   30 Aug 10 01:20:03   
   
   From: h.robbers@chello.nl   
      
   LS   
      
   A note to all users of AHCC.   
      
   AHCC implements the C99 _Bool type.   
   the identifiers false and true represent builtin truth values.   
      
   false coerces to zero when assigned to int.   
   true  coerces to one  when assigned to int.   
      
   AHCC implicitely defines the macro __bool_true_false_are_defined 1   
      
      
   advice:   
      
   #if __bool_true_false_are_defined   
   typedef _Bool bool, boolean;   
   #else   
   ....   
   /* all private declarations of bool, boolean, true and false */   
   ...   
   #endif   
      
      
   FYI   
      
   --   
   Groeten; Regards.   
   Henk Robbers. http://members.chello.nl/h.robbers   
   Interactive disassembler: TT-Digger;  http://digger.atari.org   
   A Home Cooked C compiler:      AHCC;  http://ahcc.atari.org   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca