Lines Matching refs:cbp
122 struct regex_callback_priv *cbp = (struct regex_callback_priv *)priv;
131 if (slre_match(&slre, cbp->searched_for,
132 strlen(cbp->searched_for), caps)) {
133 free(cbp->regex);
138 cbp->regex = malloc(strlen(regex) + 1);
139 if (cbp->regex) {
140 strcpy(cbp->regex, regex);
146 free(cbp->attributes);
147 cbp->attributes = malloc(strlen(attributes) + 1);
148 if (cbp->attributes) {
149 strcpy(cbp->attributes, attributes);
152 free(cbp->regex);
153 cbp->regex = NULL;