summaryrefslogtreecommitdiff
path: root/file.h
diff options
context:
space:
mode:
authorcflip <cflip@cflip.net>2023-01-08 14:15:01 -0700
committercflip <cflip@cflip.net>2023-01-08 14:15:01 -0700
commit91195d34e1f71246cadc41705004d66ab647087e (patch)
tree0d2f7e929b7b51590d270e2f22fb5a3621204bf2 /file.h
Initial import of existing source code
This is based off of snaptoken's "Build Your Own Text Editor" tutorial at https://viewsourcecode.org/snaptoken/kilo/.
Diffstat (limited to 'file.h')
-rw-r--r--file.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/file.h b/file.h
new file mode 100644
index 0000000..831d193
--- /dev/null
+++ b/file.h
@@ -0,0 +1,6 @@
+#pragma once
+
+#include "editor.h"
+
+void editor_open(struct editor_state* editor, char* filename);
+void editor_save(struct editor_state* editor);