Redefine the default boolean type to gmx_bool.
[alexxy/gromacs.git] / src / ngmx / manager.c
index 200ce7a57dfc6aacedbc29b4e830a7861bbc287f..b18ece2402fcbdbf270bdad12b3c0d675d0ecc40 100644 (file)
@@ -69,9 +69,9 @@ static void add_object(t_manager *man,eObject eO,atom_id ai,atom_id aj)
 }
 
 static void add_bonds(t_manager *man,t_functype func[],
-                     t_ilist *b,bool bB[])
+                     t_ilist *b,gmx_bool bB[])
 {
-  bool    *bH=man->bHydro;
+  gmx_bool    *bH=man->bHydro;
   t_iatom *ia;
   t_iatom type,ai,aj,ak;
   int     i,delta,ftype;
@@ -112,7 +112,7 @@ static void add_bonds(t_manager *man,t_functype func[],
   }
 }
 
-static void add_bpl(t_manager *man,t_idef *idef,bool bB[])
+static void add_bpl(t_manager *man,t_idef *idef,gmx_bool bB[])
 {
   int ftype;
 
@@ -136,7 +136,7 @@ static atom_id which_atom(t_manager *man,int x, int y)
   return NO_ATID;
 }
 
-static void do_label(t_x11 *x11,t_manager *man,int x,int y,bool bSet)
+static void do_label(t_x11 *x11,t_manager *man,int x,int y,gmx_bool bSet)
 {
   atom_id ai;
   unsigned long   col;
@@ -178,7 +178,7 @@ void set_file(t_x11 *x11,t_manager *man,const char *trajectory,
   char         buf[256],quote[256];
   t_tpxheader  sh;
   t_atoms      *at;
-  bool         *bB;
+  gmx_bool         *bB;
   int          i,idum;
 
   read_tpxheader(status,&sh,TRUE,NULL,NULL);
@@ -256,7 +256,7 @@ void step_message(t_x11 *x11,t_manager *man)
   XSendEvent(x11->disp,letter.xclient.window,True,0,&letter);
 }
 
-bool ReadMonfile(char *fn,int *nbars, int *bars)
+gmx_bool ReadMonfile(char *fn,int *nbars, int *bars)
 {
   FILE *fp;
   if ((fp = fopen(fn,"r"))==NULL) 
@@ -305,11 +305,11 @@ static void reset_mols(t_block *mols,matrix box,rvec x[])
   }
 }
 
-static bool step_man(t_manager *man,int *nat)
+static gmx_bool step_man(t_manager *man,int *nat)
 {
   static int  ncount=0;
-  static bool bWarn = FALSE;
-  bool        bEof;
+  static gmx_bool bWarn = FALSE;
+  gmx_bool        bEof;
   int         dum;
   const char *warn;
 
@@ -356,7 +356,7 @@ static bool step_man(t_manager *man,int *nat)
 static void HandleClient(t_x11 *x11,t_manager *man,long data[])
 {
   int  ID,button,x,y;
-  bool bPos;
+  gmx_bool bPos;
   real fac;
 
   ID=data[0];
@@ -442,7 +442,7 @@ static void HandleClient(t_x11 *x11,t_manager *man,long data[])
     step_message(x11,man);
 }
 
-static bool TitleCallBack(t_x11 *x11,XEvent *event, Window w, void *data)
+static gmx_bool TitleCallBack(t_x11 *x11,XEvent *event, Window w, void *data)
 {
   t_windata *wd;
 
@@ -464,7 +464,7 @@ static bool TitleCallBack(t_x11 *x11,XEvent *event, Window w, void *data)
   return FALSE;
 }
 
-static bool ManCallBack(t_x11 *x11,XEvent *event, Window w, void *data)
+static gmx_bool ManCallBack(t_x11 *x11,XEvent *event, Window w, void *data)
 {
   t_manager *man;
   int       width,height;
@@ -545,7 +545,7 @@ void map_man(t_x11 *x11,t_manager *man)
   show_but(x11,man->bbox);
 }
 
-bool toggle_animate (t_x11 *x11,t_manager *man)
+gmx_bool toggle_animate (t_x11 *x11,t_manager *man)
 { 
   if (man->status) {
     man->bAnimate=!man->bAnimate;
@@ -559,7 +559,7 @@ bool toggle_animate (t_x11 *x11,t_manager *man)
   return man->bAnimate;
 }
 
-bool toggle_pbc (t_manager *man)
+gmx_bool toggle_pbc (t_manager *man)
 {
   man->bPbc=!man->bPbc;