src/settings.h

changeset 99
094eff4cfc03
parent 90
9b541d22d649
equal deleted inserted replaced
98:09ad5d8ab860 99:094eff4cfc03
30 #include "stdinc.h" 30 #include "stdinc.h"
31 #include "string_list.h" 31 #include "string_list.h"
32 #include "bfile_heuristics.h" 32 #include "bfile_heuristics.h"
33 #include "regex_parser.h" 33 #include "regex_parser.h"
34 34
35 typedef struct settings_s { 35 typedef struct {
36 string_list_t* includeSuffixes; 36 string_list* includeSuffixes;
37 string_list_t* excludeSuffixes; 37 string_list* excludeSuffixes;
38 string_list_t* excludeDirs; 38 string_list* excludeDirs;
39 regex_parser_t* regex; 39 regex_parser* regex;
40 bfile_heuristics_t* bfileHeuristics; 40 bfile_heuristics* bfileHeuristics;
41 char fileSeparator; 41 char fileSeparator;
42 bool recursive; 42 bool recursive;
43 bool matchesOnly; 43 bool matchesOnly;
44 bool verbose; 44 bool verbose;
45 bool confusing_lnlen; /* this flag is set by the scanner */ 45 bool confusing_lnlen; /* this flag is set by the scanner */
46 bool individual_sums; 46 bool individual_sums;
47 bool count_chars; 47 bool count_chars;
48 bool dirsOnly; 48 bool dirsOnly;
49 } settings_t; 49 } settings;
50 50
51 #ifdef _cplusplus 51 #ifdef _cplusplus
52 extern "C" { 52 extern "C" {
53 #endif 53 #endif
54 54
55 settings_t* new_settings_t(); 55 settings* new_settings();
56 void destroy_settings_t(settings_t*); 56 void destroy_settings(settings*);
57 57
58 #ifdef _cplusplus 58 #ifdef _cplusplus
59 } 59 }
60 #endif 60 #endif
61 61

mercurial