diff options
| author | Tyge Løvset <[email protected]> | 2022-12-19 09:04:23 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-12-19 09:04:23 +0100 |
| commit | 1d4ad83d6f3388982cb0aeadbc9815b4776df504 (patch) | |
| tree | 6d0d389219644b127eaa83c8a54ccd93deef96b7 /src | |
| parent | 26a75a218a115a10cee82534be568a606c83dbb2 (diff) | |
| download | STC-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')
| -rw-r--r-- | src/cregex.c | 6 |
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; |
