From ff8ab43201e5c862003d9353016409c13691562c Mon Sep 17 00:00:00 2001 From: justanothercatgirl Date: Sat, 8 Feb 2025 22:13:25 +0300 Subject: Changed comments style, added array deletion functions --- README.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 4d781f7..d3d1a2c 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,8 @@ This is just a collection of (usually single-purpos) header files that I use ref * Summary: originally was several headers, but since `hash_map.h` used `dynarray.h`, which itself used `utility.h`, it was too complex to work with. So i combined everything in a single header. * How to use: Define `CONTAINER_IMPLEMENTATION` macro before including `container.h`. It's probably better to `#undef` it after inclusion as well. To use some functions (`__default_int_cmp` and alikes), define `CONTAINER_EXPOSE_HELPERS`. * Examples: See [tests](tests) +### Additional macros +* SHRINK\_RESIGING\_ARRAY: Reallocate the array to smaller capacity when it's size becomes too small. Not impelemented at the moment. ## [`rstypes.h`](include/rstypes.h) * Summary: rust type aliases (like `u32`, `f128` e.t.c.) * How to use: if you don't need `i128` or `u128`, then just include the header. If you do need them, define macro `RS_TYPES_USE_128`. -- cgit v1.2.3-70-g09d2