summary refs log tree commit diff
path: root/parse.c
diff options
context:
space:
mode:
authorwrmr2024-11-02 19:33:08 -0500
committerwrmr2024-11-02 19:33:08 -0500
commit610808a5902adad751a4acdbcc310803a51fed5d (patch)
tree76599dc60cccf6a3765f484dfa1b19e1af88efa1 /parse.c
parent58214ec5f982c1b97aadce254c958a5f922c9724 (diff)
very different document data structure
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/parse.c b/parse.c
deleted file mode 100644
index 8061257..0000000
--- a/parse.c
+++ /dev/null
@@ -1,17 +0,0 @@
-#include "parse.h"
-
-int parse_doc(enum doc_type doct, int (*line_get)(char **, size_t *)) {
-	char *s;
-	size_t n;
-	switch (doct) {
-	case TYPE_PLAIN:
-		doc_new();
-		while (line_get(&s, &n)) {
-			doc_add(s, n);
-			doc_add("\n", 1);
-		}
-		return 0;
-	default:
-		return -1;
-	}
-}