MCPcopy Create free account
hub / github.com/Entware/Entware / sym_get_range_val

Function sym_get_range_val

scripts/config/symbol.c:107–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107static long long sym_get_range_val(struct symbol *sym, int base)
108{
109 sym_calc_value(sym);
110 switch (sym->type) {
111 case S_INT:
112 base = 10;
113 break;
114 case S_HEX:
115 base = 16;
116 break;
117 default:
118 break;
119 }
120 return strtoll(sym->curr.val, NULL, base);
121}
122
123static void sym_validate_range(struct symbol *sym)
124{

Callers 2

sym_validate_rangeFunction · 0.85
sym_string_within_rangeFunction · 0.85

Calls 1

sym_calc_valueFunction · 0.85

Tested by

no test coverage detected