2018-10-19 13:24:58 +02:00
|
|
|
#ifndef _ROW_H
|
|
|
|
#define _ROW_H
|
|
|
|
|
2018-10-25 12:17:28 +02:00
|
|
|
#include <stddef.h> // for NULL
|
|
|
|
#include "fn.h" // for erow
|
|
|
|
|
|
|
|
|
2018-10-19 13:24:58 +02:00
|
|
|
#define ABUF_INIT {NULL, 0}
|
|
|
|
|
2018-10-25 12:17:28 +02:00
|
|
|
|
2018-10-19 13:24:58 +02:00
|
|
|
void abAppend(struct abuf *ab, const char *s, int len);
|
|
|
|
void abFree(struct abuf *ab);
|
|
|
|
|
|
|
|
char *editorRowsToString(int *buflen);
|
|
|
|
|
|
|
|
int editorRowCxToRx(erow *row, int cx);
|
|
|
|
int editorRowRxToCx(erow *row, int rx);
|
|
|
|
|
|
|
|
void editorUpdateRow(erow *row);
|
|
|
|
void editorInsertRow(int at, char *s, size_t len);
|
|
|
|
void editorFreeRow(erow *row);
|
|
|
|
void editorDelRow(int at);
|
|
|
|
|
|
|
|
void editorRowInsertChar(erow *row, int at, int c);
|
|
|
|
void editorRowAppendString(erow *row, char *s, size_t len);
|
|
|
|
void editorRowDelChar(erow *row, int at);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|