summaryrefslogtreecommitdiff
path: root/lib/util/wscript_build
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-12-20 08:37:32 +0100
committerAndrew Bartlett <abartlet@samba.org>2020-02-21 02:09:33 +0000
commit3d8680e6a879c0c785e491a3fa78ba8ce86c2380 (patch)
tree3ccda8838e2abb268699ae462b43308dd03f6f90 /lib/util/wscript_build
parentaebe427b77b5315eb5d2b05b8c72824ca0389723 (diff)
downloadsamba-3d8680e6a879c0c785e491a3fa78ba8ce86c2380.tar.gz
lib:util: Add bytearray.h
This is an implementation which doesn't have undefined behavior problems. It casts correctly that calculations are don in the correct integer space. Also the naming is less confusing than what we have in byteorder.h. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib/util/wscript_build')
-rw-r--r--lib/util/wscript_build7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/util/wscript_build b/lib/util/wscript_build
index a827eea3ed9..f181e82fa3a 100644
--- a/lib/util/wscript_build
+++ b/lib/util/wscript_build
@@ -154,6 +154,7 @@ else:
public_deps='talloc tevent execinfo pthread LIBCRYPTO charset util_setid',
public_headers='''
attr.h
+ bytearray.h
byteorder.h
data_blob.h
debug.h
@@ -288,3 +289,9 @@ else:
deps='cmocka replace samba-util',
local_include=False,
for_selftest=True)
+
+ bld.SAMBA_BINARY('test_bytearray',
+ source='tests/test_bytearray.c',
+ deps='cmocka replace samba-util',
+ local_include=False,
+ for_selftest=True)