Add string buffer util

This will help to build strings incrementally.
This commit is contained in:
Romain Vimont
2021-11-06 19:51:47 +01:00
parent 570a003c39
commit 6dba1922c1
4 changed files with 212 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ src = [
'src/util/log.c',
'src/util/net.c',
'src/util/process.c',
'src/util/strbuf.c',
'src/util/str_util.c',
'src/util/thread.c',
'src/util/tick.c',
@@ -204,6 +205,10 @@ if get_option('buildtype') == 'debug'
['test_queue', [
'tests/test_queue.c',
]],
['test_strbuf', [
'tests/test_strbuf.c',
'src/util/strbuf.c',
]],
['test_strutil', [
'tests/test_strutil.c',
'src/util/str_util.c',