interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / parse.h

24 lines · 841 bytes Raw Blame History
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_unsigned(const char *value, uintmax_t *ret, uintmax_t max);
6int git_parse_ssize_t(const char *, ssize_t *);
7int git_parse_size_t(const char *, size_t *);
8int git_parse_ulong(const char *, unsigned long *);
9int git_parse_uint(const char *value, unsigned int *ret);
10int git_parse_int(const char *value, int *ret);
11int git_parse_int64(const char *value, int64_t *ret);
12int git_parse_double(const char *value, double *ret);
13
14/**
15 * Same as `git_config_bool`, except that it returns -1 on error rather
16 * than dying.
17 */
18int git_parse_maybe_bool(const char *);
19int git_parse_maybe_bool_text(const char *value);
20
21int git_env_bool(const char *, int);
22unsigned long git_env_ulong(const char *, unsigned long);
23
24#endif /* PARSE_H */