Redefine the default boolean type to gmx_bool.
[alexxy/gromacs.git] / src / gmxlib / xvgr.c
index d565ea154cc0c06de1797041b0335e67d1d06756..7669685bcdb9a07a29c7208ceb735d0a479f59e7 100644 (file)
@@ -61,7 +61,7 @@ char *
 gmx_ctime_r(const time_t *clock,char *buf, int n);
 
 
-bool output_env_get_print_xvgr_codes(const output_env_t oenv)
+gmx_bool output_env_get_print_xvgr_codes(const output_env_t oenv)
 {
     int xvg_format;
 
@@ -77,7 +77,7 @@ static char *xvgrstr(const char *gmx,const output_env_t oenv,
     const char *sym[]={ "beta", "chi", "delta", "eta", "lambda", "mu", "omega", "phi", "psi", "rho", "theta", NULL };
     const char symc[]={ 'b',    'c',   'd',     'h',   'l',      'm',  'w',     'f',   'y',   'r',   'q',     '\0' };
     int  xvgf;
-    bool bXVGR;
+    gmx_bool bXVGR;
     int  g,b,i;
     char c;
 
@@ -643,7 +643,7 @@ void write_xvg(const char *fn,const char *title,int nx,int ny,real **y,
 }
 
 real **read_xvg_time(const char *fn,
-                    bool bHaveT,bool bTB,real tb,bool bTE,real te,
+                    gmx_bool bHaveT,gmx_bool bTB,real tb,gmx_bool bTE,real te,
                     int nsets_in,int *nset,int *nval,real *dt,real **t)
 {
   FILE   *fp;
@@ -652,7 +652,7 @@ real **read_xvg_time(const char *fn,
   char   *line;
   int    t_nalloc,*val_nalloc,a,narg,n,sin,set,nchar;
   double dbl,tend=0;
-  bool   bEndOfSet,bTimeInRange,bFirstLine=TRUE;
+  gmx_bool   bEndOfSet,bTimeInRange,bFirstLine=TRUE;
   real   **val;
   
   t_nalloc = 0;