| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/coreutils/src/gnulib/lib/xstrtod.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||
| 2 | - | |||||||||||||
| 3 | _Bool | - | ||||||||||||
| 4 | - | |||||||||||||
| 5 | xstrtod (char const *str, char const **ptr, double *result, | - | ||||||||||||
| 6 | double (*convert) (char const *, char **)) | - | ||||||||||||
| 7 | { | - | ||||||||||||
| 8 | double val; | - | ||||||||||||
| 9 | char *terminator; | - | ||||||||||||
| 10 | - | |||||||||||||
| 11 | _Bool | - | ||||||||||||
| 12 | ok = | - | ||||||||||||
| 13 | 1 | - | ||||||||||||
| 14 | ; | - | ||||||||||||
| 15 | - | |||||||||||||
| 16 | - | |||||||||||||
| 17 | (*__errno_location ()) | - | ||||||||||||
| 18 | = 0; | - | ||||||||||||
| 19 | val = convert (str, &terminator); | - | ||||||||||||
| 20 | - | |||||||||||||
| 21 | - | |||||||||||||
| 22 | if (terminator == str
| 8-801 | ||||||||||||
| 23 | ((void *)0)
| 357-444 | ||||||||||||
| 24 | && *
| 2-442 | ||||||||||||
| 25 | ok = executed 10 times by 4 tests: ok = 0 ;Executed by:
| 10 | ||||||||||||
| 26 | 0 executed 10 times by 4 tests: ok = 0 ;Executed by:
| 10 | ||||||||||||
| 27 | ; executed 10 times by 4 tests: ok = 0 ;Executed by:
| 10 | ||||||||||||
| 28 | else | - | ||||||||||||
| 29 | { | - | ||||||||||||
| 30 | - | |||||||||||||
| 31 | - | |||||||||||||
| 32 | - | |||||||||||||
| 33 | if (val != 0
| 34-765 | ||||||||||||
| 34 | (*
| 3-762 | ||||||||||||
| 35 | ==
| 3-762 | ||||||||||||
| 36 | 34
| 3-762 | ||||||||||||
| 37 | ) | - | ||||||||||||
| 38 | ok = executed 3 times by 2 tests: ok = 0 ;Executed by:
| 3 | ||||||||||||
| 39 | 0 executed 3 times by 2 tests: ok = 0 ;Executed by:
| 3 | ||||||||||||
| 40 | ; executed 3 times by 2 tests: ok = 0 ;Executed by:
| 3 | ||||||||||||
| 41 | } executed 799 times by 4 tests: end of blockExecuted by:
| 799 | ||||||||||||
| 42 | - | |||||||||||||
| 43 | if (ptr !=
| 363-446 | ||||||||||||
| 44 | ((void *)0)
| 363-446 | ||||||||||||
| 45 | ) | - | ||||||||||||
| 46 | * executed 363 times by 2 tests: ptr = terminator;*ptr = terminator;Executed by:
executed 363 times by 2 tests: *ptr = terminator;Executed by:
| 363 | ||||||||||||
| 47 | - | |||||||||||||
| 48 | *result = val; | - | ||||||||||||
| 49 | return executed 809 times by 4 tests: ok;return ok;Executed by:
executed 809 times by 4 tests: return ok;Executed by:
| 809 | ||||||||||||
| 50 | } | - | ||||||||||||
| Switch to Source code | Preprocessed file |