| 24 |
|
|
| 25 |
struct editor_data_t |
struct editor_data_t |
| 26 |
{ |
{ |
|
char *p_data_lines[MAX_EDITOR_DATA_LINES]; |
|
|
long data_line_total; |
|
| 27 |
char *p_display_lines[MAX_EDITOR_DATA_LINES]; |
char *p_display_lines[MAX_EDITOR_DATA_LINES]; |
| 28 |
long display_line_lengths[MAX_EDITOR_DATA_LINES]; |
long display_line_lengths[MAX_EDITOR_DATA_LINES]; |
| 29 |
long display_line_total; |
long display_line_total; |
| 45 |
|
|
| 46 |
extern int editor_display(EDITOR_DATA *p_editor_data); |
extern int editor_display(EDITOR_DATA *p_editor_data); |
| 47 |
|
|
| 48 |
extern int editor_data_insert(EDITOR_DATA *p_editor_data, long display_line, long offset, |
extern int editor_data_insert(EDITOR_DATA *p_editor_data, long *p_display_line, long *p_offset, |
| 49 |
const char *str, int str_len, long *p_last_updated_line); |
const char *str, int str_len, long *p_last_updated_line); |
| 50 |
|
|
| 51 |
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 display_line, long offset, |