blob: 817dda2161d116f379ee79feba1dd65e16fa1fc7 (
plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
#include <stddef.h>
#include <assert.h>
#include "slice.h"
struct ed_buf;
void eb_init(struct ed_buf **eb) {
assert("TODO" == 0);
}
void eb_free(struct ed_buf *eb) {
assert("TODO" == 0);
}
void eb_insert(struct ed_buf *eb, int ch) {
assert("TODO" == 0);
}
void eb_backspace(struct ed_buf *eb) {
assert("TODO" == 0);
}
void eb_newline(struct ed_buf *eb) {
assert("TODO" == 0);
}
/* set cursor */
void eb_set_cur_prev_line(struct ed_buf *eb) {
assert("TODO" == 0);
}
void eb_set_cur_backward(struct ed_buf *eb) {
assert("TODO" == 0);
}
void eb_set_cur_next_line(struct ed_buf *eb) {
assert("TODO" == 0);
}
void eb_set_cur_forward(struct ed_buf *eb) {
assert("TODO" == 0);
}
/* get */
void eb_get_line_slice(const struct ed_buf *eb, size_t pos, struct slice *sl) {
assert("TODO" == 0);
}
size_t eb_get_cur_col(const struct ed_buf *eb) {
assert("TODO" == 0);
}
size_t eb_get_cur_row(const struct ed_buf *eb) {
assert("TODO" == 0);
}
size_t eb_get_line_num(const struct ed_buf *eb) {
assert("TODO" == 0);
}
/* io */
void eb_bind(struct ed_buf *eb, const char *path) {
assert("TODO" == 0);
}
void eb_load_file(struct ed_buf *eb) {
assert("TODO" == 0);
}
void eb_save_file(struct ed_buf *eb) {
assert("TODO" == 0);
}
|