expr 211 include/crm/common/logging.h # define CRM_LOG_ASSERT(expr) do { \ expr 212 include/crm/common/logging.h if (!(expr)) { \ expr 219 include/crm/common/logging.h crm_abort(__FILE__, __func__, __LINE__, #expr, \ expr 227 include/crm/common/logging.h # define CRM_CHECK(expr, failure_action) do { \ expr 228 include/crm/common/logging.h if (!(expr)) { \ expr 235 include/crm/common/logging.h crm_abort(__FILE__, __func__, __LINE__, #expr, \ expr 42 include/crm/common/results.h # define CRM_ASSERT(expr) do { \ expr 43 include/crm/common/results.h if (!(expr)) { \ expr 44 include/crm/common/results.h crm_abort(__FILE__, __func__, __LINE__, #expr, TRUE, FALSE); \ expr 44 include/crm/crm_compat.h # define __builtin_expect(expr, result) (expr) expr 47 include/crm/crm_compat.h #define __likely(expr) __builtin_expect(expr, 1) expr 49 include/crm/crm_compat.h #define __unlikely(expr) __builtin_expect(expr, 0) expr 37 include/crm/pengine/rules.h enum expression_type find_expression_type(xmlNode * expr); expr 46 include/crm/pengine/rules.h gboolean pe_test_expression(xmlNode *expr, GHashTable *node_hash, expr 67 include/crm/pengine/rules.h gboolean pe_eval_subexpr(xmlNode *expr, pe_rule_eval_data_t *rule_data, expr 49 include/crm/pengine/rules_compat.h gboolean test_expression(xmlNode *expr, GHashTable *node_hash, expr 53 include/crm/pengine/rules_compat.h gboolean pe_test_expression_re(xmlNode *expr, GHashTable *node_hash, expr 58 include/crm/pengine/rules_compat.h gboolean pe_test_expression_full(xmlNode *expr, GHashTable *node_hash, expr 24 include/crm/pengine/rules_internal.h gboolean pe__eval_attr_expr(xmlNode *expr, pe_rule_eval_data_t *rule_data); expr 25 include/crm/pengine/rules_internal.h int pe__eval_date_expr(xmlNode *expr, pe_rule_eval_data_t *rule_data, expr 27 include/crm/pengine/rules_internal.h gboolean pe__eval_op_expr(xmlNodePtr expr, pe_rule_eval_data_t *rule_data); expr 28 include/crm/pengine/rules_internal.h gboolean pe__eval_role_expr(xmlNode *expr, pe_rule_eval_data_t *rule_data); expr 29 include/crm/pengine/rules_internal.h gboolean pe__eval_rsc_expr(xmlNodePtr expr, pe_rule_eval_data_t *rule_data); expr 29 lib/pacemaker/pcmk_rule.c eval_date_expression(xmlNodePtr expr, crm_time_t *now) expr 40 lib/pacemaker/pcmk_rule.c return pe__eval_date_expr(expr, &rule_data, NULL); expr 88 lib/pengine/rules.c pe_test_expression(xmlNode *expr, GHashTable *node_hash, enum rsc_role_e role, expr 101 lib/pengine/rules.c return pe_eval_subexpr(expr, &rule_data, next_change); expr 105 lib/pengine/rules.c find_expression_type(xmlNode * expr) expr 110 lib/pengine/rules.c attr = crm_element_value(expr, XML_EXPR_ATTR_ATTRIBUTE); expr 111 lib/pengine/rules.c tag = crm_element_name(expr); expr 640 lib/pengine/rules.c xmlNode *expr = NULL; expr 655 lib/pengine/rules.c for (expr = pcmk__xe_first_child(rule); expr != NULL; expr 656 lib/pengine/rules.c expr = pcmk__xe_next(expr)) { expr 658 lib/pengine/rules.c test = pe_eval_subexpr(expr, rule_data, next_change); expr 662 lib/pengine/rules.c crm_trace("Expression %s/%s passed", ID(rule), ID(expr)); expr 666 lib/pengine/rules.c crm_trace("Expression %s/%s failed", ID(rule), ID(expr)); expr 680 lib/pengine/rules.c pe_eval_subexpr(xmlNode *expr, pe_rule_eval_data_t *rule_data, crm_time_t *next_change) expr 685 lib/pengine/rules.c switch (find_expression_type(expr)) { expr 687 lib/pengine/rules.c accept = pe_eval_expr(expr, rule_data, next_change); expr 695 lib/pengine/rules.c accept = pe__eval_attr_expr(expr, rule_data); expr 700 lib/pengine/rules.c switch (pe__eval_date_expr(expr, rule_data, next_change)) { expr 713 lib/pengine/rules.c accept = pe__eval_role_expr(expr, rule_data); expr 717 lib/pengine/rules.c accept = pe__eval_rsc_expr(expr, rule_data); expr 721 lib/pengine/rules.c accept = pe__eval_op_expr(expr, rule_data); expr 733 lib/pengine/rules.c ID(expr), accept ? "passed" : "failed", uname ? uname : "all nodes"); expr 936 lib/pengine/rules.c pe__eval_attr_expr(xmlNodePtr expr, pe_rule_eval_data_t *rule_data) expr 947 lib/pengine/rules.c attr = crm_element_value(expr, XML_EXPR_ATTR_ATTRIBUTE); expr 948 lib/pengine/rules.c op = crm_element_value(expr, XML_EXPR_ATTR_OPERATION); expr 949 lib/pengine/rules.c value = crm_element_value(expr, XML_EXPR_ATTR_VALUE); expr 950 lib/pengine/rules.c type = crm_element_value(expr, XML_EXPR_ATTR_TYPE); expr 951 lib/pengine/rules.c value_source = crm_element_value(expr, XML_EXPR_ATTR_VALUE_SOURCE); expr 955 lib/pengine/rules.c " not specified", pcmk__s(ID(expr), "without ID")); expr 959 lib/pengine/rules.c " not specified", pcmk__s(ID(expr), "without ID")); expr 1000 lib/pengine/rules.c pe__eval_date_expr(xmlNodePtr expr, pe_rule_eval_data_t *rule_data, crm_time_t *next_change) expr 1005 lib/pengine/rules.c const char *op = crm_element_value(expr, "operation"); expr 1013 lib/pengine/rules.c crm_trace("Testing expression: %s", ID(expr)); expr 1015 lib/pengine/rules.c duration_spec = first_named_child(expr, "duration"); expr 1016 lib/pengine/rules.c date_spec = first_named_child(expr, "date_spec"); expr 1018 lib/pengine/rules.c value = crm_element_value(expr, "start"); expr 1022 lib/pengine/rules.c value = crm_element_value(expr, "end"); expr 1082 lib/pengine/rules.c pe__eval_op_expr(xmlNodePtr expr, pe_rule_eval_data_t *rule_data) { expr 1083 lib/pengine/rules.c const char *name = crm_element_value(expr, XML_NVPAIR_ATTR_NAME); expr 1084 lib/pengine/rules.c const char *interval_s = crm_element_value(expr, XML_LRM_ATTR_INTERVAL); expr 1087 lib/pengine/rules.c crm_trace("Testing op_defaults expression: %s", ID(expr)); expr 1123 lib/pengine/rules.c pe__eval_role_expr(xmlNodePtr expr, pe_rule_eval_data_t *rule_data) expr 1133 lib/pengine/rules.c value = crm_element_value(expr, XML_EXPR_ATTR_VALUE); expr 1134 lib/pengine/rules.c op = crm_element_value(expr, XML_EXPR_ATTR_OPERATION); expr 1166 lib/pengine/rules.c pe__eval_rsc_expr(xmlNodePtr expr, pe_rule_eval_data_t *rule_data) expr 1168 lib/pengine/rules.c const char *class = crm_element_value(expr, XML_AGENT_ATTR_CLASS); expr 1169 lib/pengine/rules.c const char *provider = crm_element_value(expr, XML_AGENT_ATTR_PROVIDER); expr 1170 lib/pengine/rules.c const char *type = crm_element_value(expr, XML_EXPR_ATTR_TYPE); expr 1172 lib/pengine/rules.c crm_trace("Testing rsc_defaults expression: %s", ID(expr)); expr 1237 lib/pengine/rules.c test_expression(xmlNode * expr, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now) expr 1239 lib/pengine/rules.c return pe_test_expression(expr, node_hash, role, now, NULL, NULL); expr 1243 lib/pengine/rules.c pe_test_expression_re(xmlNode * expr, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now, pe_re_match_data_t * re_match_data) expr 1250 lib/pengine/rules.c return pe_test_expression(expr, node_hash, role, now, NULL, &match_data); expr 1254 lib/pengine/rules.c pe_test_expression_full(xmlNode *expr, GHashTable *node_hash, expr 1258 lib/pengine/rules.c return pe_test_expression(expr, node_hash, role, now, NULL, match_data); expr 550 maint/gnulib/lib/cdefs.h # define _Static_assert(expr, diagnostic) \ expr 552 maint/gnulib/lib/cdefs.h [!!sizeof (struct { int __error_if_negative: (expr) ? 2 : -1; })] expr 192 maint/gnulib/lib/fts.c # define fts_assert(expr) ((void) (0 && (expr))) expr 194 maint/gnulib/lib/fts.c # define fts_assert(expr) \ expr 197 maint/gnulib/lib/fts.c if (!(expr)) \ expr 182 maint/gnulib/lib/git-merge-changelog.c #define ASSERT(expr) \ expr 185 maint/gnulib/lib/git-merge-changelog.c if (!(expr)) \ expr 124 maint/gnulib/lib/obstack.h # define _OBSTACK_CAST(type, expr) ((type) (expr)) expr 129 maint/gnulib/lib/obstack.h # define _OBSTACK_CAST(type, expr) (expr) expr 2157 maint/gnulib/lib/regcomp.c bin_tree_t *tree, *expr; expr 2166 maint/gnulib/lib/regcomp.c expr = parse_expression (regexp, preg, token, syntax, nest, err); expr 2167 maint/gnulib/lib/regcomp.c if (__glibc_unlikely (*err != REG_NOERROR && expr == NULL)) expr 2173 maint/gnulib/lib/regcomp.c if (tree != NULL && expr != NULL) expr 2175 maint/gnulib/lib/regcomp.c bin_tree_t *newtree = create_tree (dfa, tree, expr, CONCAT); expr 2178 maint/gnulib/lib/regcomp.c postorder (expr, free_tree, NULL); expr 2186 maint/gnulib/lib/regcomp.c tree = expr; expr 54 maint/gnulib/tests/macros.h #define ASSERT(expr) \ expr 57 maint/gnulib/tests/macros.h if (!(expr)) \ expr 60 maint/gnulib/tests/macros.h __FILE__, __LINE__, #expr); \ expr 69 maint/gnulib/tests/macros.h #define ASSERT_NO_STDIO(expr) \ expr 72 maint/gnulib/tests/macros.h if (!(expr)) \ expr 78 maint/gnulib/tests/macros.h WRITE_TO_STDERR (#expr); \ expr 33 maint/gnulib/tests/uninorm/test-u32-normalize-big.c #define ASSERT_WITH_LINE(expr, file, line) \ expr 36 maint/gnulib/tests/uninorm/test-u32-normalize-big.c if (!(expr)) \ expr 129 tools/crm_resource_ban.c xmlNode *expr = create_xml_node(rule, XML_TAG_EXPRESSION); expr 135 tools/crm_resource_ban.c crm_xml_set_id(expr, "cli-ban-%s-on-%s-expr", rsc_id, host); expr 136 tools/crm_resource_ban.c crm_xml_add(expr, XML_EXPR_ATTR_ATTRIBUTE, CRM_ATTR_UNAME); expr 137 tools/crm_resource_ban.c crm_xml_add(expr, XML_EXPR_ATTR_OPERATION, "eq"); expr 138 tools/crm_resource_ban.c crm_xml_add(expr, XML_EXPR_ATTR_VALUE, host); expr 139 tools/crm_resource_ban.c crm_xml_add(expr, XML_EXPR_ATTR_TYPE, "string"); expr 141 tools/crm_resource_ban.c expr = create_xml_node(rule, "date_expression"); expr 142 tools/crm_resource_ban.c crm_xml_set_id(expr, "cli-ban-%s-on-%s-lifetime", rsc_id, host); expr 143 tools/crm_resource_ban.c crm_xml_add(expr, "operation", "lt"); expr 144 tools/crm_resource_ban.c crm_xml_add(expr, "end", later_s); expr 195 tools/crm_resource_ban.c xmlNode *expr = create_xml_node(rule, XML_TAG_EXPRESSION); expr 201 tools/crm_resource_ban.c crm_xml_set_id(expr, "cli-prefer-expr-%s", rsc_id); expr 202 tools/crm_resource_ban.c crm_xml_add(expr, XML_EXPR_ATTR_ATTRIBUTE, CRM_ATTR_UNAME); expr 203 tools/crm_resource_ban.c crm_xml_add(expr, XML_EXPR_ATTR_OPERATION, "eq"); expr 204 tools/crm_resource_ban.c crm_xml_add(expr, XML_EXPR_ATTR_VALUE, host); expr 205 tools/crm_resource_ban.c crm_xml_add(expr, XML_EXPR_ATTR_TYPE, "string"); expr 207 tools/crm_resource_ban.c expr = create_xml_node(rule, "date_expression"); expr 208 tools/crm_resource_ban.c crm_xml_set_id(expr, "cli-prefer-lifetime-end-%s", rsc_id); expr 209 tools/crm_resource_ban.c crm_xml_add(expr, "operation", "lt"); expr 210 tools/crm_resource_ban.c crm_xml_add(expr, "end", later_s);