Redefine the default boolean type to gmx_bool.
[alexxy/gromacs.git] / include / indexutil.h
index 14dcbade9da708994d05345813516198206bd718..6af9d9d6c0331c502ec0c9cb2b4d8647e191bcb5 100644 (file)
@@ -174,7 +174,7 @@ typedef struct gmx_ana_indexmap_t
      * gmx_ana_indexmap_update() does not take any time if the group is
      * actually static.
      */
-    bool                bStatic;
+    gmx_bool                bStatic;
     /*! \brief
      * TRUE if the current mapping is for the whole group (internal use only).
      *
@@ -182,7 +182,7 @@ typedef struct gmx_ana_indexmap_t
      * gmx_ana_indexmap_update() does not take any time if the group is
      * actually static.
      */
-    bool                bMapStatic;
+    gmx_bool                bMapStatic;
 } gmx_ana_indexmap_t;
 
 
@@ -195,7 +195,7 @@ gmx_ana_indexgrps_alloc(gmx_ana_indexgrps_t **g, int ngrps);
 /** Initializes index groups from arrays. */
 void
 gmx_ana_indexgrps_set(gmx_ana_indexgrps_t **g, int ngrps, int *isize,
-                      atom_id **index, char **name, bool bFree);
+                      atom_id **index, char **name, gmx_bool bFree);
 /** Reads index groups from a file or constructs them from topology. */
 void
 gmx_ana_indexgrps_init(gmx_ana_indexgrps_t **g, t_topology *top, 
@@ -215,17 +215,17 @@ gmx_ana_indexgrps_free(gmx_ana_indexgrps_t *g);
 void
 gmx_ana_indexgrps_clone(gmx_ana_indexgrps_t **dest, gmx_ana_indexgrps_t *src);
 /** Returns TRUE if the index group structure is emtpy. */
-bool
+gmx_bool
 gmx_ana_indexgrps_is_empty(gmx_ana_indexgrps_t *g);
 
 /** Returns a pointer to an index group. */
 gmx_ana_index_t *
 gmx_ana_indexgrps_get_grp(gmx_ana_indexgrps_t *g, int n);
 /** Extracts a single index group. */
-bool
+gmx_bool
 gmx_ana_indexgrps_extract(gmx_ana_index_t *dest, gmx_ana_indexgrps_t *src, int n);
 /** Finds and extracts a single index group by name. */
-bool
+gmx_bool
 gmx_ana_indexgrps_find(gmx_ana_index_t *dest, gmx_ana_indexgrps_t *src, char *name);
 
 /** Writes out a list of index groups. */
@@ -257,7 +257,7 @@ void
 gmx_ana_index_deinit(gmx_ana_index_t *g);
 /** Copies a \c gmx_ana_index_t. */
 void
-gmx_ana_index_copy(gmx_ana_index_t *dest, gmx_ana_index_t *src, bool bAlloc);
+gmx_ana_index_copy(gmx_ana_index_t *dest, gmx_ana_index_t *src, gmx_bool bAlloc);
 
 /** Writes out the contents of a index group. */
 void
@@ -267,7 +267,7 @@ gmx_ana_index_dump(gmx_ana_index_t *g, int i, int maxn);
 void
 gmx_ana_index_check(gmx_ana_index_t *g, int natoms);
 /** Checks whether an index group is sorted. */
-bool
+gmx_bool
 gmx_ana_index_check_sorted(gmx_ana_index_t *g);
 /*@}*/
 
@@ -278,10 +278,10 @@ gmx_ana_index_check_sorted(gmx_ana_index_t *g);
 void
 gmx_ana_index_sort(gmx_ana_index_t *g);
 /** Checks whether two index groups are equal. */
-bool
+gmx_bool
 gmx_ana_index_equals(gmx_ana_index_t *a, gmx_ana_index_t *b);
 /** Checks whether a sorted index group contains another sorted index group. */
-bool
+gmx_bool
 gmx_ana_index_contains(gmx_ana_index_t *a, gmx_ana_index_t *b);
 
 /** Calculates the intersection between two sorted index groups. */
@@ -315,15 +315,15 @@ gmx_ana_index_partition(gmx_ana_index_t *dest1, gmx_ana_index_t *dest2,
 /** Partition a group based on topology information. */
 void
 gmx_ana_index_make_block(t_blocka *t, t_topology *top, gmx_ana_index_t *g,
-                         e_index_t type, bool bComplete);
+                         e_index_t type, gmx_bool bComplete);
 /** Checks whether a group consists of full blocks. */
-bool
+gmx_bool
 gmx_ana_index_has_full_blocks(gmx_ana_index_t *g, t_block *b);
 /** Checks whether a group consists of full blocks. */
-bool
+gmx_bool
 gmx_ana_index_has_full_ablocks(gmx_ana_index_t *g, t_blocka *b);
 /** Checks whether a group consists of full residues/molecules. */
-bool
+gmx_bool
 gmx_ana_index_has_complete_elems(gmx_ana_index_t *g, e_index_t type, t_topology *top);
 
 /** Initializes an empty index group mapping. */
@@ -344,10 +344,10 @@ void
 gmx_ana_indexmap_deinit(gmx_ana_indexmap_t *m);
 /** Makes a deep copy of an index group mapping. */
 void
-gmx_ana_indexmap_copy(gmx_ana_indexmap_t *dest, gmx_ana_indexmap_t *src, bool bFirst);
+gmx_ana_indexmap_copy(gmx_ana_indexmap_t *dest, gmx_ana_indexmap_t *src, gmx_bool bFirst);
 /** Updates an index group mapping. */
 void
-gmx_ana_indexmap_update(gmx_ana_indexmap_t *m, gmx_ana_index_t *g, bool bMaskOnly);
+gmx_ana_indexmap_update(gmx_ana_indexmap_t *m, gmx_ana_index_t *g, gmx_bool bMaskOnly);
 /*@}*/
 
 #ifdef __cplusplus