settings.c

changeset 21
91e0890464b0
parent 20
43725438ac50
child 25
802c5382f499
equal deleted inserted replaced
20:43725438ac50 21:91e0890464b0
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_string_list_t(); 21 settings->suffixList = new_string_list_t();
22 settings->verbose = true; 22 settings->verbose = true;
23 settings->bfileHeuristics = new_bfile_heuristics_t();
23 } 24 }
24 25
25 return settings; 26 return settings;
26 } 27 }
27 28
28 void destroy_settings_t(settings_t* settings) { 29 void destroy_settings_t(settings_t* settings) {
29 destroy_string_list_t(settings->suffixList); 30 destroy_string_list_t(settings->suffixList);
31 destroy_bfile_heuristics_t(settings->bfileHeuristics);
30 free(settings); 32 free(settings);
31 } 33 }

mercurial