at least strings and vectors of ints work, not much else though... contributions welcome
This commit is contained in:
@@ -30,6 +30,10 @@ void list_cleanup(list_t *self); /
|
||||
|
||||
void *list_pop(list_t *self); // popping the last value of the list and returning it
|
||||
|
||||
void list_deep_copy(list_t *src, list_t *dst);
|
||||
|
||||
vector_t *list_get_at_vector(list_t *self, int index);
|
||||
|
||||
void list_insert_at(list_t *self, int index, type_e type, void *element); // inserts an element at a given index
|
||||
|
||||
void list_remove_at(list_t *self, int index);
|
||||
|
||||
@@ -15,6 +15,8 @@ string_t *string_from(char *chars); // create a new s
|
||||
bool_t string_push_chars(string_t *self, char *chars); // append a char_sequence to a string
|
||||
bool_t string_push(string_t *self, string_t *other); // append a string to a string
|
||||
|
||||
void string_deep_copy(string_t *src, string_t *dst);
|
||||
|
||||
compare_e string_compare(string_t *left, string_t* right); // compare two strings
|
||||
|
||||
void string_print(string_t *self); // print a string
|
||||
|
||||
@@ -35,6 +35,8 @@ void *vector_get_at(vector_t *self, int index); // get an element at the giv
|
||||
|
||||
void vector_remove_at(vector_t *self, int index);
|
||||
|
||||
void vector_deep_copy(vector_t *src, vector_t *dst);
|
||||
|
||||
|
||||
|
||||
void _vector_print_recursive(vector_t *self, int depth);
|
||||
|
||||
Reference in New Issue
Block a user