55 } else { |
55 } else { |
56 perror(" Error in stat call"); |
56 perror(" Error in stat call"); |
57 continue; |
57 continue; |
58 } |
58 } |
59 |
59 |
60 if (testSuffix(filename, settings)) { |
60 if ((settings->includeSuffixes->count == 0 |
|
61 || testSuffix(filename, settings->includeSuffixes)) |
|
62 && !testSuffix(filename, settings->excludeSuffixes)) { |
61 /* Count lines */ |
63 /* Count lines */ |
62 lines = 0; |
64 lines = 0; |
63 bfile = false; |
65 bfile = false; |
64 bfile_reset(settings->bfileHeuristics); |
66 bfile_reset(settings->bfileHeuristics); |
65 char line_buffer[REGEX_MAX_LINELENGTH]; |
67 char line_buffer[REGEX_MAX_LINELENGTH]; |