object-interest: make WP_INTEREST_MATCH_ALL part of the enum

This is to avoid potential issues with g-i parsing.

See #540
This commit is contained in:
George Kiagiadakis
2024-03-09 17:26:52 +02:00
parent 6ed05b3f00
commit dee7403f69

View File

@@ -67,18 +67,17 @@ typedef enum { /*< flags >*/
WP_INTEREST_MATCH_PW_GLOBAL_PROPERTIES = (1 << 1), WP_INTEREST_MATCH_PW_GLOBAL_PROPERTIES = (1 << 1),
WP_INTEREST_MATCH_PW_PROPERTIES = (1 << 2), WP_INTEREST_MATCH_PW_PROPERTIES = (1 << 2),
WP_INTEREST_MATCH_G_PROPERTIES = (1 << 3), WP_INTEREST_MATCH_G_PROPERTIES = (1 << 3),
} WpInterestMatch;
/*! /*!
* \brief Special WpInterestMatch value that indicates that all constraints * Special WpInterestMatch value that indicates that all constraints
* have been matched * have been matched
* \ingroup wpobjectinterest */
*/ WP_INTEREST_MATCH_ALL =
#define WP_INTEREST_MATCH_ALL \ (WP_INTEREST_MATCH_GTYPE |
(WP_INTEREST_MATCH_GTYPE | \ WP_INTEREST_MATCH_PW_GLOBAL_PROPERTIES |
WP_INTEREST_MATCH_PW_GLOBAL_PROPERTIES | \ WP_INTEREST_MATCH_PW_PROPERTIES |
WP_INTEREST_MATCH_PW_PROPERTIES | \ WP_INTEREST_MATCH_G_PROPERTIES),
WP_INTEREST_MATCH_G_PROPERTIES) } WpInterestMatch;
/*! /*!
* \brief Flags to alter the behaviour of wp_object_interest_matches_full() * \brief Flags to alter the behaviour of wp_object_interest_matches_full()