expr 222 include/crm/common/logging.h # define CRM_LOG_ASSERT(expr) do { \ expr 223 include/crm/common/logging.h if (!(expr)) { \ expr 230 include/crm/common/logging.h crm_abort(__FILE__, __func__, __LINE__, #expr, \ expr 238 include/crm/common/logging.h # define CRM_CHECK(expr, failure_action) do { \ expr 239 include/crm/common/logging.h if (!(expr)) { \ expr 246 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 161 include/crm/crm_compat.h # define __builtin_expect(expr, result) (expr) expr 164 include/crm/crm_compat.h #define __likely(expr) __builtin_expect(expr, 1) expr 166 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 69 include/crm/pengine/rules.h gboolean pe_eval_subexpr(xmlNode *expr, const 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 22 include/crm/pengine/rules_internal.h gboolean pe__eval_attr_expr(const xmlNode *expr, expr 24 include/crm/pengine/rules_internal.h int pe__eval_date_expr(const xmlNode *expr, expr 27 include/crm/pengine/rules_internal.h gboolean pe__eval_op_expr(const xmlNode *expr, expr 29 include/crm/pengine/rules_internal.h gboolean pe__eval_role_expr(const xmlNode *expr, expr 31 include/crm/pengine/rules_internal.h gboolean pe__eval_rsc_expr(const xmlNode *expr, expr 30 lib/pacemaker/pcmk_rule.c eval_date_expression(const xmlNode *expr, crm_time_t *now) expr 41 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 109 lib/pengine/rules.c attr = crm_element_value(expr, XML_EXPR_ATTR_ATTRIBUTE); expr 111 lib/pengine/rules.c if (pcmk__xe_is(expr, PCMK_XE_DATE_EXPRESSION)) { expr 114 lib/pengine/rules.c } else if (pcmk__xe_is(expr, PCMK_XE_RSC_EXPRESSION)) { expr 117 lib/pengine/rules.c } else if (pcmk__xe_is(expr, PCMK_XE_OP_EXPRESSION)) { expr 120 lib/pengine/rules.c } else if (pcmk__xe_is(expr, XML_TAG_RULE)) { expr 123 lib/pengine/rules.c } else if (!pcmk__xe_is(expr, XML_TAG_EXPRESSION)) { expr 666 lib/pengine/rules.c xmlNode *expr = NULL; expr 681 lib/pengine/rules.c for (expr = pcmk__xe_first_child(rule); expr != NULL; expr 682 lib/pengine/rules.c expr = pcmk__xe_next(expr)) { expr 684 lib/pengine/rules.c test = pe_eval_subexpr(expr, rule_data, next_change); expr 688 lib/pengine/rules.c crm_trace("Expression %s/%s passed", ID(rule), ID(expr)); expr 692 lib/pengine/rules.c crm_trace("Expression %s/%s failed", ID(rule), ID(expr)); expr 715 lib/pengine/rules.c pe_eval_subexpr(xmlNode *expr, const pe_rule_eval_data_t *rule_data, expr 721 lib/pengine/rules.c switch (find_expression_type(expr)) { expr 723 lib/pengine/rules.c accept = pe_eval_expr(expr, rule_data, next_change); expr 731 lib/pengine/rules.c accept = pe__eval_attr_expr(expr, rule_data); expr 736 lib/pengine/rules.c switch (pe__eval_date_expr(expr, rule_data, next_change)) { expr 749 lib/pengine/rules.c accept = pe__eval_role_expr(expr, rule_data); expr 753 lib/pengine/rules.c accept = pe__eval_rsc_expr(expr, rule_data); expr 757 lib/pengine/rules.c accept = pe__eval_op_expr(expr, rule_data); expr 769 lib/pengine/rules.c ID(expr), accept ? "passed" : "failed", uname ? uname : "all nodes"); expr 972 lib/pengine/rules.c pe__eval_attr_expr(const xmlNode *expr, const pe_rule_eval_data_t *rule_data) expr 983 lib/pengine/rules.c attr = crm_element_value(expr, XML_EXPR_ATTR_ATTRIBUTE); expr 984 lib/pengine/rules.c op = crm_element_value(expr, XML_EXPR_ATTR_OPERATION); expr 985 lib/pengine/rules.c value = crm_element_value(expr, XML_EXPR_ATTR_VALUE); expr 986 lib/pengine/rules.c type = crm_element_value(expr, XML_EXPR_ATTR_TYPE); expr 987 lib/pengine/rules.c value_source = crm_element_value(expr, XML_EXPR_ATTR_VALUE_SOURCE); expr 991 lib/pengine/rules.c " not specified", pcmk__s(ID(expr), "without ID")); expr 995 lib/pengine/rules.c " not specified", pcmk__s(ID(expr), "without ID")); expr 1036 lib/pengine/rules.c pe__eval_date_expr(const xmlNode *expr, const pe_rule_eval_data_t *rule_data, expr 1042 lib/pengine/rules.c const char *op = crm_element_value(expr, "operation"); expr 1050 lib/pengine/rules.c crm_trace("Testing expression: %s", ID(expr)); expr 1052 lib/pengine/rules.c duration_spec = first_named_child(expr, "duration"); expr 1053 lib/pengine/rules.c date_spec = first_named_child(expr, "date_spec"); expr 1055 lib/pengine/rules.c value = crm_element_value(expr, "start"); expr 1059 lib/pengine/rules.c value = crm_element_value(expr, "end"); expr 1119 lib/pengine/rules.c pe__eval_op_expr(const xmlNode *expr, const pe_rule_eval_data_t *rule_data) expr 1121 lib/pengine/rules.c const char *name = crm_element_value(expr, XML_NVPAIR_ATTR_NAME); expr 1122 lib/pengine/rules.c const char *interval_s = crm_element_value(expr, XML_LRM_ATTR_INTERVAL); expr 1125 lib/pengine/rules.c crm_trace("Testing op_defaults expression: %s", ID(expr)); expr 1161 lib/pengine/rules.c pe__eval_role_expr(const xmlNode *expr, const pe_rule_eval_data_t *rule_data) expr 1171 lib/pengine/rules.c value = crm_element_value(expr, XML_EXPR_ATTR_VALUE); expr 1172 lib/pengine/rules.c op = crm_element_value(expr, XML_EXPR_ATTR_OPERATION); expr 1204 lib/pengine/rules.c pe__eval_rsc_expr(const xmlNode *expr, const pe_rule_eval_data_t *rule_data) expr 1206 lib/pengine/rules.c const char *class = crm_element_value(expr, XML_AGENT_ATTR_CLASS); expr 1207 lib/pengine/rules.c const char *provider = crm_element_value(expr, XML_AGENT_ATTR_PROVIDER); expr 1208 lib/pengine/rules.c const char *type = crm_element_value(expr, XML_EXPR_ATTR_TYPE); expr 1210 lib/pengine/rules.c crm_trace("Testing rsc_defaults expression: %s", ID(expr)); expr 1275 lib/pengine/rules.c test_expression(xmlNode * expr, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now) expr 1277 lib/pengine/rules.c return pe_test_expression(expr, node_hash, role, now, NULL, NULL); expr 1281 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 1288 lib/pengine/rules.c return pe_test_expression(expr, node_hash, role, now, NULL, &match_data); expr 1292 lib/pengine/rules.c pe_test_expression_full(xmlNode *expr, GHashTable *node_hash, expr 1296 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 104 tools/crm_resource_ban.c xmlNode *expr = create_xml_node(rule, XML_TAG_EXPRESSION); expr 110 tools/crm_resource_ban.c crm_xml_set_id(expr, "cli-ban-%s-on-%s-expr", rsc_id, host); expr 111 tools/crm_resource_ban.c crm_xml_add(expr, XML_EXPR_ATTR_ATTRIBUTE, CRM_ATTR_UNAME); expr 112 tools/crm_resource_ban.c crm_xml_add(expr, XML_EXPR_ATTR_OPERATION, "eq"); expr 113 tools/crm_resource_ban.c crm_xml_add(expr, XML_EXPR_ATTR_VALUE, host); expr 114 tools/crm_resource_ban.c crm_xml_add(expr, XML_EXPR_ATTR_TYPE, "string"); expr 116 tools/crm_resource_ban.c expr = create_xml_node(rule, "date_expression"); expr 117 tools/crm_resource_ban.c crm_xml_set_id(expr, "cli-ban-%s-on-%s-lifetime", rsc_id, host); expr 118 tools/crm_resource_ban.c crm_xml_add(expr, "operation", "lt"); expr 119 tools/crm_resource_ban.c crm_xml_add(expr, "end", later_s); expr 181 tools/crm_resource_ban.c xmlNode *expr = create_xml_node(rule, XML_TAG_EXPRESSION); expr 187 tools/crm_resource_ban.c crm_xml_set_id(expr, "cli-prefer-expr-%s", rsc_id); expr 188 tools/crm_resource_ban.c crm_xml_add(expr, XML_EXPR_ATTR_ATTRIBUTE, CRM_ATTR_UNAME); expr 189 tools/crm_resource_ban.c crm_xml_add(expr, XML_EXPR_ATTR_OPERATION, "eq"); expr 190 tools/crm_resource_ban.c crm_xml_add(expr, XML_EXPR_ATTR_VALUE, host); expr 191 tools/crm_resource_ban.c crm_xml_add(expr, XML_EXPR_ATTR_TYPE, "string"); expr 193 tools/crm_resource_ban.c expr = create_xml_node(rule, "date_expression"); expr 194 tools/crm_resource_ban.c crm_xml_set_id(expr, "cli-prefer-lifetime-end-%s", rsc_id); expr 195 tools/crm_resource_ban.c crm_xml_add(expr, "operation", "lt"); expr 196 tools/crm_resource_ban.c crm_xml_add(expr, "end", later_s);