summaryrefslogtreecommitdiff
path: root/xs_regex.h
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-05-23 10:01:37 +0200
committerdefault <nobody@localhost>2024-05-23 10:01:37 +0200
commit8cf7559a7e21c5757455b948814d61e6e96f08f1 (patch)
treec9a9d6d637977f97ebfc83ba36ae794fe5f9d8c1 /xs_regex.h
parent63e0ca5abac0f00121f724927c25edaf822097a9 (diff)
Added more const.
Diffstat (limited to 'xs_regex.h')
-rw-r--r--xs_regex.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xs_regex.h b/xs_regex.h
index cb73a01..cdb2cf8 100644
--- a/xs_regex.h
+++ b/xs_regex.h
@@ -64,7 +64,7 @@ xs_list *xs_regex_select_n(const char *str, const char *rx, int count)
{
xs_list *list = xs_list_new();
xs *split = NULL;
- xs_val *v;
+ const xs_val *v;
int n = 0;
int c = 0;
@@ -89,7 +89,7 @@ xs_list *xs_regex_replace_in(xs_str *str, const char *rx, const char *rep, int c
{
xs_str *s = xs_str_new(NULL);
xs *split = xs_regex_split_n(str, rx, count);
- xs_val *v;
+ const xs_val *v;
int n = 0;
int c = 0;
int pholder = !!strchr(rep, '&');