--- lbbs/include/editor.h 2025/06/12 03:16:35 1.4 +++ lbbs/include/editor.h 2025/06/15 13:40:52 1.6 @@ -39,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); @@ -48,7 +51,7 @@ extern int editor_display(EDITOR_DATA *p extern int editor_data_insert(EDITOR_DATA *p_editor_data, long *p_display_line, long *p_offset, const char *str, int str_len, long *p_last_updated_line); -extern int editor_data_delete(EDITOR_DATA *p_editor_data, long display_line, long offset, +extern int editor_data_delete(EDITOR_DATA *p_editor_data, long *p_display_line, long *p_offset, long *p_last_updated_line); #endif //_EDITOR_H_