summaryrefslogtreecommitdiff
path: root/more.h
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2022-04-19 19:43:48 -0400
committerJakob Kaivo <jkk@ung.org>2022-04-19 19:43:48 -0400
commita63233cd95c5a7ac9a61774f121e3e83488cafa8 (patch)
tree43766ca8ddc3e42be02752a5b4bf726bfcecfb96 /more.h
parent5f87ff233faf60581255b919debb2dfa0ce1f0c9 (diff)
merge everything into more.c
Diffstat (limited to 'more.h')
-rw-r--r--more.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/more.h b/more.h
deleted file mode 100644
index 5fcd9a2..0000000
--- a/more.h
+++ /dev/null
@@ -1,20 +0,0 @@
-#define _XOPEN_SOURCE 700
-#include <stdio.h>
-
-struct more_file {
- FILE *f;
- FILE *backing;
- size_t topline;
- fpos_t *tlines;
- size_t nlines;
- size_t mark[26];
- size_t nbytes;
- size_t *bytepos;
- char *buf;
- size_t nbuf;
- char *path;
-};
-
-struct more_file more_open(const char *path);
-void more_close(struct more_file *mf);
-ssize_t more_getline(struct more_file *mf, size_t lineno);