diff options
| author | Tyge Lovset <[email protected]> | 2023-01-04 23:10:21 +0100 |
|---|---|---|
| committer | Tyge Lovset <[email protected]> | 2023-01-04 23:10:21 +0100 |
| commit | 86c9f85d6c76084009f274977525163a47360885 (patch) | |
| tree | 80f2246a0b31003215a3ce2c0a86c5ffd2995029 /include/stc/cstr.h | |
| parent | f89ba241b30a9335a8354c435c377cfcf9841de2 (diff) | |
| download | STC-modified-86c9f85d6c76084009f274977525163a47360885.tar.gz STC-modified-86c9f85d6c76084009f274977525163a47360885.zip | |
Renamed (half)-internal c_strlen_lit() to crawstr_len().
Diffstat (limited to 'include/stc/cstr.h')
| -rw-r--r-- | include/stc/cstr.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/stc/cstr.h b/include/stc/cstr.h index 35da62c9..46ad2fcd 100644 --- a/include/stc/cstr.h +++ b/include/stc/cstr.h @@ -70,11 +70,9 @@ STC_API char* _cstr_internal_move(cstr* self, size_t pos1, size_t pos2); /**************************** PUBLIC API **********************************/ -#define cstr_lit(literal) cstr_from_n(literal, c_strlen_lit(literal)) +#define cstr_lit(literal) cstr_from_n(literal, crawstr_len(literal)) #define cstr_NULL (c_INIT(cstr){{{0}, 0}}) #define cstr_toraw(self) cstr_str(self) -#define cstr_new(lit) cstr_lit(lit) /* [deprecated] */ -#define cstr_null cstr_NULL /* [deprecated] */ STC_API char* cstr_reserve(cstr* self, size_t cap); STC_API void cstr_shrink_to_fit(cstr* self); |
