Redefine the default boolean type to gmx_bool.
[alexxy/gromacs.git] / src / kernel / hizzie.c
index 78d231868e8e481c8f440d9453ab1eba376083da..bacddb4c8da52661493bd18d6954cedec33861a0 100644 (file)
@@ -59,7 +59,7 @@ static int in_strings(char *key,int nstr,const char **str)
   return -1;
 }
 
-static bool hbond(rvec x[],int i,int j,real distance)
+static gmx_bool hbond(rvec x[],int i,int j,real distance)
 {
   real tol = distance*distance;
   rvec   tmp;
@@ -70,7 +70,7 @@ static bool hbond(rvec x[],int i,int j,real distance)
 }
 
 static void chk_allhb(t_atoms *pdba,rvec x[],t_blocka *hb,
-                     bool donor[],bool accept[],real dist)
+                     gmx_bool donor[],gmx_bool accept[],real dist)
 {
   int i,j,k,ii,natom;
   
@@ -117,11 +117,11 @@ static void pr_hbonds(FILE *fp,t_blocka *hb,t_atoms *pdba)
   }
 }
 
-static bool chk_hbonds(int i,t_atoms *pdba, rvec x[],
-                      bool ad[],bool hbond[],rvec xh,
+static gmx_bool chk_hbonds(int i,t_atoms *pdba, rvec x[],
+                      gmx_bool ad[],gmx_bool hbond[],rvec xh,
                       real angle,real dist)
 {
-  bool bHB;
+  gmx_bool bHB;
   int  j,aj,ri,natom;
   real d2,dist2,a;
   rvec nh,oh;
@@ -184,9 +184,9 @@ void set_histp(t_atoms *pdba,rvec *x,real angle,real dist){
   };
 #define NPD asize(prot_don)
   
-  bool *donor,*acceptor;
-  bool *hbond,bHaveH=FALSE;
-  bool bHDd,bHEd;
+  gmx_bool *donor,*acceptor;
+  gmx_bool *hbond,bHaveH=FALSE;
+  gmx_bool bHDd,bHEd;
   rvec xh1,xh2;
   int  natom;
   int  i,nd,na,aj,hisind,his0,type=-1;