aboutsummaryrefslogtreecommitdiff
path: root/include/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/types.h')
-rw-r--r--include/types.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/types.h b/include/types.h
new file mode 100644
index 0000000..9fb7809
--- /dev/null
+++ b/include/types.h
@@ -0,0 +1,22 @@
+#ifndef TYPES_H
+#define TYPES_H
+
+#include <stdbool.h>
+#include <stddef.h>
+
+struct line {
+ size_t len;
+ char *buf;
+};
+
+struct filedata {
+ int lc;
+ bool binary;
+
+ size_t buflen;
+
+ char *buf;
+ struct line *lines;
+};
+
+#endif