Skip to content

Commit

Permalink
Rename rflags -> cflags
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Jan 31, 2024
1 parent 5b2cc42 commit 619030e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions librz/search/regexp.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ RZ_API int rz_search_regexp_update(RzSearch *s, ut64 from, const ut8 *buf, int l
int ret = 0;

rz_list_foreach (s->kws, iter, kw) {
int reflags = RZ_REGEX_EXTENDED;
int cflags = RZ_REGEX_EXTENDED;

if (kw->icase) {
reflags |= RZ_REGEX_CASELESS;
cflags |= RZ_REGEX_CASELESS;
}

compiled = rz_regex_new((char *)kw->bin_keyword, reflags, 0);
compiled = rz_regex_new((char *)kw->bin_keyword, cflags, 0);
if (!compiled) {
eprintf("Cannot compile '%s' regexp\n", kw->bin_keyword);
return -1;
}

matches = rz_regex_match_all_not_grouped(compiled, (char *)buf, from, reflags);
matches = rz_regex_match_all_not_grouped(compiled, (char *)buf, from, RZ_REGEX_DEFAULT);
void **it;
rz_pvector_foreach (matches, it) {
RzRegexMatch *m = *it;
Expand Down

0 comments on commit 619030e

Please sign in to comment.