scanner.c

changeset 30
d642fdb6745e
parent 28
72a98cbcb9f1
--- a/scanner.c	Thu Feb 02 16:55:51 2012 +0100
+++ b/scanner.c	Thu Feb 09 15:56:18 2012 +0100
@@ -57,7 +57,9 @@
         continue;
       }
 
-      if (testSuffix(filename, settings)) {
+      if ((settings->includeSuffixes->count == 0
+          || testSuffix(filename, settings->includeSuffixes))
+          && !testSuffix(filename, settings->excludeSuffixes)) {
         /* Count lines */
         lines = 0;
         bfile = false;

mercurial