Redefine the default boolean type to gmx_bool.
[alexxy/gromacs.git] / src / gmxlib / matio.c
index c521d4a4bc0705554cd038aa11ee12ffac90c247..022f6f4619d36cb99093c90fed31b8ac0d530354 100644 (file)
@@ -56,7 +56,7 @@ static const char mapper[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwx
 
 #define MAX_XPM_LINELENGTH 4096
 
-real **mk_matrix(int nx, int ny, bool b1D)
+real **mk_matrix(int nx, int ny, gmx_bool b1D)
 {
   int  i;
   real **m;
@@ -93,7 +93,7 @@ void clear_matrix(int nx, int ny, real **m)
       m[x][y]=0;
 }
 
-bool matelmt_cmp(t_xpmelmt e1, t_xpmelmt e2) 
+gmx_bool matelmt_cmp(t_xpmelmt e1, t_xpmelmt e2) 
 { 
   return (e1.c1 == e2.c1) && (e1.c2 == e2.c2);
 }
@@ -263,7 +263,7 @@ void read_xpm_entry(FILE *in,t_matrix *mm)
   int llalloc=0;
   unsigned int r,g,b;
   double u;
-  bool bGetOnWithIt;
+  gmx_bool bGetOnWithIt;
   t_xpmelmt c;
 
   mm->flags=0;
@@ -508,7 +508,7 @@ real **matrix2real(t_matrix *matrix,real **mat)
 void write_xpm_header(FILE *out,
                      const char *title,const char *legend,
                      const char *label_x,const char *label_y,
-                     bool bDiscrete)
+                     gmx_bool bDiscrete)
 {
   fprintf(out,  "/* XPM */\n");
   fprintf(out,  "/* Generated by %s */\n",Program());
@@ -645,7 +645,7 @@ static void pr_discrete_cmap(FILE *out,int *nlevel,int i0)
 void write_xpm_map_split(FILE *out,int n_x,int n_y,
                         int *nlevel_top,real lo_top,real hi_top,
                         t_rgb rlo_top,t_rgb rhi_top,
-                        bool bDiscreteColor,
+                        gmx_bool bDiscreteColor,
                         int *nlevel_bot,real lo_bot,real hi_bot,
                         t_rgb rlo_bot,t_rgb rhi_bot)
 {
@@ -703,7 +703,7 @@ void write_xpm_map(FILE *out,int n_x, int n_y,int *nlevels,real lo,real hi,
   }
 }
 
-void write_xpm_axis(FILE *out, const char *axis, bool bSpatial, int n,
+void write_xpm_axis(FILE *out, const char *axis, gmx_bool bSpatial, int n,
                     real *label)
 {
   int i;
@@ -828,7 +828,7 @@ void write_xpm_m(FILE *out, t_matrix m)
   /* Writes a t_matrix struct to .xpm file */ 
      
   int       i,j;
-  bool      bOneChar;
+  gmx_bool      bOneChar;
   t_xpmelmt c;
   
   bOneChar=(m.map[0].code.c2 == 0);
@@ -893,7 +893,7 @@ void write_xpm_split(FILE *out,unsigned int flags,
                     real lo_top,real hi_top,int *nlevel_top,
                     t_rgb rlo_top,t_rgb rhi_top,
                     real lo_bot,real hi_bot,int *nlevel_bot,
-                    bool bDiscreteColor,
+                    gmx_bool bDiscreteColor,
                     t_rgb rlo_bot,t_rgb rhi_bot)
 {
   /* See write_xpm.