diff options
| -rw-r--r-- | editor_piece.c | 76 | ||||
| -rw-r--r-- | makefile | 2 |
2 files changed, 77 insertions, 1 deletions
diff --git a/editor_piece.c b/editor_piece.c new file mode 100644 index 0000000..817dda2 --- /dev/null +++ b/editor_piece.c @@ -0,0 +1,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); +} + @@ -4,7 +4,7 @@ CC ?= gcc CFLAGS ?= -Wall -Wextra -O0 -I$(RAYLIB_PREFIX)/include -DMAIN_WINDOW_TITLE="\"$(TARGET)\"" # LDFLAGS=-v LDLIBS := $(RAYLIB_PREFIX)/lib/libraylib.a -lm -SRCS := $(filter-out test_%.c, $(wildcard *.c)) +SRCS := $(filter-out editor.c, $(filter-out test_%.c, $(wildcard *.c))) OBJS := $(SRCS:.c=.o) DEPDIR := .deps DEPS := $(addprefix $(DEPDIR)/, $(OBJS:.o=.d)) |
