src/regex_parser.h

changeset 75
ba4bc497c6a7
parent 66
be2084398c37
child 76
d11c154e33e1
equal deleted inserted replaced
74:ed9a5ffd1f13 75:ba4bc497c6a7
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;

mercurial