--- lbbs/include/editor.h 2025/06/10 06:48:23 1.3 +++ lbbs/include/editor.h 2025/06/12 10:34:21 1.5 @@ -24,8 +24,6 @@ struct editor_data_t { - char *p_data_lines[MAX_EDITOR_DATA_LINES]; - long data_line_total; char *p_display_lines[MAX_EDITOR_DATA_LINES]; long display_line_lengths[MAX_EDITOR_DATA_LINES]; long display_line_total; @@ -41,6 +39,9 @@ struct editor_ctx_t }; typedef struct editor_ctx_t EDITOR_CTX; +extern int editor_memory_pool_init(void); +extern void editor_memory_pool_cleanup(void); + extern EDITOR_DATA *editor_data_load(const char *p_data); extern long editor_data_save(const EDITOR_DATA *p_editor_data, char *p_data, size_t buf_len); extern void editor_data_cleanup(EDITOR_DATA *p_editor_data);