default_score 26 include/crm/common/scores.h int pcmk_parse_score(const char *score_s, int *score, int default_score); default_score 453 include/crm/common/xml_internal.h int default_score); default_score 39 lib/common/scores.c pcmk_parse_score(const char *score_s, int *score, int default_score) default_score 45 lib/common/scores.c default_score = QB_MIN(default_score, PCMK_SCORE_INFINITY); default_score 46 lib/common/scores.c default_score = QB_MAX(default_score, -PCMK_SCORE_INFINITY); default_score 47 lib/common/scores.c local_score = default_score; default_score 69 lib/common/scores.c rc = pcmk__scan_ll(score_s, &score_ll, default_score); default_score 84 lib/common/scores.c local_score = default_score; default_score 21 lib/common/tests/scores/pcmk_parse_score_test.c static int default_score = 99; default_score 27 lib/common/tests/scores/pcmk_parse_score_test.c int rc = pcmk_parse_score(score_s, &score, default_score); default_score 36 lib/common/tests/scores/pcmk_parse_score_test.c assert_score(NULL, pcmk_rc_ok, default_score); default_score 40 lib/common/tests/scores/pcmk_parse_score_test.c default_score = -2000000; default_score 43 lib/common/tests/scores/pcmk_parse_score_test.c default_score = 2000000; default_score 46 lib/common/tests/scores/pcmk_parse_score_test.c default_score = 99; default_score 52 lib/common/tests/scores/pcmk_parse_score_test.c assert_int_equal(pcmk_parse_score(NULL, NULL, default_score), pcmk_rc_ok); default_score 53 lib/common/tests/scores/pcmk_parse_score_test.c assert_int_equal(pcmk_parse_score("0", NULL, default_score), pcmk_rc_ok); default_score 54 lib/common/tests/scores/pcmk_parse_score_test.c assert_int_equal(pcmk_parse_score("foo", NULL, default_score), default_score 61 lib/common/tests/scores/pcmk_parse_score_test.c assert_score("redder", EINVAL, default_score); default_score 21 lib/common/tests/xml/pcmk__xe_get_score_test.c static int default_score = 99; default_score 31 lib/common/tests/xml/pcmk__xe_get_score_test.c rc = pcmk__xe_get_score(xml, "test_attr", &score, default_score); default_score 43 lib/common/tests/xml/pcmk__xe_get_score_test.c assert_int_equal(pcmk__xe_get_score(NULL, NULL, &score, default_score), default_score 45 lib/common/tests/xml/pcmk__xe_get_score_test.c assert_int_equal(pcmk__xe_get_score(xml, NULL, &score, default_score), default_score 47 lib/common/tests/xml/pcmk__xe_get_score_test.c assert_int_equal(pcmk__xe_get_score(NULL, "test", &score, default_score), default_score 55 lib/common/tests/xml/pcmk__xe_get_score_test.c assert_score(NULL, pcmk_rc_ok, default_score); default_score 59 lib/common/tests/xml/pcmk__xe_get_score_test.c default_score = -2000000; default_score 62 lib/common/tests/xml/pcmk__xe_get_score_test.c default_score = 2000000; default_score 65 lib/common/tests/xml/pcmk__xe_get_score_test.c default_score = 99; default_score 73 lib/common/tests/xml/pcmk__xe_get_score_test.c assert_int_equal(pcmk__xe_get_score(xml, "test_attr", NULL, default_score), default_score 77 lib/common/tests/xml/pcmk__xe_get_score_test.c assert_int_equal(pcmk__xe_get_score(xml, "test_attr", NULL, default_score), default_score 81 lib/common/tests/xml/pcmk__xe_get_score_test.c assert_int_equal(pcmk__xe_get_score(xml, "test_attr", NULL, default_score), default_score 90 lib/common/tests/xml/pcmk__xe_get_score_test.c assert_score("redder", EINVAL, default_score); default_score 550 lib/common/xml.c int default_score) default_score 556 lib/common/xml.c return pcmk_parse_score(value, score, default_score);