Redefine the default boolean type to gmx_bool.
[alexxy/gromacs.git] / src / kernel / topio.c
index abb6379db03661b787514243b9528ca5c9688200..24c982c726aba3249fefb642b1ed507bf4b6d094 100644 (file)
@@ -108,7 +108,7 @@ static int copy_nbparams(t_nbparam **param,int ftype,t_params *plist,int nr)
   return ncopy;
 }
 
-static void gen_pairs(t_params *nbs,t_params *pairs,real fudge, int comb, bool bVerbose)
+static void gen_pairs(t_params *nbs,t_params *pairs,real fudge, int comb, gmx_bool bVerbose)
 {
     int     i,j,ntp,nrfp,nrfpA,nrfpB,nnn;
     real    scaling;
@@ -506,10 +506,10 @@ static char **read_topol(const char *infile,const char *outfile,
                          real        *fudgeQQ,
                          int         *nmolblock,
                          gmx_molblock_t **molblock,
-                         bool        bFEP,
-                         bool        bGenborn,
-                         bool        bZero,
-                         bool        bVerbose,
+                         gmx_bool        bFEP,
+                         gmx_bool        bGenborn,
+                         gmx_bool        bZero,
+                         gmx_bool        bVerbose,
                          warninp_t   wi)
 {
   FILE       *out;
@@ -528,7 +528,7 @@ static char **read_topol(const char *infile,const char *outfile,
   t_nbparam  **nbparam,**pair;
   t_block2   *block2;
   real       fudgeLJ=-1;    /* Multiplication factor to generate 1-4 from LJ */
-  bool       bReadDefaults,bReadMolType,bGenPairs,bWarn_copy_A_B;
+  gmx_bool       bReadDefaults,bReadMolType,bGenPairs,bWarn_copy_A_B;
   double     qt=0,qBt=0; /* total charge */
   t_bond_atomtype batype;
   int        lastcg=-1;
@@ -834,7 +834,7 @@ static char **read_topol(const char *infile,const char *outfile,
            break;
          case d_molecules: {
            int  whichmol;
-           bool bCouple;
+           gmx_bool bCouple;
            
            push_mol(nmol,*molinfo,pline,&whichmol,&nrcopies,wi);
            mi0=&((*molinfo)[whichmol]);
@@ -945,11 +945,11 @@ static char **read_topol(const char *infile,const char *outfile,
   return title;
 }
 
-char **do_top(bool         bVerbose,
+char **do_top(gmx_bool         bVerbose,
               const char   *topfile,
               const char   *topppfile,
               t_gromppopts *opts,
-              bool         bZero,
+              gmx_bool         bZero,
               t_symtab     *symtab,
               t_params     plist[],
               int          *combination_rule,
@@ -961,7 +961,7 @@ char **do_top(bool         bVerbose,
               t_inputrec   *ir,
               int          *nmolblock,
               gmx_molblock_t **molblock,
-              bool          bGenborn,
+              gmx_bool          bGenborn,
               warninp_t     wi)
 {
     /* Tmpfile might contain a long path */
@@ -1016,7 +1016,7 @@ static void generate_qmexcl_moltype(gmx_moltype_t *molt,unsigned char *grpnr,
     qmexcl;
   t_block2
     qmexcl2;
-  bool 
+  gmx_bool 
     *bQMMM,*blink,bexcl;
 
   /* First we search and select the QM atoms in an qm_arr array that
@@ -1242,7 +1242,7 @@ void generate_qmexcl(gmx_mtop_t *sys,t_inputrec *ir)
   unsigned char *grpnr;
   int mb,mol,nat_mol,i;
   gmx_molblock_t *molb;
-  bool bQMMM;
+  gmx_bool bQMMM;
 
   grpnr = sys->groups.grpnr[egcQMMM];