aboutsummaryrefslogtreecommitdiff
path: root/ui.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-05-02 16:46:22 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-05-04 13:47:50 +0200
commitc5f1b4e0f55fecf6c13f9a6fcdf6f0d44592171f (patch)
tree3d61dca197a23c4673fc7f0d31dae3ffb683ec10 /ui.h
parentbab79b3bbdb95579ffc7e447bed3b00f2547505c (diff)
downloadvis-c5f1b4e0f55fecf6c13f9a6fcdf6f0d44592171f.tar.gz
vis-c5f1b4e0f55fecf6c13f9a6fcdf6f0d44592171f.tar.xz
vis: enable large file optimizations for files with long lines
Diffstat (limited to 'ui.h')
-rw-r--r--ui.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui.h b/ui.h
index d846deb..b08ff16 100644
--- a/ui.h
+++ b/ui.h
@@ -4,6 +4,11 @@
#include <stdbool.h>
#include <stdarg.h>
+/* enable large file optimization for files larger than: */
+#define UI_LARGE_FILE_SIZE (1 << 25)
+/* enable large file optimization fo files containing lines longer than: */
+#define UI_LARGE_FILE_LINE_SIZE (1 << 16)
+
typedef struct Ui Ui;
typedef struct UiWin UiWin;