Redefine the default boolean type to gmx_bool.
[alexxy/gromacs.git] / src / gmxlib / statutil.c
index 4ec67720f60ce91400eedb6b48ba3cb1b448bbb5..f2d1a74f42a47ae55719664cc459bde1630a016e 100644 (file)
@@ -196,7 +196,7 @@ void set_command_line(int argc, char *argv[])
 
 /* utility functions */
 
-bool bRmod_fd(double a, double b, double c, bool bDouble)
+gmx_bool bRmod_fd(double a, double b, double c, gmx_bool bDouble)
 {
     int iq;
     double tol;
@@ -211,7 +211,7 @@ bool bRmod_fd(double a, double b, double c, bool bDouble)
         return FALSE;
 }
 
-int check_times2(real t,real t0,real tp, real tpp, bool bDouble)
+int check_times2(real t,real t0,real tp, real tpp, gmx_bool bDouble)
 {
     int  r;
     real margin;
@@ -250,7 +250,7 @@ int check_times(real t)
 
 
 
-static void set_default_time_unit(const char *time_list[], bool bCanTime)
+static void set_default_time_unit(const char *time_list[], gmx_bool bCanTime)
 {
     int i,j;
     const char *select;
@@ -518,7 +518,7 @@ void parse_common_args(int *argc,char *argv[],unsigned long Flags,
                       int nbugs,const char **bugs,
                        output_env_t *oenv)
 {
-    bool bHelp=FALSE,bHidden=FALSE,bQuiet=FALSE,bVersion=FALSE;
+    gmx_bool bHelp=FALSE,bHidden=FALSE,bQuiet=FALSE,bVersion=FALSE;
     const char *manstr[] = { NULL, "no", "html", "tex", "nroff", "ascii", 
                             "completion", "py", "xml", "wiki", NULL };
     /* This array should match the order of the enum in oenv.h */
@@ -529,7 +529,7 @@ void parse_common_args(int *argc,char *argv[],unsigned long Flags,
     int  nicelevel=0,mantp=0,npri=0,debug_level=0,verbose_level=0;
     char *deffnm=NULL;
     real tbegin=0,tend=0,tdelta=0;
-    bool bView=FALSE;
+    gmx_bool bView=FALSE;
     
     t_pargs *all_pa=NULL;
     
@@ -572,7 +572,7 @@ void parse_common_args(int *argc,char *argv[],unsigned long Flags,
     };
 #define NPCA_PA asize(pca_pa)
     FILE *fp;  
-    bool bPrint,bExit,bXvgr;
+    gmx_bool bPrint,bExit,bXvgr;
     int  i,j,k,npall,max_pa,cmdlength;
     char *ptr,*newdesc;
     const char *envstr;
@@ -738,7 +738,7 @@ void parse_common_args(int *argc,char *argv[],unsigned long Flags,
     if (nicelevel != 0 && !bExit)
     {
 #ifdef GMX_THREADS
-        static bool nice_set=FALSE; /* only set it once */
+        static gmx_bool nice_set=FALSE; /* only set it once */
         tMPI_Thread_mutex_lock(&init_mutex);
         if (!nice_set)
         {