vip

VI Plus
git clone https://codeberg.org/night0721/vip
Log | Files | Refs | README | LICENSE

row.h (537B)


      1 #ifndef ROW_H_
      2 #define ROW_H_
      3 
      4 typedef struct row {
      5 	int idx;
      6 	int size;
      7 	int render_size;
      8 	char *chars;
      9 	char *render;
     10 	unsigned char *hl;
     11 	int opened_comment;
     12 } row;
     13 
     14 int row_cx_to_rx(row *row, int cx);
     15 int row_rx_to_cx(row *row, int rx);
     16 void update_row(row *row);
     17 void insert_row(int at, char *s, size_t len);
     18 void free_row(row *row);
     19 void del_row(int at);
     20 void row_insert_char(row *row, int at, int c);
     21 void row_append_str(row *row, char *s, size_t len);
     22 void row_del_char(row *row, int at);
     23 char *rows_to_str(int *buflen);
     24 
     25 #endif