refactor: xmake in use, compiles and tests fine
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
#ifndef ARRAYLIST_H
|
||||
#define ARRAYLIST_H
|
||||
#ifndef LAE_ARRAYLIST_H
|
||||
#define LAE_ARRAYLIST_H
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
|
||||
typedef struct ArrayList ArrayList;
|
||||
|
||||
@@ -35,8 +35,8 @@ size_t arraylist_capacity(const ArrayList *arr);
|
||||
bool arraylist_is_empty(const ArrayList *arr);
|
||||
|
||||
ArrayListErr arraylist_push_back(ArrayList *arr, void *data);
|
||||
ArrayListErr arraylist_insert(ArrayList*arr, size_t index, void *data);
|
||||
ArrayListErr arraylist_push_front(ArrayList* arr, void *data);
|
||||
ArrayListErr arraylist_insert(ArrayList *arr, size_t index, void *data);
|
||||
ArrayListErr arraylist_push_front(ArrayList *arr, void *data);
|
||||
|
||||
// Here out can be null for not having anything writen
|
||||
ArrayListErr arraylist_pop_back(ArrayList *arr, void *out);
|
||||
@@ -49,9 +49,13 @@ ArrayListErr arraylist_set(ArrayList *arr, size_t index, void *data);
|
||||
ArrayListErr arraylist_resize(ArrayList *arr, size_t new_capacity);
|
||||
ArrayListErr arraylist_reserve(ArrayList *arr, size_t size_to_reserve);
|
||||
|
||||
//Slice stuff
|
||||
ArrayListErr arraylist_slice(ArraySlice **slice, ArrayList *arr, size_t start, size_t len);
|
||||
ArrayListErr arraylist_slice_unsafe(ArraySlice **slice, ArrayList *arr, size_t start, size_t len);
|
||||
// Slice stuff
|
||||
ArrayListErr
|
||||
arraylist_slice(ArraySlice **slice, ArrayList *arr, size_t start, size_t len);
|
||||
|
||||
ArrayListErr arraylist_slice_unsafe(
|
||||
ArraySlice **slice, ArrayList *arr, size_t start, size_t len);
|
||||
|
||||
ArrayListErr arrayslice_destroy(ArraySlice **slice);
|
||||
|
||||
bool arrayslice_is_valid(const ArraySlice *slice);
|
||||
Reference in New Issue
Block a user