]> git.ipfire.org Git - thirdparty/git.git/blame - parse.h
CodingGuidelines: quote assigned value in 'local var=$val'
[thirdparty/git.git] / parse.h
CommitLineData
b1bda751
CW
1#ifndef PARSE_H
2#define PARSE_H
3
4int git_parse_signed(const char *value, intmax_t *ret, intmax_t max);
5int git_parse_ssize_t(const char *, ssize_t *);
6int git_parse_ulong(const char *, unsigned long *);
7int git_parse_int(const char *value, int *ret);
8int git_parse_int64(const char *value, int64_t *ret);
9
10/**
11 * Same as `git_config_bool`, except that it returns -1 on error rather
12 * than dying.
13 */
14int git_parse_maybe_bool(const char *);
15int git_parse_maybe_bool_text(const char *value);
16
17int git_env_bool(const char *, int);
18unsigned long git_env_ulong(const char *, unsigned long);
19
20#endif /* PARSE_H */