scanner.c

changeset 30
d642fdb6745e
parent 28
72a98cbcb9f1
equal deleted inserted replaced
29:fa625066ae52 30:d642fdb6745e
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];

mercurial