src/regex_parser.h

changeset 66
be2084398c37
parent 57
68018eac46c3
     1.1 --- a/src/regex_parser.h	Fri Jun 03 18:13:46 2022 +0200
     1.2 +++ b/src/regex_parser.h	Fri Jun 03 20:05:15 2022 +0200
     1.3 @@ -27,7 +27,7 @@
     1.4  #ifndef REGEX_PARSER_H_
     1.5  #define REGEX_PARSER_H_
     1.6  
     1.7 -#define REGEX_MAX_LINELENGTH           2048
     1.8 +#define MAX_LINELENGTH           4096u
     1.9  
    1.10  #include <sys/types.h>
    1.11  #include <stdbool.h>
    1.12 @@ -40,7 +40,8 @@
    1.13    size_t compiled_pattern_count;
    1.14    unsigned int pattern_match; /* save position of end pattern to match -
    1.15                                   NULL when a start pattern shall match first */
    1.16 -  unsigned int matched_lines;
    1.17 +  unsigned int matched_counted;
    1.18 +  bool count_chars;
    1.19  } regex_parser_t;
    1.20  
    1.21  #ifdef _cplusplus

mercurial