Redefine the default boolean type to gmx_bool.
[alexxy/gromacs.git] / src / gmxlib / selection / selelem.c
index 8f8e30d88a2cd4e973d2294fb9e2a702ced06ee6..09971c053894f90799d278c1460c10ec0958ee96 100644 (file)
@@ -96,7 +96,7 @@ _gmx_sel_value_type_str(gmx_ana_selvalue_t *val)
 
 /*! \copydoc _gmx_selelem_type_str() */
 const char *
-_gmx_selelem_boolean_type_str(t_selelem *sel)
+_gmx_selelem_gmx_boolean_type_str(t_selelem *sel)
 {
     switch (sel->u.boolt)
     {
@@ -113,7 +113,7 @@ _gmx_selelem_boolean_type_str(t_selelem *sel)
  * \returns   Pointer to the newly allocated and initialized element.
  *
  * \c t_selelem::type is set to \p type,
- * \c t_selelem::v::type is set to \ref GROUP_VALUE for boolean and comparison
+ * \c t_selelem::v::type is set to \ref GROUP_VALUE for gmx_boolean and comparison
  * expressions and \ref NO_VALUE for others,
  * \ref SEL_ALLOCVAL is set for non-root elements (\ref SEL_ALLOCDATA is also
  * set for \ref SEL_BOOLEAN elements),
@@ -474,7 +474,7 @@ _gmx_selelem_free_chain(t_selelem *first)
  * \param[in] level   Indentation level, starting from zero.
  */
 void
-_gmx_selelem_print_tree(FILE *fp, t_selelem *sel, bool bValues, int level)
+_gmx_selelem_print_tree(FILE *fp, t_selelem *sel, gmx_bool bValues, int level)
 {
     t_selelem *child;
     int          i;
@@ -534,7 +534,7 @@ _gmx_selelem_print_tree(FILE *fp, t_selelem *sel, bool bValues, int level)
     }
     else if (sel->type == SEL_BOOLEAN)
     {
-        fprintf(fp, " %s", _gmx_selelem_boolean_type_str(sel));
+        fprintf(fp, " %s", _gmx_selelem_gmx_boolean_type_str(sel));
     }
     else if (sel->type == SEL_EXPRESSION
              && sel->u.expr.method->name == sm_compare.name)
@@ -656,7 +656,7 @@ _gmx_selelem_print_tree(FILE *fp, t_selelem *sel, bool bValues, int level)
  * \returns TRUE if \p root or any any of its elements require topology
  *   information, FALSE otherwise.
  */
-bool
+gmx_bool
 _gmx_selelem_requires_top(t_selelem *root)
 {
     t_selelem *child;