19 #include <sys/types.h>      47     local_score = default_score;
    49     if (score_s == NULL) {
    67         long long score_ll = 0LL;
    70         if ((rc == EOVERFLOW) || (rc == ERANGE)) {
    71             const char *c = score_s;
    84             local_score = default_score;
    93             local_score = (int) score_ll;
   150         snprintf(score_s, 
sizeof(score_s), 
"%d", score);
   172     int result = score1 + score2;
 #define CRM_CHECK(expr, failure_action)
#define PCMK_VALUE_MINUS_INFINITY
#define PCMK_VALUE_INFINITY
int pcmk__add_scores(int score1, int score2)
int char2score(const char *score)
Get the integer value of a score string. 
int pcmk__scan_ll(const char *text, long long *result, long long default_value)
int pcmk_parse_score(const char *score_s, int *score, int default_score)
Parse an integer score from a string. 
const char * pcmk_readable_score(int score)
Return a displayable static string for a score value. 
char * score2char(int score)
bool pcmk_str_is_infinity(const char *s)
#define pcmk__str_copy(str)
pcmk__action_result_t result
bool pcmk_str_is_minus_infinity(const char *s)
Deprecated Pacemaker score APIs. 
#define PCMK_VALUE_YELLOW
char * score2char_stack(int score, char *buf, size_t len)
#define PCMK_SCORE_INFINITY
Integer score to use to represent "infinity".