GString: Support on-stack use

Move the preallocation into the GString struct,
and add g_string_init and g_string_clear to
enable on-stack use of GString.
This commit is contained in:
Matthias Clasen
2023-01-17 17:56:41 -05:00
parent 1aa5304109
commit 1e38e6f53f
4 changed files with 149 additions and 15 deletions

View File

@@ -2652,6 +2652,8 @@ g_string_truncate
g_string_set_size
g_string_free
g_string_free_to_bytes
g_string_init
g_string_free
<SUBSECTION>
g_string_up