17 Commits
Author SHA1 Message Date
dcrubro 3fcb3dbc05 detailed tests 2026-08-26 21:50:20 +02:00
dcrubro fe3f152492 Add some simple tests 2026-08-26 21:11:30 +02:00
dcrubro dbfb54fc7a Add some simple tests 2026-08-26 21:09:07 +02:00
dcrubro 321284dec6 set.h: memory safety fixes, added set_take()/set_take_at() 2026-08-22 17:28:04 +02:00
dcrubro ce95277a29 version fix 2026-08-19 23:32:40 +02:00
dcrubro 027864af1e final bug patches for vector.h 2026-08-19 23:32:09 +02:00
dcrubro 2c47529d05 destroy takes **vec instead of *vec, NULLs on op 2026-08-19 23:18:38 +02:00
dcrubro f74f05eb29 fixing blatantly wrong guarantees and behaviour 2026-08-19 22:58:34 +02:00
dcrubro d912d6d559 added guard to vector_prune() to check that element_size > 0 2026-08-19 22:23:52 +02:00
dcrubro 8af8473c72 Fixed vector_push_back() call to use memmove() instead of memcpy() - allows for region overlap 2026-08-19 22:15:16 +02:00
dcrubro 195e133303 fixed vector_reserve() on the edge case where wrapping to 0 would return 0 as if the reservation succeeded - caused a heap overflow 2026-08-19 22:13:42 +02:00
dcrubro b8d45ad32a added vector_take_at() (and take_back()) which removes like pop() without destructor calling, and copies into supplied pointer - ownership transfer 2026-08-19 22:02:43 +02:00
dcrubro 4785b84227 set_t type 2026-08-19 21:26:34 +02:00
dcrubro 2a22daa0c0 gitignore 2026-08-19 00:40:07 +02:00
dcrubro 7f0c576b10 vector final 2026-08-19 00:38:36 +02:00
dcrubro a0d88e7cbf Vector 2026-08-19 00:05:31 +02:00
dcrubro 1f5a8eccbe initial commit 2026-08-18 22:04:08 +02:00