58 tf =
calloc(1,
sizeof(*tf));
61 while (*cur !=
'\0') {
62 tfr =
calloc(1,
sizeof(*tfr));
66 while (*cur !=
'\0' && isspace(*cur))
69 while (*cur !=
'\0' && (isalnum(*cur) || *cur ==
'_'))
71 while (*cur !=
'\0' && isspace(*cur)) {
82 while (*cur !=
'\0' && isspace(*cur))
91 while (*cur !=
'\0') {
98 else if (*cur ==
'/' && !isescaped)
106 if (regcomp(&tfr->
regex,str,REG_EXTENDED | REG_NOSUB))
113 while (*cur !=
'\0' && isspace(*cur))
struct target_nv_filter * target_nv_filter_parse(char *expr)
void target_nv_filter_regex_free(struct target_nv_filter_regex *tfr)
#define v_g_slist_foreach(gslhead, gslcur, elm)
GSList * value_regex_list
void * calloc(size_t nmemb, size_t size)
void target_nv_filter_free(struct target_nv_filter *tf)