diff options
| author | 2024-05-23 10:01:37 +0200 | |
|---|---|---|
| committer | 2024-05-23 10:01:37 +0200 | |
| commit | 8cf7559a7e21c5757455b948814d61e6e96f08f1 (patch) | |
| tree | c9a9d6d637977f97ebfc83ba36ae794fe5f9d8c1 /xs_regex.h | |
| parent | Also return an application/ld+json object in webfinger. (diff) | |
| download | penes-snac2-8cf7559a7e21c5757455b948814d61e6e96f08f1.tar.gz penes-snac2-8cf7559a7e21c5757455b948814d61e6e96f08f1.tar.xz penes-snac2-8cf7559a7e21c5757455b948814d61e6e96f08f1.zip | |
Added more const.
Diffstat (limited to 'xs_regex.h')
| -rw-r--r-- | xs_regex.h | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -64,7 +64,7 @@ xs_list *xs_regex_select_n(const char *str, const char *rx, int count) | |||
| 64 | { | 64 | { |
| 65 | xs_list *list = xs_list_new(); | 65 | xs_list *list = xs_list_new(); |
| 66 | xs *split = NULL; | 66 | xs *split = NULL; |
| 67 | xs_val *v; | 67 | const xs_val *v; |
| 68 | int n = 0; | 68 | int n = 0; |
| 69 | int c = 0; | 69 | int c = 0; |
| 70 | 70 | ||
| @@ -89,7 +89,7 @@ xs_list *xs_regex_replace_in(xs_str *str, const char *rx, const char *rep, int c | |||
| 89 | { | 89 | { |
| 90 | xs_str *s = xs_str_new(NULL); | 90 | xs_str *s = xs_str_new(NULL); |
| 91 | xs *split = xs_regex_split_n(str, rx, count); | 91 | xs *split = xs_regex_split_n(str, rx, count); |
| 92 | xs_val *v; | 92 | const xs_val *v; |
| 93 | int n = 0; | 93 | int n = 0; |
| 94 | int c = 0; | 94 | int c = 0; |
| 95 | int pholder = !!strchr(rep, '&'); | 95 | int pholder = !!strchr(rep, '&'); |