text edit: changes line processing.

This commit is contained in:
2026-07-20 18:41:51 +03:00
parent 35c666126e
commit 269bd0aa72
3 changed files with 32 additions and 48 deletions
+1 -3
View File
@@ -13,10 +13,8 @@ void u_d_arr_ptr_init(d_array_ptr_t *arr, int32_t init_capacity) {
memset(arr->arr, 0, sizeof(void *) * init_capacity);
}
/* TODO: check out the correctness */
void u_d_array_append(d_array_ptr_t *arr, void *el_ptr, size_t el_len) {
void *el = malloc(el_len);
u_d_arr_ptr_add(arr, el, arr->length);
u_d_arr_ptr_add(arr, el_ptr, arr->length);
}
void u_d_arr_ptr_add(d_array_ptr_t *arr, void *ptr, int32_t idx) {