started C implementation, created custom library for handling strings
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#include "dynstr.h"
|
||||
|
||||
typedef struct {
|
||||
int screen_line;
|
||||
int screen_col;
|
||||
bool editmode;
|
||||
String* buffer;
|
||||
} Editor;
|
||||
|
||||
Editor new_editor();
|
||||
|
||||
Editor editor_from(char* input_string);
|
||||
|
||||
void move_cursor(Editor* self, int x, int y);
|
||||
void delchar(Editor* self);
|
||||
void addchar(Editor* self, char c);
|
||||
|
||||
String* to_string(Editor* self);
|
||||
Reference in New Issue
Block a user