| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/bash/src/lib/glob/gmisc.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||||||||
| 2 | - | |||||||||||||||||||
| 3 | - | |||||||||||||||||||
| 4 | - | |||||||||||||||||||
| 5 | - | |||||||||||||||||||
| 6 | - | |||||||||||||||||||
| 7 | - | |||||||||||||||||||
| 8 | - | |||||||||||||||||||
| 9 | - | |||||||||||||||||||
| 10 | - | |||||||||||||||||||
| 11 | - | |||||||||||||||||||
| 12 | extern char *glob_patscan (char *, char *, int); | - | ||||||||||||||||||
| 13 | char * | - | ||||||||||||||||||
| 14 | glob_dirscan (pat, dirsep) | - | ||||||||||||||||||
| 15 | char *pat; | - | ||||||||||||||||||
| 16 | int dirsep; | - | ||||||||||||||||||
| 17 | { | - | ||||||||||||||||||
| 18 | char *p, *d, *pe, *se; | - | ||||||||||||||||||
| 19 | - | |||||||||||||||||||
| 20 | d = pe = se = 0; | - | ||||||||||||||||||
| 21 | for (p = pat; p
| 0-30 | ||||||||||||||||||
| 22 | { | - | ||||||||||||||||||
| 23 | if (extglob_pattern_p (p)
| 2-26 | ||||||||||||||||||
| 24 | { | - | ||||||||||||||||||
| 25 | if (se == 0
| 0-2 | ||||||||||||||||||
| 26 | se = p + strlen (p) - 1; executed 2 times by 1 test: se = p + strlen (p) - 1;Executed by:
| 2 | ||||||||||||||||||
| 27 | pe = glob_patscan (p + 2, se, 0); | - | ||||||||||||||||||
| 28 | if (pe == 0
| 0-2 | ||||||||||||||||||
| 29 | continue; never executed: continue; | 0 | ||||||||||||||||||
| 30 | else if (*
| 0-2 | ||||||||||||||||||
| 31 | break; never executed: break; | 0 | ||||||||||||||||||
| 32 | p = pe - 1; | - | ||||||||||||||||||
| 33 | continue; executed 2 times by 1 test: continue;Executed by:
| 2 | ||||||||||||||||||
| 34 | } | - | ||||||||||||||||||
| 35 | if (*
| 6-20 | ||||||||||||||||||
| 36 | d = p; executed 6 times by 1 test: d = p;Executed by:
| 6 | ||||||||||||||||||
| 37 | } executed 26 times by 1 test: end of blockExecuted by:
| 26 | ||||||||||||||||||
| 38 | return executed 2 times by 1 test: d;return d;Executed by:
executed 2 times by 1 test: return d;Executed by:
| 2 | ||||||||||||||||||
| 39 | } | - | ||||||||||||||||||
| Switch to Source code | Preprocessed file |