git/parse.c

#include "git-compat-util.h"
#include "gettext.h"
#include "parse.h"

static uintmax_t get_unit_factor(const char *end)
{}

int git_parse_signed(const char *value, intmax_t *ret, intmax_t max)
{}

static int git_parse_unsigned(const char *value, uintmax_t *ret, uintmax_t max)
{}

int git_parse_int(const char *value, int *ret)
{}

int git_parse_int64(const char *value, int64_t *ret)
{}

int git_parse_ulong(const char *value, unsigned long *ret)
{}

int git_parse_ssize_t(const char *value, ssize_t *ret)
{}

int git_parse_double(const char *value, double *ret)
{}

int git_parse_maybe_bool_text(const char *value)
{}

int git_parse_maybe_bool(const char *value)
{}

/*
 * Parse environment variable 'k' as a boolean (in various
 * possible spellings); if missing, use the default value 'def'.
 */
int git_env_bool(const char *k, int def)
{}

/*
 * Parse environment variable 'k' as ulong with possibly a unit
 * suffix; if missing, use the default value 'val'.
 */
unsigned long git_env_ulong(const char *k, unsigned long val)
{}