summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Eden <sven.eden@gmx.de>2013-02-03 15:28:36 +0100
committerSven Eden <sven.eden@gmx.de>2013-02-03 15:28:36 +0100
commit103ecb8a278b4dfc32af443f5004ee940a0bf762 (patch)
treec004a6e74ffec4dfd75d52d4279a1e8e6f3586c7 /ufed-curses-globals.c
parentFixed a bug that could cause a found flag to be below the display if a displa... (diff)
downloadufed-103ecb8a278b4dfc32af443f5004ee940a0bf762.tar.gz
ufed-103ecb8a278b4dfc32af443f5004ee940a0bf762.tar.bz2
ufed-103ecb8a278b4dfc32af443f5004ee940a0bf762.zip
Moved global variables to the new files ufed-curses-globals.c and ufed-curses-globals.h to clean up both ufed-curses.c and ufed-curses-checklist.c. Further this move should reduce confusion about what is desclared and/or defined where.
Diffstat (limited to 'ufed-curses-globals.c')
-rw-r--r--ufed-curses-globals.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/ufed-curses-globals.c b/ufed-curses-globals.c
new file mode 100644
index 0000000..d43c4f1
--- /dev/null
+++ b/ufed-curses-globals.c
@@ -0,0 +1,26 @@
+/*
+ * ufed-curses-globals.c
+ *
+ * Created on: 03.02.2013
+ * Author: Sven Eden
+ */
+
+#include "ufed-curses-types.h"
+
+int bottomline = 0;
+int minwidth = 0;
+int topline = 0;
+eMask e_mask = eMask_unmasked;
+eOrder e_order = eOrder_left;
+eScope e_scope = eScope_all;
+eState e_state = eState_all;
+sListStats listStats = { 0, 0, 0, 0, 0, 0 };
+sWindow window[wCount] = {
+ { NULL, 0, 0, 5, 0 }, /* Top --- Top ---- */
+ { NULL, 5, 0, -8, 3 }, /* Left L+------+S|R */
+ { NULL, 5, 3, -9, -6 }, /* List E| |c|i */
+ { NULL, -4, 3, 1, -6 }, /* Input F| List |r|g */
+ { NULL, 5, -3, -8, 1 }, /* Scrollbar T|______|B|h */
+ { NULL, 5, -2, -8, 2 }, /* Right |+Input-+r|t */
+ { NULL, -3, 0, 3, 0 }, /* Bottom ---Bottom--- */
+};