-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuffer.h
More file actions
26 lines (26 loc) · 1.13 KB
/
buffer.h
File metadata and controls
26 lines (26 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef EMSYS_BUFFER_H
#define EMSYS_BUFFER_H
#include "emsys.h"
void updateRow(erow *row);
void editorInsertRow(struct editorBuffer *bufr, int at, char *s, size_t len);
void freeRow(erow *row);
void editorDelRow(struct editorBuffer *bufr, int at);
void rowInsertChar(struct editorBuffer *bufr, erow *row, int at, int c);
void editorRowInsertUnicode(struct editorConfig *ed, struct editorBuffer *bufr,
erow *row, int at);
void rowAppendString(struct editorBuffer *bufr, erow *row, char *s, size_t len);
void rowDelChar(struct editorBuffer *bufr, erow *row, int at);
struct editorBuffer *newBuffer(void);
void destroyBuffer(struct editorBuffer *buf);
void editorUpdateBuffer(struct editorBuffer *buf);
void editorSwitchToNamedBuffer(struct editorConfig *ed,
struct editorBuffer *current);
void editorNextBuffer(void);
void editorPreviousBuffer(void);
void editorKillBuffer(void);
void invalidateScreenCache(struct editorBuffer *buf);
void buildScreenCache(struct editorBuffer *buf);
int getScreenLineForRow(struct editorBuffer *buf, int row);
int calculateLineWidth(erow *row);
int charsToDisplayColumn(erow *row, int char_pos);
#endif