Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/coreutils/src/gnulib/lib/c-strtod.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | - | |||||||
4 | static volatile locale_t c_locale_cache; | - | ||||||
5 | - | |||||||
6 | - | |||||||
7 | - | |||||||
8 | static locale_t | - | ||||||
9 | c_locale (void) | - | ||||||
10 | { | - | ||||||
11 | if (!c_locale_cache
| 221-601 | ||||||
12 | c_locale_cache = newlocale ( executed 601 times by 5 tests: c_locale_cache = newlocale ( ((1 << 0) | (1 << 1) | (1 << 2) | (1 << 3) | (1 << 4) | (1 << 5) | (1 << 7) | (1 << 8) | (1 << 9) | (1 << 10) | (1 << 11) | (1 << 12) ) , "C", (locale_t) 0); Executed by:
| 601 | ||||||
13 | ((1 << 0) | (1 << 1) | (1 << 2) | (1 << 3) | (1 << 4) | (1 << 5) | (1 << 7) | (1 << 8) | (1 << 9) | (1 << 10) | (1 << 11) | (1 << 12) ) executed 601 times by 5 tests: c_locale_cache = newlocale ( ((1 << 0) | (1 << 1) | (1 << 2) | (1 << 3) | (1 << 4) | (1 << 5) | (1 << 7) | (1 << 8) | (1 << 9) | (1 << 10) | (1 << 11) | (1 << 12) ) , "C", (locale_t) 0); Executed by:
| 601 | ||||||
14 | , "C", (locale_t) 0); executed 601 times by 5 tests: c_locale_cache = newlocale ( ((1 << 0) | (1 << 1) | (1 << 2) | (1 << 3) | (1 << 4) | (1 << 5) | (1 << 7) | (1 << 8) | (1 << 9) | (1 << 10) | (1 << 11) | (1 << 12) ) , "C", (locale_t) 0); Executed by:
| 601 | ||||||
15 | return executed 822 times by 5 tests: c_locale_cache;return c_locale_cache; Executed by:
executed 822 times by 5 tests: return c_locale_cache; Executed by:
| 822 | ||||||
16 | } | - | ||||||
17 | - | |||||||
18 | - | |||||||
19 | - | |||||||
20 | double | - | ||||||
21 | c_strtod (char const *nptr, char **endptr) | - | ||||||
22 | { | - | ||||||
23 | double r; | - | ||||||
24 | - | |||||||
25 | - | |||||||
26 | - | |||||||
27 | locale_t locale = c_locale (); | - | ||||||
28 | if (!locale
| 0-822 | ||||||
29 | { | - | ||||||
30 | if (endptr
| 0 | ||||||
31 | * never executed: endptr = (char *) nptr;*endptr = (char *) nptr; never executed: *endptr = (char *) nptr; | 0 | ||||||
32 | return never executed: 0;return 0; never executed: return 0; | 0 | ||||||
33 | } | - | ||||||
34 | - | |||||||
35 | r = strtod_l (nptr, endptr, locale); | - | ||||||
36 | return executed 822 times by 5 tests: r;return r; Executed by:
executed 822 times by 5 tests: return r; Executed by:
| 822 | ||||||
37 | } | - | ||||||
Switch to Source code | Preprocessed file |