URI:
       Replace bool by my Bool - tty-clock - port of tty-clock to OpenBSD, with pledge/unveil added as goodie.
  HTML git clone https://git.drkhsh.at/tty-clock.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit d03f56b061169dd891b34b2d01ebf1268e3cbd1b
   DIR parent 59b77302237f486380b9cddbd3e6f0af8fc61c40
  HTML Author: Martin Duquesnoy <xorg62@gmail.com>
       Date:   Fri,  5 Dec 2008 20:06:09 +0100
       
       Replace bool by my Bool
       
       Diffstat:
         M clock.c                             |      14 ++++++++------
       
       1 file changed, 8 insertions(+), 6 deletions(-)
       ---
   DIR diff --git a/clock.c b/clock.c
       @@ -54,8 +54,10 @@ push S for enable the second and T for enable the 12H hours format.\n");\
        #define MAXW getmaxx(stdscr)
        #define MAXH getmaxy(stdscr)
        
       +typedef enum { True = 1, False = 0} Bool;
       +
        void start(void);
       -void check_key(bool);
       +void check_key(Bool);
        void get_time(void);
        void set_center(void);
        void run(void);
       @@ -63,7 +65,7 @@ void run(void);
        /* *************** */
        /* BIG NUMBER INIT */
        /* *************** */
       -static const bool number[10][LGNUM] =
       +static const Bool number[10][LGNUM] =
        {
             {1,1,1,1,1,1,1,1,0,0,1,1,1,1,0,0,1,1,1,1,0,0,1,1,1,1,1,1,1,1}, /* 0 */
             {0,0,0,0,1,1,0,0,0,0,1,1,0,0,0,0,1,1,0,0,0,0,1,1,0,0,0,0,1,1}, /* 1 */
       @@ -94,9 +96,9 @@ static struct option long_options[] =
        
        typedef struct
        {
       -     bool second;
       -     bool twelve;
       -     bool keylock;
       +     Bool second;
       +     Bool twelve;
       +     Bool keylock;
        } option_t;
        
        typedef struct
       @@ -248,7 +250,7 @@ arrange_clock(int h1, int h2,
        /* KEY CHECKING FUNCTION */
        /* ********************* */
        void
       -check_key(bool keylock)
       +check_key(Bool keylock)
        {
             int c;