tmore nowsys - plan9port - [fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
commit c4553e9cd0f42874d23d5c99ea68ea57513206b1
parent 52fdc1a5470b984b68afa7392980ef190e74b916
Author: rsc 
Date:   Wed,  2 Feb 2005 22:27:17 +0000

more nowsys

Diffstat:
  M src/libdraw/nowsys-event.c          |      83 +++++++++++++++++++++++++++++++
  M src/libdraw/nowsys-get.c            |       3 +++
  M src/libdraw/nowsys-init.c           |      47 +++++++++++++++++++++++++++++++
  M src/libdraw/nowsys-itrans.c         |       3 +++
  M src/libdraw/nowsys-keyboard.c       |      28 ++++++++++++++++++++++++++++
  M src/libdraw/nowsys-keysym2ucs.c     |       2 ++
  M src/libdraw/nowsys-mouse.c          |      60 +++++++++++++++++++++++++++++++
  M src/libdraw/nowsys-wsys.c           |      24 ++++++++++++++++++++++++

8 files changed, 250 insertions(+), 0 deletions(-)
---
diff --git a/src/libdraw/nowsys-event.c b/src/libdraw/nowsys-event.c
t@@ -0,0 +1,83 @@
+#include 
+#include 
+#include 
+#include 
+#include 
+
+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();
+}
+
diff --git a/src/libdraw/nowsys-get.c b/src/libdraw/nowsys-get.c
t@@ -0,0 +1,3 @@
+/* so that there's *something* in this file */
+int __nowsys__get(void) {return 0;}
+
diff --git a/src/libdraw/nowsys-init.c b/src/libdraw/nowsys-init.c
t@@ -0,0 +1,47 @@
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+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();
+}
+
diff --git a/src/libdraw/nowsys-itrans.c b/src/libdraw/nowsys-itrans.c
t@@ -0,0 +1,3 @@
+/* so that there's *something* in this file */
+int __nowsys__itrans(void) {return 0;}
+
diff --git a/src/libdraw/nowsys-keyboard.c b/src/libdraw/nowsys-keyboard.c
t@@ -0,0 +1,28 @@
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+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;
+}
diff --git a/src/libdraw/nowsys-keysym2ucs.c b/src/libdraw/nowsys-keysym2ucs.c
t@@ -0,0 +1,2 @@
+/* so that there's *something* in this file */
+int __nowsys__itrans(void) {return 0;}
diff --git a/src/libdraw/nowsys-mouse.c b/src/libdraw/nowsys-mouse.c
t@@ -0,0 +1,60 @@
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+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();
+}
+
diff --git a/src/libdraw/nowsys-wsys.c b/src/libdraw/nowsys-wsys.c
t@@ -0,0 +1,24 @@
+#include 
+#include 
+#include 
+
+static int
+bad(void)
+{
+        sysfatal("compiled with no window system support");
+        return 0;
+}
+
+void
+drawtopwindow(void)
+{
+        bad();
+}
+
+void
+drawresizewindow(Rectangle r)
+{
+        USED(r);
+        
+        bad();
+}