]> Pileus Git - lackey/blobdiff - src/view/year.c
Add day and week view
[lackey] / src / view / year.c
index dd9494d076fbc12fa2081e87b285e98976400bdc..19554e969ceb429d2a868f9b1775cfa387518919 100644 (file)
@@ -1,20 +1,15 @@
 #include <string.h>
 #include <ncurses.h>
 
+#include "main.h"
 #include "util.h"
 
-/* Macros */
-#define MAX(a,b) ((a) > (b) ? (a) : (b))
+/* Constants */
 #define MW (2*7+6)
 
 /* Static data */
 static WINDOW *win;
 
-/* Test data */
-const static int YEAR  = 2012;
-const static int MONTH = SEP;
-const static int DAY   = 29;
-
 /* Helper functions */
 static void print_month(month_t month, int y, int x)
 {