Thu, 09 Feb 2012 15:56:18 +0100
allow parallel use of -s and -S
universe@10 | 1 | /* |
universe@10 | 2 | * settings.h |
universe@10 | 3 | * |
universe@10 | 4 | * Created on: 15.09.2011 |
universe@20 | 5 | * Author: Mike |
universe@10 | 6 | */ |
universe@10 | 7 | |
universe@10 | 8 | #ifndef SETTINGS_H_ |
universe@10 | 9 | #define SETTINGS_H_ |
universe@10 | 10 | |
universe@10 | 11 | #include "stdinc.h" |
universe@19 | 12 | #include "string_list.h" |
universe@21 | 13 | #include "bfile_heuristics.h" |
universe@27 | 14 | #include "regex_parser.h" |
universe@10 | 15 | |
universe@10 | 16 | typedef struct _settings { |
universe@30 | 17 | string_list_t* includeSuffixes; |
universe@30 | 18 | string_list_t* excludeSuffixes; |
universe@27 | 19 | regex_parser_t* regex; |
universe@21 | 20 | bfile_heuristics_t* bfileHeuristics; |
universe@10 | 21 | char fileSeparator; |
universe@10 | 22 | bool recursive; |
universe@10 | 23 | bool matchesOnly; |
universe@16 | 24 | bool verbose; |
universe@25 | 25 | bool confusing_lnlen; /* this flag is set by the scanner */ |
universe@10 | 26 | } settings_t; |
universe@10 | 27 | |
universe@10 | 28 | #ifdef _cplusplus |
universe@10 | 29 | extern "C" { |
universe@10 | 30 | #endif |
universe@10 | 31 | |
universe@10 | 32 | settings_t* new_settings_t(); |
universe@10 | 33 | void destroy_settings_t(settings_t*); |
universe@10 | 34 | |
universe@10 | 35 | #ifdef _cplusplus |
universe@10 | 36 | } |
universe@10 | 37 | #endif |
universe@10 | 38 | |
universe@10 | 39 | #endif /* SETTINGS_H_ */ |