You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ju...@apache.org on 2010/11/04 13:40:37 UTC

svn commit: r1030909 - /subversion/trunk/subversion/include/svn_types.h

Author: julianfoad
Date: Thu Nov  4 12:40:37 2010
New Revision: 1030909

URL: http://svn.apache.org/viewvc?rev=1030909&view=rev
Log:
Make svn_tristate_t mainly compatible with svn_boolean_t by making its
numerical values match the ones used for svn_boolean_t.

* subversion/include/svn_types.h
  (svn_tristate_t): Define svn_tristate_true and svn_tristate_false in terms
    of TRUE and FALSE, respectively.

Modified:
    subversion/trunk/subversion/include/svn_types.h

Modified: subversion/trunk/subversion/include/svn_types.h
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/include/svn_types.h?rev=1030909&r1=1030908&r2=1030909&view=diff
==============================================================================
--- subversion/trunk/subversion/include/svn_types.h (original)
+++ subversion/trunk/subversion/include/svn_types.h Thu Nov  4 12:40:37 2010
@@ -181,13 +181,16 @@ svn_node_kind_to_word(svn_node_kind_t ki
 svn_node_kind_t
 svn_node_kind_from_word(const char *word);
 
-/** Generic three-state property to represent an unknown value for values that
- * are just like booleans. @since New in 1.7. */
+/** Generic three-state property to represent an unknown value for values
+ * that are just like booleans.  The values have been set deliberately to
+ * make tristates mainly compatible with #svn_boolean_t.
+ *
+ * @since New in 1.7. */
 typedef enum
 {
-  svn_tristate_unknown = 0,
-  svn_tristate_false,
-  svn_tristate_true
+  svn_tristate_false = FALSE,
+  svn_tristate_true = TRUE,
+  svn_tristate_unknown
 } svn_tristate_t;
 
 /** Return a constant string "true", "false" or NULL representing the value of