settings.c

changeset 27
95a958e3de88
parent 25
802c5382f499
child 30
d642fdb6745e
equal deleted inserted replaced
26:853a1181884b 27:95a958e3de88
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 settings->bfileHeuristics = new_bfile_heuristics_t();
24 settings->confusing_lnlen = false; 24 settings->confusing_lnlen = false;
25 settings->regex = new_regex_parser_t();
25 } 26 }
26 27
27 return settings; 28 return settings;
28 } 29 }
29 30
30 void destroy_settings_t(settings_t* settings) { 31 void destroy_settings_t(settings_t* settings) {
32 destroy_regex_parser_t(settings->regex);
31 destroy_string_list_t(settings->suffixList); 33 destroy_string_list_t(settings->suffixList);
32 destroy_bfile_heuristics_t(settings->bfileHeuristics); 34 destroy_bfile_heuristics_t(settings->bfileHeuristics);
33 free(settings); 35 free(settings);
34 } 36 }

mercurial