expr 219 include/crm/common/logging.h # define CRM_LOG_ASSERT(expr) do { \ expr 220 include/crm/common/logging.h if (!(expr)) { \ expr 227 include/crm/common/logging.h crm_abort(__FILE__, __func__, __LINE__, #expr, \ expr 235 include/crm/common/logging.h # define CRM_CHECK(expr, failure_action) do { \ expr 236 include/crm/common/logging.h if (!(expr)) { \ expr 243 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 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 29 lib/pacemaker/pcmk_rule.c eval_date_expression(const xmlNode *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 663 lib/pengine/rules.c xmlNode *expr = NULL; expr 678 lib/pengine/rules.c for (expr = pcmk__xe_first_child(rule); expr != NULL; expr 679 lib/pengine/rules.c expr = pcmk__xe_next(expr)) { expr 681 lib/pengine/rules.c test = pe_eval_subexpr(expr, rule_data, next_change); expr 685 lib/pengine/rules.c crm_trace("Expression %s/%s passed", ID(rule), ID(expr)); expr 689 lib/pengine/rules.c crm_trace("Expression %s/%s failed", ID(rule), ID(expr)); expr 712 lib/pengine/rules.c pe_eval_subexpr(xmlNode *expr, const pe_rule_eval_data_t *rule_data, expr 718 lib/pengine/rules.c switch (find_expression_type(expr)) { expr 720 lib/pengine/rules.c accept = pe_eval_expr(expr, rule_data, next_change); expr 728 lib/pengine/rules.c accept = pe__eval_attr_expr(expr, rule_data); expr 733 lib/pengine/rules.c switch (pe__eval_date_expr(expr, rule_data, next_change)) { expr 746 lib/pengine/rules.c accept = pe__eval_role_expr(expr, rule_data); expr 750 lib/pengine/rules.c accept = pe__eval_rsc_expr(expr, rule_data); expr 754 lib/pengine/rules.c accept = pe__eval_op_expr(expr, rule_data); expr 766 lib/pengine/rules.c ID(expr), accept ? "passed" : "failed", uname ? uname : "all nodes"); expr 969 lib/pengine/rules.c pe__eval_attr_expr(const xmlNode *expr, const pe_rule_eval_data_t *rule_data) expr 980 lib/pengine/rules.c attr = crm_element_value(expr, XML_EXPR_ATTR_ATTRIBUTE); expr 981 lib/pengine/rules.c op = crm_element_value(expr, XML_EXPR_ATTR_OPERATION); expr 982 lib/pengine/rules.c value = crm_element_value(expr, XML_EXPR_ATTR_VALUE); expr 983 lib/pengine/rules.c type = crm_element_value(expr, XML_EXPR_ATTR_TYPE); expr 984 lib/pengine/rules.c value_source = crm_element_value(expr, XML_EXPR_ATTR_VALUE_SOURCE); expr 988 lib/pengine/rules.c " not specified", pcmk__s(ID(expr), "without ID")); expr 992 lib/pengine/rules.c " not specified", pcmk__s(ID(expr), "without ID")); expr 1033 lib/pengine/rules.c pe__eval_date_expr(const xmlNode *expr, const pe_rule_eval_data_t *rule_data, expr 1039 lib/pengine/rules.c const char *op = crm_element_value(expr, "operation"); expr 1047 lib/pengine/rules.c crm_trace("Testing expression: %s", ID(expr)); expr 1049 lib/pengine/rules.c duration_spec = first_named_child(expr, "duration"); expr 1050 lib/pengine/rules.c date_spec = first_named_child(expr, "date_spec"); expr 1052 lib/pengine/rules.c value = crm_element_value(expr, "start"); expr 1056 lib/pengine/rules.c value = crm_element_value(expr, "end"); expr 1116 lib/pengine/rules.c pe__eval_op_expr(const xmlNode *expr, const pe_rule_eval_data_t *rule_data) expr 1118 lib/pengine/rules.c const char *name = crm_element_value(expr, XML_NVPAIR_ATTR_NAME); expr 1119 lib/pengine/rules.c const char *interval_s = crm_element_value(expr, XML_LRM_ATTR_INTERVAL); expr 1122 lib/pengine/rules.c crm_trace("Testing op_defaults expression: %s", ID(expr)); expr 1158 lib/pengine/rules.c pe__eval_role_expr(const xmlNode *expr, const pe_rule_eval_data_t *rule_data) expr 1168 lib/pengine/rules.c value = crm_element_value(expr, XML_EXPR_ATTR_VALUE); expr 1169 lib/pengine/rules.c op = crm_element_value(expr, XML_EXPR_ATTR_OPERATION); expr 1201 lib/pengine/rules.c pe__eval_rsc_expr(const xmlNode *expr, const pe_rule_eval_data_t *rule_data) expr 1203 lib/pengine/rules.c const char *class = crm_element_value(expr, XML_AGENT_ATTR_CLASS); expr 1204 lib/pengine/rules.c const char *provider = crm_element_value(expr, XML_AGENT_ATTR_PROVIDER); expr 1205 lib/pengine/rules.c const char *type = crm_element_value(expr, XML_EXPR_ATTR_TYPE); expr 1207 lib/pengine/rules.c crm_trace("Testing rsc_defaults expression: %s", ID(expr)); expr 1272 lib/pengine/rules.c test_expression(xmlNode * expr, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now) expr 1274 lib/pengine/rules.c return pe_test_expression(expr, node_hash, role, now, NULL, NULL); expr 1278 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 1285 lib/pengine/rules.c return pe_test_expression(expr, node_hash, role, now, NULL, &match_data); expr 1289 lib/pengine/rules.c pe_test_expression_full(xmlNode *expr, GHashTable *node_hash, expr 1293 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 196 tools/crm_resource_ban.c xmlNode *expr = create_xml_node(rule, XML_TAG_EXPRESSION); expr 202 tools/crm_resource_ban.c crm_xml_set_id(expr, "cli-prefer-expr-%s", rsc_id); expr 203 tools/crm_resource_ban.c crm_xml_add(expr, XML_EXPR_ATTR_ATTRIBUTE, CRM_ATTR_UNAME); expr 204 tools/crm_resource_ban.c crm_xml_add(expr, XML_EXPR_ATTR_OPERATION, "eq"); expr 205 tools/crm_resource_ban.c crm_xml_add(expr, XML_EXPR_ATTR_VALUE, host); expr 206 tools/crm_resource_ban.c crm_xml_add(expr, XML_EXPR_ATTR_TYPE, "string"); expr 208 tools/crm_resource_ban.c expr = create_xml_node(rule, "date_expression"); expr 209 tools/crm_resource_ban.c crm_xml_set_id(expr, "cli-prefer-lifetime-end-%s", rsc_id); expr 210 tools/crm_resource_ban.c crm_xml_add(expr, "operation", "lt"); expr 211 tools/crm_resource_ban.c crm_xml_add(expr, "end", later_s);