summaryrefslogtreecommitdiffhomepage
path: root/src/cregex.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-12-19 09:04:23 +0100
committerTyge Løvset <[email protected]>2022-12-19 09:04:23 +0100
commit1d4ad83d6f3388982cb0aeadbc9815b4776df504 (patch)
tree6d0d389219644b127eaa83c8a54ccd93deef96b7 /src/cregex.c
parent26a75a218a115a10cee82534be568a606c83dbb2 (diff)
downloadSTC-modified-1d4ad83d6f3388982cb0aeadbc9815b4776df504.tar.gz
STC-modified-1d4ad83d6f3388982cb0aeadbc9815b4776df504.zip
Renames:
cstr_null => cstr_NULL csview_null => csview_NULL cstr_npos => c_NPOS csview_npos => c_NPOS c_ARGsv(sv) => c_ARGSV(sv) c_init(x) => c_INIT(x)
Diffstat (limited to 'src/cregex.c')
-rw-r--r--src/cregex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cregex.c b/src/cregex.c
index acbf53fa..94e591a4 100644
--- a/src/cregex.c
+++ b/src/cregex.c
@@ -1174,7 +1174,7 @@ _build_subst(const char* replace, unsigned nmatch, const csview match[],
cstr_buf buf = cstr_buffer(subst);
size_t len = 0, cap = buf.cap;
char* dst = buf.data;
- cstr mstr = cstr_null;
+ cstr mstr = cstr_NULL;
while (*replace != '\0') {
if (*replace == '$') {
@@ -1248,8 +1248,8 @@ cregex_find_pattern(const char* pattern, const char* input,
cstr
cregex_replace_sv(const cregex* re, csview input, const char* replace, unsigned count,
bool (*mfun)(int, csview, cstr*), int rflags) {
- cstr out = cstr_null;
- cstr subst = cstr_null;
+ cstr out = cstr_NULL;
+ cstr subst = cstr_NULL;
csview match[CREG_MAX_CAPTURES];
unsigned nmatch = cregex_captures(re);
if (!count) count = ~0U;