1.1 --- a/suffix_fnc.c Thu Feb 02 16:55:51 2012 +0100 1.2 +++ b/suffix_fnc.c Thu Feb 09 15:56:18 2012 +0100 1.3 @@ -7,19 +7,19 @@ 1.4 1.5 #include "suffix_fnc.h" 1.6 1.7 -bool testSuffix(char* filename, settings_t* settings) { 1.8 +bool testSuffix(char* filename, string_list_t* list) { 1.9 bool ret = false; 1.10 int tokenlen, fnamelen = strlen(filename); 1.11 - for (int t = 0 ; t < settings->suffixList->count ; t++) { 1.12 - tokenlen = strlen(settings->suffixList->items[t]); 1.13 + for (int t = 0 ; t < list->count ; t++) { 1.14 + tokenlen = strlen(list->items[t]); 1.15 if (fnamelen >= tokenlen && tokenlen > 0) { 1.16 if (strncmp(filename+fnamelen-tokenlen, 1.17 - settings->suffixList->items[t], tokenlen) == 0) { 1.18 + list->items[t], tokenlen) == 0) { 1.19 ret = true; 1.20 break; 1.21 } 1.22 } 1.23 } 1.24 - return ret ^ !settings->includeSuffixes; 1.25 + return ret; 1.26 } 1.27