From 1d4ad83d6f3388982cb0aeadbc9815b4776df504 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Mon, 19 Dec 2022 09:04:23 +0100 Subject: 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) --- src/cregex.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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; -- cgit v1.2.3