text edit: new line processing mechanism [not finished]
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
#ifndef D_ARRAY_H
|
||||
#define D_ARRAY_H
|
||||
/* Dynamic array of numbers */
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct d_array_ptr_t {
|
||||
int32_t capacity;
|
||||
int32_t length;
|
||||
@@ -10,8 +13,12 @@ typedef struct d_array_ptr_t {
|
||||
void *last_el;
|
||||
} d_array_ptr_t;
|
||||
|
||||
typedef void *u_d_arr_free_callback(void *arg);
|
||||
|
||||
void u_d_arr_ptr_init(d_array_ptr_t *arr, int32_t init_capacity);
|
||||
void u_d_arr_ptr_add(d_array_ptr_t *arr, void *ptr, int32_t idx);
|
||||
void u_d_arr_ptr_free(d_array_ptr_t *arr);
|
||||
void u_d_array_append(d_array_ptr_t *arr, void *el_ptr, size_t el_len);
|
||||
void u_d_arr_free_cb(d_array_ptr_t *arr, u_d_arr_free_callback *callback);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user