more nowsys
This commit is contained in:
parent
52fdc1a547
commit
c4553e9cd0
8 changed files with 250 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/* so that there's *something* in this file */
|
||||
int __nowsys__get(void) {return 0;}
|
||||
|
||||
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/* so that there's *something* in this file */
|
||||
int __nowsys__itrans(void) {return 0;}
|
||||
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
/* so that there's *something* in this file */
|
||||
int __nowsys__itrans(void) {return 0;}
|
||||
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
@ -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();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue