Merge branch 'cp/unit-test-reftable-stack' into ps/reftable-exclude
[git/gitster.git] / parse.h
blob6bb9a54d9ac8f782406fd33e59b9d42c6862d63e
1 #ifndef PARSE_H
2 #define PARSE_H
4 int git_parse_signed(const char *value, intmax_t *ret, intmax_t max);
5 int git_parse_ssize_t(const char *, ssize_t *);
6 int git_parse_ulong(const char *, unsigned long *);
7 int git_parse_int(const char *value, int *ret);
8 int git_parse_int64(const char *value, int64_t *ret);
9 int git_parse_double(const char *value, double *ret);
11 /**
12 * Same as `git_config_bool`, except that it returns -1 on error rather
13 * than dying.
15 int git_parse_maybe_bool(const char *);
16 int git_parse_maybe_bool_text(const char *value);
18 int git_env_bool(const char *, int);
19 unsigned long git_env_ulong(const char *, unsigned long);
21 #endif /* PARSE_H */