Commit Diff


commit - 52fdc1a5470b984b68afa7392980ef190e74b916
commit + c4553e9cd0f42874d23d5c99ea68ea57513206b1
blob - e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
blob + 4695028d8fb082b5b9e361843af6bde41ec30bdf
--- src/libdraw/nowsys-event.c
+++ src/libdraw/nowsys-event.c
@@ -0,0 +1,83 @@
+#include <u.h>
+#include <libc.h>
+#include <draw.h>
+#include <cursor.h>
+#include <event.h>
+
+static int
+bad(void)
+{
+	sysfatal("compiled with no window system support");
+	return 0;
+}
+
+ulong
+event(Event *e)
+{
+	USED(e);
+	return bad();
+}
+
+ulong
+eread(ulong keys, Event *e)
+{
+	USED(keys);
+	USED(e);
+	return bad();
+}
+
+void
+einit(ulong keys)
+{
+	USED(keys);
+	bad();
+}
+
+int
+ekbd(void)
+{
+	return bad();
+}
+
+Mouse
+emouse(void)
+{
+	Mouse m;
+	
+	bad();
+	return m;
+}
+
+int
+ecanread(ulong keys)
+{
+	USED(keys);
+	return bad();
+}
+
+int
+ecanmouse(void)
+{
+	return bad();
+}
+
+int
+ecankbd(void)
+{
+	return bad();
+}
+
+void
+emoveto(Point p)
+{
+	USED(p);
+	bad();
+}
+
+void
+esetcursor(Cursor *c)
+{
+	USED(c);
+	bad();
+}
+
blob - e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
blob + 2481df1823e074de1ba2acd5944f6069517d7793
--- src/libdraw/nowsys-get.c
+++ src/libdraw/nowsys-get.c
@@ -0,0 +1,3 @@
+/* so that there's *something* in this file */
+int __nowsys__get(void) {return 0;}
+
blob - e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
blob + 003238fd05ea796eb399739ce21ee80a3101f35e
--- src/libdraw/nowsys-init.c
+++ src/libdraw/nowsys-init.c
@@ -0,0 +1,47 @@
+#include <u.h>
+#include <libc.h>
+#include <draw.h>
+#include <keyboard.h>
+#include <mouse.h>
+#include <cursor.h>
+
+char *winsize;
+
+static int
+bad(void)
+{
+	sysfatal("compiled with no window system support"):
+	return 0;
+}
+
+Display*
+_initdisplay(void (*error)(Display*, char*), char *label)
+{
+	USED(error);
+	USED(label);
+	
+	bad();
+	return nil;
+}
+
+int
+getwindow(Display *d, int ref)
+{
+	USED(d);
+	USED(ref);
+	return bad();
+}
+
+int
+drawsetlabel(char *label)
+{
+	USED(label);
+	return bad();
+}
+
+void
+_flushmemscreen(Rectangle r)
+{
+	bad();
+}
+
blob - e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
blob + 117e1627f2535e105e47add497410bc1f86da3b5
--- src/libdraw/nowsys-itrans.c
+++ src/libdraw/nowsys-itrans.c
@@ -0,0 +1,3 @@
+/* so that there's *something* in this file */
+int __nowsys__itrans(void) {return 0;}
+
blob - e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
blob + 0c394e6dfa1037bafa6931ff2f76829fe1255343
--- src/libdraw/nowsys-keyboard.c
+++ src/libdraw/nowsys-keyboard.c
@@ -0,0 +1,28 @@
+#include <u.h>
+#include <libc.h>
+#include <draw.h>
+#include <thread.h>
+#include <cursor.h>
+#include <mouse.h>
+
+static int
+bad(void)
+{
+	sysfatal("compiled with no window system support");
+	return 0;
+}
+
+void
+closekeyboard(Keyboardctl *mc)
+{
+	USED(mc);
+	bad();
+}
+
+Keyboardctl*
+initkeyboard(char *file)
+{
+	USED(file);
+	bad();
+	return nil;
+}
blob - e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
blob + fa8ac518ee992e4b9efa340828d474a5c8636ef0
--- src/libdraw/nowsys-keysym2ucs.c
+++ src/libdraw/nowsys-keysym2ucs.c
@@ -0,0 +1,2 @@
+/* so that there's *something* in this file */
+int __nowsys__itrans(void) {return 0;}
blob - e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
blob + d76de555f9342a53a55918b6a51abcb49a1d2da9
--- src/libdraw/nowsys-mouse.c
+++ src/libdraw/nowsys-mouse.c
@@ -0,0 +1,60 @@
+#include <u.h>
+#include <libc.h>
+#include <draw.h>
+#include <thread.h>
+#include <cursor.h>
+#include <mouse.h>
+
+static int
+bad(void)
+{
+	sysfatal("compiled with no window system support");
+	return 0;
+}
+
+void
+moveto(Mousectl *m, Point pt)
+{
+	USED(m);
+	USED(pt);
+	bad();
+}
+
+void
+closemouse(Mousectl *mc)
+{
+	USED(mc);
+	bad();
+}
+
+int
+readmouse(Mousectl *mc)
+{
+	USED(mc);
+	return bad();
+}
+
+Mousectl*
+initmouse(char *file, Image *i)
+{
+	USED(file);
+	USED(i);
+	bad();
+	return nil;
+}
+
+void
+setcursor(Mousectl *mc, Cursor *c)
+{
+	USED(mc);
+	USED(c);
+	bad();
+}
+
+void
+bouncemouse(Mouse *m)
+{
+	USED(m);
+	bad();
+}
+
blob - e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
blob + 2127dca03d5f873487cd95fecb12185f1b8fb632
--- src/libdraw/nowsys-wsys.c
+++ src/libdraw/nowsys-wsys.c
@@ -0,0 +1,24 @@
+#include <u.h>
+#include <libc.h>
+#include <draw.h>
+
+static int
+bad(void)
+{
+	sysfatal("compiled with no window system support");
+	return 0;
+}
+
+void
+drawtopwindow(void)
+{
+	bad();
+}
+
+void
+drawresizewindow(Rectangle r)
+{
+	USED(r);
+	
+	bad();
+}