Add m_ prefix for the string API

This commit is contained in:
Patrick Pelissier committed 2022-03-15 19:24:14 +01:00
1 parent 07a5d0ed0a
commit 02897f982f
3 files changed
+483 -369

No files matched your search

+481 -367
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -80,7 +80,7 @@ ILIST_DEF(tmpstr, tmp_str_t, DEFAULT_OPLIST)
#include "m-string.h"
void f(void)
{
M_LET(x, M_STRING_OPLIST) {
M_LET(x, M_M_STRING_OPLIST) {
}
}
+1 -1
View File
@@ -611,7 +611,7 @@ static void test0(void)
string_set_str (s1, "");
assert (string_capacity(s1) > 0);
string_reserve (s1, 0);
assert (string_capacity(s1) == sizeof (string_heap_ct) - 1);
assert (string_capacity(s1) == sizeof (m_string_heap_ct) - 1);
string_set_str(s1, "HELLO XXX!");
string_replace_at(s1, 6, 3, "World");