| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2020-10-10 | array: mark array_peek argument as const | Marc André Tanner | 1 | -1/+1 | |
| 2020-10-10 | array: mark array_capacity argument as const | Marc André Tanner | 1 | -1/+1 | |
| 2020-10-10 | array: mark array_init_from argument as const | Marc André Tanner | 1 | -1/+1 | |
| 2020-10-10 | array: mark array_get_ptr argument as const | Marc André Tanner | 1 | -1/+1 | |
| 2020-10-10 | array: mark array_get argument as const | Marc André Tanner | 1 | -1/+1 | |
| 2020-10-10 | array: mark array_length argument as const | Marc André Tanner | 1 | -1/+1 | |
| 2020-02-03 | array: make array_sort work for empty arrays | Marc André Tanner | 1 | -1/+2 | |
| 2018-04-10 | array: fix off by one error in array_remove | Marc André Tanner | 1 | -1/+1 | |
| If the array was full, attempting to remove an element caused an out of bounds memory access. As an example this was triggered when reaching the capacity limit of the jumplist. It can be forced by repeatedly searching for something (i.e. `/.` and then holding down `n`). | |||||
| 2017-07-10 | array: add helper functions for LIFO usage | Marc André Tanner | 1 | -0/+18 | |
| 2017-06-15 | array: add array initialization utility function | Marc André Tanner | 1 | -0/+4 | |
| Reuses the element size from another array. | |||||
| 2017-06-15 | array: add array_sort utility function | Marc André Tanner | 1 | -0/+4 | |
| 2017-04-19 | array: implement array_resize | Marc André Tanner | 1 | -0/+8 | |
| 2017-04-19 | array: implement array_truncate | Marc André Tanner | 1 | -0/+8 | |
| 2017-04-18 | array: implement array_capacity | Marc André Tanner | 1 | -0/+4 | |
| 2016-12-27 | array: implement array_remove | Marc André Tanner | 1 | -0/+12 | |
| 2016-03-30 | array: allow arbitrarily sized array elements | Marc André Tanner | 1 | -7/+45 | |
| There exist two typical ways to use an array: 1) to hold pointers to externally allocated memory regions Use array_init(...) for initialization, an element has the size of a pointer. Use the functions suffixed with `_ptr' to manage your pointers. The cleanup function array_release_full must only be used with this type of array. 2) to hold arbitrary sized objects Use array_init_sized(...) to specify the size of a single element. Use the regular (i.e. without the `_ptr' suffix) functions to manage your objects. array_get will return a pointer to the object stored within the array. | |||||
| 2016-02-18 | Add a simple dynamically growing array data structure | Marc André Tanner | 1 | -0/+75 | |
