shithub: zuke

Download patch

ref: 7f261aa809a4134793508e99689c6fc45b40e3f1
parent: 7c21b87fab8b98ef1d63fb6073ee745712dde039
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Mon Dec 28 10:24:23 EST 2020

do not include C files anymore

--- a/icy.c
+++ b/icy.c
@@ -1,3 +1,9 @@
+#include <u.h>
+#include <libc.h>
+#include <bio.h>
+#include "plist.h"
+#include "icy.h"
+
 int
 icyfill(Meta *m)
 {
--- /dev/null
+++ b/icy.h
@@ -1,0 +1,1 @@
+int icyfill(Meta *m);
--- a/mkfile
+++ b/mkfile
@@ -7,6 +7,8 @@
 
 HFILES=\
 	plist.h\
+	icy.h\
+	theme.h\
 	/sys/include/tags.h\
 
 UPDATE=\
@@ -15,5 +17,9 @@
 BIN=/$objtype/bin/audio
 
 default:V: all
+
+$O.mkplist: icy.$O mkplist.$O
+
+$O.zuke: theme.$O zuke.$O
 
 </sys/src/cmd/mkmany
--- a/mkplist.c
+++ b/mkplist.c
@@ -3,7 +3,7 @@
 #include <bio.h>
 #include <tags.h>
 #include "plist.h"
-#include "icy.c"
+#include "icy.h"
 
 enum
 {
--- a/theme.c
+++ b/theme.c
@@ -41,7 +41,7 @@
 	threadexits("exec: %r");
 }
 
-static void
+void
 themeproc(void *)
 {
 	Biobuf *b;
--- a/theme.h
+++ b/theme.h
@@ -20,3 +20,6 @@
 };
 
 extern ThemeColor colors[Numcolors];
+
+void themeproc(void *);
+void themeinit(void);
--- a/zuke.c
+++ b/zuke.c
@@ -1,8 +1,13 @@
-#include "theme.c"
+#include <u.h>
+#include <libc.h>
+#include <bio.h>
+#include <thread.h>
+#include <draw.h>
 #include <mouse.h>
 #include <keyboard.h>
 #include <ctype.h>
 #include "plist.h"
+#include "theme.h"
 
 #define MAX(a,b) ((a)>=(b)?(a):(b))
 #define MIN(a,b) ((a)<=(b)?(a):(b))