summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cstr.h
diff options
context:
space:
mode:
authorTyge Lovset <[email protected]>2023-01-04 23:10:21 +0100
committerTyge Lovset <[email protected]>2023-01-04 23:10:21 +0100
commit86c9f85d6c76084009f274977525163a47360885 (patch)
tree80f2246a0b31003215a3ce2c0a86c5ffd2995029 /include/stc/cstr.h
parentf89ba241b30a9335a8354c435c377cfcf9841de2 (diff)
downloadSTC-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.h4
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);