summary refs log tree commit diff
path: root/bin/edi/edi.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-11-24 23:41:11 -0500
committerJune McEnroe <june@causal.agency>2018-11-24 23:41:11 -0500
commit3c090cf56c2ac6f5cb656508c9dd311555a98f41 (patch)
tree34288de349a5b2796eef681e1565683dca9a543c /bin/edi/edi.h
parentAdd premature serialization to edi (diff)
downloadsrc-3c090cf56c2ac6f5cb656508c9dd311555a98f41.tar.gz
src-3c090cf56c2ac6f5cb656508c9dd311555a98f41.zip
Implement deserialization in edi
Diffstat (limited to '')
-rw-r--r--bin/edi/edi.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/bin/edi/edi.h b/bin/edi/edi.h
index 751b250a..c12aceb0 100644
--- a/bin/edi/edi.h
+++ b/bin/edi/edi.h
@@ -14,7 +14,6 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <wchar.h>
@@ -94,8 +93,16 @@ struct Edit {
 	struct Log log;
 };
 
-bool storeWrite(FILE *stream, const struct Edit *edit);
-bool storeRead(FILE *stream, struct Edit *edit);
+enum Error {
+	Ok,
+	StoreMagic,
+	StoreVersion,
+	StoreEOF,
+	Errno,
+};
+
+enum Error storeWrite(FILE *stream, const struct Edit *edit);
+enum Error storeRead(FILE *stream, struct Edit *edit);
 
 struct File {
 	char *path;
light'> 2021-01-12Replace causal.agency with a simple mdoc pageJune McEnroe 2021-01-11Publish "Using vi"June McEnroe 2021-01-11Enable diff.colorMovedJune McEnroe 2021-01-10Set less search case-insensitiveJune McEnroe 2021-01-10Set EXINITJune McEnroe neovim is laggy as hell in my OpenBSD VM, so I switched to vi so I could type without getting frustrated. 2021-01-09Add c -t flag to print expression typeJune McEnroe Also add missing float case. 2021-01-05Update taglineJune McEnroe