Commit 9963084b authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

vre: Constify VRE_Capture

Spotted by Flexelint.
parent d3a6a607
......@@ -60,8 +60,9 @@ vre_t *VRE_export(const vre_t *, size_t *);
int VRE_error(struct vsb *, int err);
int VRE_match(const vre_t *code, const char *subject, size_t length,
int options, const volatile struct vre_limits *lim);
int VRE_capture(vre_t *code, const char *subject, size_t length, int options,
txt *groups, size_t count, const volatile struct vre_limits *lim);
int VRE_capture(const vre_t *code, const char *subject, size_t length,
int options, txt *groups, size_t count,
const volatile struct vre_limits *lim);
int VRE_sub(const vre_t *code, const char *subject, const char *replacement,
struct vsb *vsb, const volatile struct vre_limits *lim, int all);
void VRE_free(vre_t **);
......
......@@ -244,7 +244,7 @@ VRE_match(const vre_t *code, const char *subject, size_t length,
}
int
VRE_capture(vre_t *code, const char *subject, size_t length, int options,
VRE_capture(const vre_t *code, const char *subject, size_t length, int options,
txt *groups, size_t count, const volatile struct vre_limits *lim)
{
int i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment