src/regex_parser.h

changeset 66
be2084398c37
parent 57
68018eac46c3
--- a/src/regex_parser.h	Fri Jun 03 18:13:46 2022 +0200
+++ b/src/regex_parser.h	Fri Jun 03 20:05:15 2022 +0200
@@ -27,7 +27,7 @@
 #ifndef REGEX_PARSER_H_
 #define REGEX_PARSER_H_
 
-#define REGEX_MAX_LINELENGTH           2048
+#define MAX_LINELENGTH           4096u
 
 #include <sys/types.h>
 #include <stdbool.h>
@@ -40,7 +40,8 @@
   size_t compiled_pattern_count;
   unsigned int pattern_match; /* save position of end pattern to match -
                                  NULL when a start pattern shall match first */
-  unsigned int matched_lines;
+  unsigned int matched_counted;
+  bool count_chars;
 } regex_parser_t;
 
 #ifdef _cplusplus

mercurial