blob: 6aa8335273edb3569ea8537007de11d3fd171947 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef _MCIN_H
#define _MCIN_H
#include <regex.h>
#define MCIN_REGEX_COUNT 51
#define MCIN_REGEX_COUNT_WARN 1
typedef struct mcin_matcher {
regex_t regex_master;
regex_t regex[MCIN_REGEX_COUNT];
regex_t regex_warn[MCIN_REGEX_COUNT_WARN];
} MCINMatcher;
int mcin_matcher_init(MCINMatcher *out);
void mcin_matcher_free(MCINMatcher *matcher);
char *mcin_matcher_match(MCINMatcher *matcher, const char *str);
#endif // _MCIN_H
|