MCPcopy Index your code
hub / github.com/git/git / do_get_int_value

Function do_get_int_value

parse-options.c:72–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72static int do_get_int_value(const void *value, size_t precision, intmax_t *ret)
73{
74 switch (precision) {
75 case sizeof(int8_t):
76 *ret = *(int8_t *)value;
77 return 0;
78 case sizeof(int16_t):
79 *ret = *(int16_t *)value;
80 return 0;
81 case sizeof(int32_t):
82 *ret = *(int32_t *)value;
83 return 0;
84 case sizeof(int64_t):
85 *ret = *(int64_t *)value;
86 return 0;
87 default:
88 return -1;
89 }
90}
91
92static intmax_t get_int_value(const struct option *opt, enum opt_parsed flags)
93{

Callers 3

get_int_valueFunction · 0.85
build_cmdmode_listFunction · 0.85
get_valueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected