src/regex_parser.c

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

mercurial