src/regex_parser.c

changeset 54
76d46533b9a9
parent 48
0d2c13c24fd0
child 57
68018eac46c3
--- a/src/regex_parser.c	Thu Jun 01 17:33:34 2017 +0200
+++ b/src/regex_parser.c	Mon Mar 19 16:36:14 2018 +0100
@@ -43,6 +43,10 @@
   return ret;
 }
 
+void regex_parser_reset(regex_parser_t* parser) {
+  parser->pattern_match = parser->matched_lines = 0;
+}
+
 void regex_destcomppats(regex_parser_t* parser) {
   if (parser->compiled_patterns != NULL) {
     for (int i = 0 ; i < parser->compiled_pattern_count ; i++) {

mercurial