settings.c

changeset 19
8bac9fd0629d
parent 17
5f43f733cc12
child 20
43725438ac50
equal deleted inserted replaced
18:cae1294702aa 19:8bac9fd0629d
16 settings->fileSeparator = '/'; 16 settings->fileSeparator = '/';
17 #endif /* _WIN32 */ 17 #endif /* _WIN32 */
18 settings->recursive = false; 18 settings->recursive = false;
19 settings->includeSuffixes = false; 19 settings->includeSuffixes = false;
20 settings->matchesOnly = false; 20 settings->matchesOnly = false;
21 settings->suffixList = new_suffix_list_t(); 21 settings->suffixList = new_string_list_t();
22 settings->verbose = true; 22 settings->verbose = true;
23 } 23 }
24 24
25 return settings; 25 return settings;
26 } 26 }
27 27
28 void destroy_settings_t(settings_t* settings) { 28 void destroy_settings_t(settings_t* settings) {
29 destroy_suffix_list_t(settings->suffixList); 29 destroy_string_list_t(settings->suffixList);
30 free(settings); 30 free(settings);
31 } 31 }

mercurial