From 58214ec5f982c1b97aadce254c958a5f922c9724 Mon Sep 17 00:00:00 2001 From: wrmr Date: Sat, 2 Nov 2024 15:10:41 -0500 Subject: split main.c in several places, began work on design doc --- doc.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 doc.h (limited to 'doc.h') diff --git a/doc.h b/doc.h new file mode 100644 index 0000000..3c5dfcc --- /dev/null +++ b/doc.h @@ -0,0 +1,24 @@ +#ifndef DOC_H +#define DOC_H + +enum doc_type { + TYPE_UNKNOWN, + TYPE_GOPHERDOC, + TYPE_GEMTEXT, + TYPE_PLAIN, +}; + +void doc_new(void); +void doc_prev(void); +void doc_next(void); + +void doc_add(const char *, size_t); +void doc_adds(const char *); + +void doc_back_line(void); +void doc_print_line(void); + +void doc_init(void); +void doc_fini(void); + +#endif -- cgit 1.4.1-2-gfad0