/[LeafOK_CVS]/lbbs/include/editor.h
ViewVC logotype

Diff of /lbbs/include/editor.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.5 by sysadm, Thu Jun 12 10:34:21 2025 UTC Revision 1.9 by sysadm, Tue Nov 4 13:49:50 2025 UTC
# Line 1  Line 1 
1  /***************************************************************************  /* SPDX-License-Identifier: GPL-3.0-or-later */
2                                                     editor.h  -  description  /*
3                                                           -------------------   * editor
4          copyright            : (C) 2004-2025 by Leaflet   *   - user interactive full-screen text editor
5          email                : leaflet@leafok.com   *
6   ***************************************************************************/   * Copyright (C) 2004-2025 by Leaflet <leaflet@leafok.com>
7     */
 /***************************************************************************  
  *                                                                         *  
  *   This program is free software; you can redistribute it and/or modify  *  
  *   it under the terms of the GNU General Public License as published by  *  
  *   the Free Software Foundation; either version 3 of the License, or     *  
  *   (at your option) any later version.                                   *  
  *                                                                         *  
  ***************************************************************************/  
8    
9  #ifndef _EDITOR_H_  #ifndef _EDITOR_H_
10  #define _EDITOR_H_  #define _EDITOR_H_
# Line 25  Line 17 
17  struct editor_data_t  struct editor_data_t
18  {  {
19          char *p_display_lines[MAX_EDITOR_DATA_LINES];          char *p_display_lines[MAX_EDITOR_DATA_LINES];
20          long display_line_lengths[MAX_EDITOR_DATA_LINES];          long display_line_lengths[MAX_EDITOR_DATA_LINES]; // string length of display line
21            int display_line_widths[MAX_EDITOR_DATA_LINES];   // display width of display line
22          long display_line_total;          long display_line_total;
23  };  };
24  typedef struct editor_data_t EDITOR_DATA;  typedef struct editor_data_t EDITOR_DATA;
# Line 51  extern int editor_display(EDITOR_DATA *p Line 44  extern int editor_display(EDITOR_DATA *p
44  extern int editor_data_insert(EDITOR_DATA *p_editor_data, long *p_display_line, long *p_offset,  extern int editor_data_insert(EDITOR_DATA *p_editor_data, long *p_display_line, long *p_offset,
45                                                            const char *str, int str_len, long *p_last_updated_line);                                                            const char *str, int str_len, long *p_last_updated_line);
46    
47  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,
48                                                            long *p_last_updated_line);                                                            long *p_last_updated_line, int del_line);
49    
50  #endif //_EDITOR_H_  #endif //_EDITOR_H_


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1