Mon, 13 Feb 2012 19:10:00 +0100
added --exclude-cstyle-comments shortcut
| 10 | 1 | /* |
| 2 | * settings.h | |
| 3 | * | |
| 4 | * Created on: 15.09.2011 | |
|
20
43725438ac50
Changed author comments + added signatures for upcomming bfile heuristics
Mike Becker <universe@uap-core.de>
parents:
19
diff
changeset
|
5 | * Author: Mike |
| 10 | 6 | */ |
| 7 | ||
| 8 | #ifndef SETTINGS_H_ | |
| 9 | #define SETTINGS_H_ | |
| 10 | ||
| 11 | #include "stdinc.h" | |
|
19
8bac9fd0629d
generalized suffix_list to string_list
Mike Becker <universe@uap-core.de>
parents:
16
diff
changeset
|
12 | #include "string_list.h" |
|
21
91e0890464b0
implemented bfile heuristics option + TODO: implement algorithm
Mike Becker <universe@uap-core.de>
parents:
20
diff
changeset
|
13 | #include "bfile_heuristics.h" |
|
27
95a958e3de88
added regexp_parser struct and compile function
Mike Becker <universe@uap-core.de>
parents:
25
diff
changeset
|
14 | #include "regex_parser.h" |
| 10 | 15 | |
| 16 | typedef struct _settings { | |
|
30
d642fdb6745e
allow parallel use of -s and -S
Mike Becker <universe@uap-core.de>
parents:
27
diff
changeset
|
17 | string_list_t* includeSuffixes; |
|
d642fdb6745e
allow parallel use of -s and -S
Mike Becker <universe@uap-core.de>
parents:
27
diff
changeset
|
18 | string_list_t* excludeSuffixes; |
|
27
95a958e3de88
added regexp_parser struct and compile function
Mike Becker <universe@uap-core.de>
parents:
25
diff
changeset
|
19 | regex_parser_t* regex; |
|
21
91e0890464b0
implemented bfile heuristics option + TODO: implement algorithm
Mike Becker <universe@uap-core.de>
parents:
20
diff
changeset
|
20 | bfile_heuristics_t* bfileHeuristics; |
| 10 | 21 | char fileSeparator; |
| 22 | bool recursive; | |
| 23 | bool matchesOnly; | |
|
16
bc9a0fefd892
fixed makefile to run safely on compile errors + added -V option to cline
Mike Becker <universe@uap-core.de>
parents:
10
diff
changeset
|
24 | bool verbose; |
|
25
802c5382f499
Added line buffer (and warning message - there is no regexp parser, though)
Mike Becker <universe@uap-core.de>
parents:
21
diff
changeset
|
25 | bool confusing_lnlen; /* this flag is set by the scanner */ |
| 10 | 26 | } settings_t; |
| 27 | ||
| 28 | #ifdef _cplusplus | |
| 29 | extern "C" { | |
| 30 | #endif | |
| 31 | ||
| 32 | settings_t* new_settings_t(); | |
| 33 | void destroy_settings_t(settings_t*); | |
| 34 | ||
| 35 | #ifdef _cplusplus | |
| 36 | } | |
| 37 | #endif | |
| 38 | ||
| 39 | #endif /* SETTINGS_H_ */ |