diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2022-02-04 11:23:27 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2022-02-04 11:28:22 -0500 |
commit | 2d4d6787c4bc62042be4a58a4791074ab2c6a89e (patch) | |
tree | 0753c783533afc2bc3362f73ba3e8c2e45f1e65b /eval.c | |
parent | d83ffb41c7f5d42bfb43a19e38ab3d1331f0d86e (diff) | |
download | bfs-2d4d6787c4bc62042be4a58a4791074ab2c6a89e.tar.xz |
regex: Add support for emacs and grep types
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -841,12 +841,12 @@ bool eval_regex(const struct expr *expr, struct eval_state *state) { if (err == 0) { return match.rm_so == 0 && (size_t)match.rm_eo == len; } else if (err != REG_NOMATCH) { - char *str = xregerror(err, expr->regex); + char *str = bfs_regerror(err, expr->regex); if (str) { eval_error(state, "%s.\n", str); free(str); } else { - eval_error(state, "xregerror(): %m.\n"); + eval_error(state, "bfs_regerror(): %m.\n"); } *state->ret = EXIT_FAILURE; |