| 25 */ |
25 */ |
| 26 |
26 |
| 27 #ifndef SETTINGS_H_ |
27 #ifndef SETTINGS_H_ |
| 28 #define SETTINGS_H_ |
28 #define SETTINGS_H_ |
| 29 |
29 |
| 30 #include "stdinc.h" |
|
| 31 #include "string_list.h" |
30 #include "string_list.h" |
| 32 #include "bfile_heuristics.h" |
31 #include "bfile_heuristics.h" |
| 33 #include "regex_parser.h" |
32 #include "regex_parser.h" |
| 34 |
33 |
| 35 typedef struct { |
34 typedef struct { |
| 36 string_list *includeSuffixes; |
35 string_list *include_suffixes; |
| 37 string_list *excludeSuffixes; |
36 string_list *exclude_suffixes; |
| 38 string_list *excludeDirs; |
37 string_list *exclude_dirs; |
| 39 regex_parser *regex; |
38 regex_parser *regex; |
| 40 bfile_heuristics *bfileHeuristics; |
39 bfile_heuristics *bfile; |
| 41 char fileSeparator; |
|
| 42 bool recursive; |
40 bool recursive; |
| 43 bool matchesOnly; |
41 bool matches_only; |
| 44 bool verbose; |
42 bool verbose; |
| 45 bool confusing_lnlen; /* this flag is set by the scanner */ |
43 bool confusing_lnlen; /* this flag is set by the scanner */ |
| 46 bool individual_sums; |
44 bool individual_sums; |
| 47 bool count_chars; |
45 bool count_chars; |
| 48 bool dirsOnly; |
46 bool dirs_only; |
| 49 } settings; |
47 } settings; |
| |
48 |
| |
49 #ifdef _WIN32 |
| |
50 #define FILE_SEPARATOR '\\' |
| |
51 #else |
| |
52 #define FILE_SEPARATOR '/' |
| |
53 #endif /* _WIN32 */ |
| 50 |
54 |
| 51 #ifdef _cplusplus |
55 #ifdef _cplusplus |
| 52 extern "C" { |
56 extern "C" { |
| 53 #endif |
57 #endif |
| 54 |
58 |