fixed some errors

This commit is contained in:
Odweta
2024-02-06 22:04:47 +01:00
parent e40b61a21b
commit f9e820efbc
10 changed files with 355 additions and 355 deletions
+12 -12
View File
@@ -13,30 +13,30 @@ typedef struct {
vector_t *vector_new(type_e type); // size gets determined by the dataType and the capacity starts at 1 and x1.5 every time the vector gets filled up
void vector_reset(vector_t *this); // sets the vector to its original state
void vector_reset(vector_t *self); // sets the vector to its original state
void *vector_pop(vector_t *this); // remove one value from the end of the vector and return it
void *vector_pop(vector_t *self); // remove one value from the end of the vector and return it
void vector_push(vector_t *this, void *element); // push one value at the end of the vector
void vector_push(vector_t *self, void *element); // push one value at the end of the vector
void vector_cleanup(vector_t *this); // freeing pointers
void vector_cleanup(vector_t *self); // freeing pointers
void vector_print(vector_t *this); // shows the vector
void vector_print(vector_t *self); // shows the vector
void vector_print_as_string(vector_t *this); // show the vector as a string if the v->type is CHAR
void vector_print_as_string(vector_t *self); // show the vector as a string if the v->type is CHAR
void vector_insert_at(vector_t *this, int index, void *element); // inserts an element 'element' at index 'index'
void vector_insert_at(vector_t *self, int index, void *element); // inserts an element 'element' at index 'index'
void vector_set_at(vector_t *this, int index, void *element); // set an element's value at a given index
void vector_set_at(vector_t *self, int index, void *element); // set an element's value at a given index
char *vector_to_string(vector_t *this); // convert the vector into a regular string
char *vector_to_string(vector_t *self); // convert the vector into a regular string
void *vector_get_at(vector_t *this, int index); // get an element at the given index
void *vector_get_at(vector_t *self, int index); // get an element at the given index
void vector_remove_at(vector_t *this, int index);
void vector_remove_at(vector_t *self, int index);
void _vector_print_recursive(vector_t *this, int depth);
void _vector_print_recursive(vector_t *self, int depth);
#endif