67 return (
int) score_ll;
99 snprintf(score_s,
sizeof(score_s),
"%d", score);
121 int result = score1 + score2;
bool pcmk_str_is_infinity(const char *s)
bool pcmk_str_is_minus_infinity(const char *s)
#define CRM_CHECK(expr, failure_action)
#define PCMK_VALUE_MINUS_INFINITY
#define PCMK_VALUE_YELLOW
#define PCMK_VALUE_INFINITY
pcmk__action_result_t result
char * score2char_stack(int score, char *buf, size_t len)
int pcmk__add_scores(int score1, int score2)
const char * pcmk_readable_score(int score)
Return a displayable static string for a score value.
char * score2char(int score)
int char2score(const char *score)
Get the integer value of a score string.
#define PCMK_SCORE_INFINITY
Integer score to use to represent "infinity".
Deprecated Pacemaker score APIs.
int pcmk__scan_ll(const char *text, long long *result, long long default_value)
#define pcmk__str_copy(str)