29 |
29 |
30 #define MAX_LINELENGTH 4096u |
30 #define MAX_LINELENGTH 4096u |
31 |
31 |
32 #include <sys/types.h> |
32 #include <sys/types.h> |
33 #include <stdbool.h> |
33 #include <stdbool.h> |
|
34 #include "string_list.h" |
|
35 |
|
36 #ifdef _MSC_VER |
|
37 #include "pcreposix.h" |
|
38 #else |
34 #include <regex.h> |
39 #include <regex.h> |
35 #include "string_list.h" |
40 #endif |
36 |
41 |
37 typedef struct { |
42 typedef struct { |
38 string_list_t* pattern_list; /* even entries: start ; odd entries: end */ |
43 string_list_t* pattern_list; /* even entries: start ; odd entries: end */ |
39 regex_t** compiled_patterns; |
44 regex_t** compiled_patterns; |
40 size_t compiled_pattern_count; |
45 size_t compiled_pattern_count; |