mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtscreen: convert K&R prototypes to ansi C
This commit is contained in:
parent
5c8f66a07d
commit
d53a979639
14 changed files with 56 additions and 137 deletions
|
@ -44,14 +44,12 @@
|
||||||
|
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
void
|
void
|
||||||
drawblank(pwin)
|
drawblank(perwindow *pwin)
|
||||||
perwindow *pwin;
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
initblank(pwin)
|
initblank(perwindow *pwin)
|
||||||
perwindow *pwin;
|
|
||||||
{
|
{
|
||||||
XClearWindow(dsp, pwin->w);
|
XClearWindow(dsp, pwin->w);
|
||||||
}
|
}
|
||||||
|
|
|
@ -150,7 +150,7 @@ error(s1, s2)
|
||||||
* Restore all grabs, reset screensaver, restore colormap, close connection.
|
* Restore all grabs, reset screensaver, restore colormap, close connection.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
finish()
|
finish(void)
|
||||||
{
|
{
|
||||||
XSync(dsp, False);
|
XSync(dsp, False);
|
||||||
if (winprop)
|
if (winprop)
|
||||||
|
@ -161,7 +161,7 @@ finish()
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
justDisplay()
|
justDisplay(void)
|
||||||
{
|
{
|
||||||
XEvent event;
|
XEvent event;
|
||||||
int window;
|
int window;
|
||||||
|
@ -186,10 +186,7 @@ justDisplay()
|
||||||
|
|
||||||
|
|
||||||
long
|
long
|
||||||
allocpixel(cmap, name, def)
|
allocpixel(Colormap cmap, char *name, char *def)
|
||||||
Colormap cmap;
|
|
||||||
char *name;
|
|
||||||
char *def;
|
|
||||||
{
|
{
|
||||||
XColor col;
|
XColor col;
|
||||||
XColor tmp;
|
XColor tmp;
|
||||||
|
@ -214,9 +211,7 @@ allocpixel(cmap, name, def)
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
main(argc, argv)
|
main(int argc, char *argv[])
|
||||||
int argc;
|
|
||||||
char *argv[];
|
|
||||||
{
|
{
|
||||||
XSetWindowAttributes xswa;
|
XSetWindowAttributes xswa;
|
||||||
XGCValues xgcv;
|
XGCValues xgcv;
|
||||||
|
|
|
@ -65,8 +65,7 @@ typedef struct {
|
||||||
} flamestruct;
|
} flamestruct;
|
||||||
|
|
||||||
static short
|
static short
|
||||||
halfrandom(mv)
|
halfrandom(int mv)
|
||||||
int mv;
|
|
||||||
{
|
{
|
||||||
static short lasthalf = 0;
|
static short lasthalf = 0;
|
||||||
unsigned long r;
|
unsigned long r;
|
||||||
|
@ -82,8 +81,7 @@ halfrandom(mv)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
initflame(pwin)
|
initflame(perwindow *pwin)
|
||||||
perwindow *pwin;
|
|
||||||
{
|
{
|
||||||
XWindowAttributes xwa;
|
XWindowAttributes xwa;
|
||||||
flamestruct *fs;
|
flamestruct *fs;
|
||||||
|
@ -113,11 +111,8 @@ initflame(pwin)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static Bool
|
static Bool
|
||||||
recurse(fs, x, y, l)
|
recurse(flamestruct *fs, double x, double y, int l)
|
||||||
flamestruct *fs;
|
|
||||||
register double x, y;
|
|
||||||
register int l;
|
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
double nx, ny;
|
double nx, ny;
|
||||||
|
@ -154,8 +149,7 @@ recurse(fs, x, y, l)
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
drawflame(pwin)
|
drawflame(perwindow *pwin)
|
||||||
perwindow *pwin;
|
|
||||||
{
|
{
|
||||||
flamestruct *fs = (flamestruct *)pwin->data;
|
flamestruct *fs = (flamestruct *)pwin->data;
|
||||||
|
|
||||||
|
|
|
@ -72,8 +72,7 @@ static XPoint *pointBuffer = 0; /* pointer for XDrawPoints */
|
||||||
#define TIMEOUT 30
|
#define TIMEOUT 30
|
||||||
|
|
||||||
void
|
void
|
||||||
inithop(pwin)
|
inithop(perwindow *pwin)
|
||||||
perwindow *pwin;
|
|
||||||
{
|
{
|
||||||
double range;
|
double range;
|
||||||
XWindowAttributes xgwa;
|
XWindowAttributes xgwa;
|
||||||
|
@ -112,8 +111,7 @@ inithop(pwin)
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
drawhop(pwin)
|
drawhop(perwindow *pwin)
|
||||||
perwindow *pwin;
|
|
||||||
{
|
{
|
||||||
double oldj;
|
double oldj;
|
||||||
int k = batchcount;
|
int k = batchcount;
|
||||||
|
|
|
@ -113,18 +113,10 @@ hsb2rgb(H, S, B, r, g, b)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void
|
void
|
||||||
hsbramp(h1, s1, b1, h2, s2, b2, count, red, green, blue)
|
hsbramp(double h1, double s1, double b1,
|
||||||
double h1,
|
double h2, double s2, double b2,
|
||||||
s1,
|
int count,
|
||||||
b1,
|
u_char *red, u_char *green, u_char *blue)
|
||||||
h2,
|
|
||||||
s2,
|
|
||||||
b2;
|
|
||||||
int count;
|
|
||||||
|
|
||||||
u_char *red,
|
|
||||||
*green,
|
|
||||||
*blue;
|
|
||||||
{
|
{
|
||||||
double dh;
|
double dh;
|
||||||
double ds;
|
double ds;
|
||||||
|
|
|
@ -72,8 +72,7 @@ typedef struct {
|
||||||
} imagestruct;
|
} imagestruct;
|
||||||
|
|
||||||
void
|
void
|
||||||
drawimage(pwin)
|
drawimage(perwindow *pwin)
|
||||||
perwindow *pwin;
|
|
||||||
{
|
{
|
||||||
imagestruct *ip;
|
imagestruct *ip;
|
||||||
int i;
|
int i;
|
||||||
|
@ -106,8 +105,7 @@ drawimage(pwin)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
initimage(pwin)
|
initimage(perwindow *pwin)
|
||||||
perwindow *pwin;
|
|
||||||
{
|
{
|
||||||
XWindowAttributes xgwa;
|
XWindowAttributes xgwa;
|
||||||
imagestruct *ip;
|
imagestruct *ip;
|
||||||
|
|
|
@ -321,9 +321,7 @@ const int patterns[][128] = {
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
drawcell(pwin, row, col)
|
drawcell(perwindow *pwin, int row, int col)
|
||||||
perwindow *pwin;
|
|
||||||
int row, col;
|
|
||||||
{
|
{
|
||||||
lifestruct *lp;
|
lifestruct *lp;
|
||||||
|
|
||||||
|
@ -352,9 +350,7 @@ drawcell(pwin, row, col)
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
erasecell(pwin, row, col)
|
erasecell(perwindow *pwin, int row, int col)
|
||||||
perwindow *pwin;
|
|
||||||
int row, col;
|
|
||||||
{
|
{
|
||||||
lifestruct *lp = (lifestruct *)pwin->data;
|
lifestruct *lp = (lifestruct *)pwin->data;
|
||||||
XSetForeground(dsp, pwin->gc, BlackPixelOfScreen(pwin->perscreen->screen));
|
XSetForeground(dsp, pwin->gc, BlackPixelOfScreen(pwin->perscreen->screen));
|
||||||
|
@ -364,9 +360,7 @@ erasecell(pwin, row, col)
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
spawn(pwin, loc)
|
spawn(perwindow *pwin, unsigned char *loc)
|
||||||
perwindow *pwin;
|
|
||||||
unsigned char *loc;
|
|
||||||
{
|
{
|
||||||
lifestruct *lp = (lifestruct *)pwin->data;
|
lifestruct *lp = (lifestruct *)pwin->data;
|
||||||
unsigned char *ulloc, *ucloc, *urloc, *clloc, *crloc, *llloc, *lcloc, *lrloc,
|
unsigned char *ulloc, *ucloc, *urloc, *clloc, *crloc, *llloc, *lcloc, *lrloc,
|
||||||
|
@ -421,9 +415,7 @@ spawn(pwin, loc)
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
life_kill(pwin, loc)
|
life_kill(perwindow *pwin, unsigned char *loc)
|
||||||
perwindow *pwin;
|
|
||||||
unsigned char *loc;
|
|
||||||
{
|
{
|
||||||
lifestruct *lp = (lifestruct *)pwin->data;
|
lifestruct *lp = (lifestruct *)pwin->data;
|
||||||
|
|
||||||
|
@ -478,10 +470,7 @@ life_kill(pwin, loc)
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
setcell(pwin, row, col)
|
setcell(perwindow *pwin, int row, int col)
|
||||||
perwindow *pwin;
|
|
||||||
int row;
|
|
||||||
int col;
|
|
||||||
{
|
{
|
||||||
lifestruct *lp = (lifestruct *)pwin->data;
|
lifestruct *lp = (lifestruct *)pwin->data;
|
||||||
unsigned char *loc;
|
unsigned char *loc;
|
||||||
|
@ -493,7 +482,7 @@ setcell(pwin, row, col)
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
init_fates()
|
init_fates(void)
|
||||||
{
|
{
|
||||||
int i, bits, neighbors;
|
int i, bits, neighbors;
|
||||||
|
|
||||||
|
@ -512,8 +501,7 @@ init_fates()
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
initlife(pwin)
|
initlife(perwindow *pwin)
|
||||||
perwindow *pwin;
|
|
||||||
{
|
{
|
||||||
int row, col;
|
int row, col;
|
||||||
int *patptr;
|
int *patptr;
|
||||||
|
@ -580,8 +568,7 @@ initlife(pwin)
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
drawlife(pwin)
|
drawlife(perwindow *pwin)
|
||||||
perwindow *pwin;
|
|
||||||
{
|
{
|
||||||
unsigned char *loc, *temploc, *lastloc;
|
unsigned char *loc, *temploc, *lastloc;
|
||||||
int row, col;
|
int row, col;
|
||||||
|
|
|
@ -143,8 +143,7 @@ static int orig_p_ignite;
|
||||||
static int just_started = True;/* Greet the user right away */
|
static int just_started = True;/* Greet the user right away */
|
||||||
|
|
||||||
void
|
void
|
||||||
initpyro(pwin)
|
initpyro(perwindow *pwin)
|
||||||
perwindow *pwin;
|
|
||||||
{
|
{
|
||||||
pyrostruct *pp;
|
pyrostruct *pp;
|
||||||
rocket *rp;
|
rocket *rp;
|
||||||
|
@ -210,8 +209,7 @@ initpyro(pwin)
|
||||||
|
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
void
|
void
|
||||||
drawpyro(pwin)
|
drawpyro(perwindow *pwin)
|
||||||
perwindow *pwin;
|
|
||||||
{
|
{
|
||||||
pyrostruct *pp;
|
pyrostruct *pp;
|
||||||
rocket *rp;
|
rocket *rp;
|
||||||
|
@ -239,9 +237,7 @@ drawpyro(pwin)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
ignite(pwin, pp)
|
ignite(perwindow *pwin, pyrostruct *pp)
|
||||||
perwindow *pwin;
|
|
||||||
pyrostruct *pp;
|
|
||||||
{
|
{
|
||||||
rocket *rp;
|
rocket *rp;
|
||||||
int multi, shelltype, nstars, fuse, npix, pix, color1, color2;
|
int multi, shelltype, nstars, fuse, npix, pix, color1, color2;
|
||||||
|
@ -292,10 +288,7 @@ ignite(pwin, pp)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
animate(pwin, pp, rp)
|
animate(perwindow *pwin, pyrostruct *pp, rocket *rp)
|
||||||
perwindow *pwin;
|
|
||||||
pyrostruct *pp;
|
|
||||||
rocket *rp;
|
|
||||||
{
|
{
|
||||||
int starn;
|
int starn;
|
||||||
float r, theta;
|
float r, theta;
|
||||||
|
@ -329,10 +322,7 @@ animate(pwin, pp, rp)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
shootup(pwin, pp, rp)
|
shootup(perwindow *pwin, pyrostruct *pp, rocket *rp)
|
||||||
perwindow *pwin;
|
|
||||||
pyrostruct *pp;
|
|
||||||
rocket *rp;
|
|
||||||
{
|
{
|
||||||
XFillRectangle(dsp, pwin->w, pp->bgGC, (int) (rp->x), (int) (rp->y),
|
XFillRectangle(dsp, pwin->w, pp->bgGC, (int) (rp->x), (int) (rp->y),
|
||||||
ROCKETW, ROCKETH + 3);
|
ROCKETW, ROCKETH + 3);
|
||||||
|
@ -350,10 +340,7 @@ shootup(pwin, pp, rp)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
burst(pwin, pp, rp)
|
burst(perwindow *pwin, pyrostruct *pp, rocket *rp)
|
||||||
perwindow *pwin;
|
|
||||||
pyrostruct *pp;
|
|
||||||
rocket *rp;
|
|
||||||
{
|
{
|
||||||
register int starn;
|
register int starn;
|
||||||
register int nstars, stype;
|
register int nstars, stype;
|
||||||
|
|
|
@ -78,8 +78,7 @@ typedef struct {
|
||||||
} qixstruct;
|
} qixstruct;
|
||||||
|
|
||||||
void
|
void
|
||||||
initqix(pwin)
|
initqix(perwindow *pwin)
|
||||||
perwindow *pwin;
|
|
||||||
{
|
{
|
||||||
XWindowAttributes xgwa;
|
XWindowAttributes xgwa;
|
||||||
qixstruct *qp;
|
qixstruct *qp;
|
||||||
|
@ -128,8 +127,7 @@ initqix(pwin)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
drawqix(pwin)
|
drawqix(perwindow *pwin)
|
||||||
perwindow *pwin;
|
|
||||||
{
|
{
|
||||||
qixstruct *qp = (qixstruct *)pwin->data;
|
qixstruct *qp = (qixstruct *)pwin->data;
|
||||||
|
|
||||||
|
|
|
@ -239,8 +239,7 @@ static argtype modevars[] = {
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
Syntax(badOption)
|
Syntax(char *badOption)
|
||||||
char *badOption;
|
|
||||||
{
|
{
|
||||||
int col, len, i;
|
int col, len, i;
|
||||||
|
|
||||||
|
@ -295,7 +294,7 @@ Syntax(badOption)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
Help()
|
Help(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -331,7 +330,7 @@ Help()
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
DumpResources()
|
DumpResources(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -354,8 +353,7 @@ DumpResources()
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
LowerString(s)
|
LowerString(char *s)
|
||||||
char *s;
|
|
||||||
{
|
{
|
||||||
|
|
||||||
while (*s) {
|
while (*s) {
|
||||||
|
@ -366,16 +364,9 @@ LowerString(s)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
GetResource(database, parentname, parentclass,
|
GetResource(XrmDatabase database, char *parentname, char *parentclass,
|
||||||
name, class, valueType, def, valuep)
|
char *name, char *class, int valueType, char *def,
|
||||||
XrmDatabase database;
|
caddr_t *valuep /* RETURN */)
|
||||||
char *parentname;
|
|
||||||
char *parentclass;
|
|
||||||
char *name;
|
|
||||||
char *class;
|
|
||||||
int valueType;
|
|
||||||
char *def;
|
|
||||||
caddr_t *valuep; /* RETURN */
|
|
||||||
{
|
{
|
||||||
char *type;
|
char *type;
|
||||||
XrmValue value;
|
XrmValue value;
|
||||||
|
@ -435,10 +426,7 @@ GetResource(database, parentname, parentclass,
|
||||||
|
|
||||||
|
|
||||||
static XrmDatabase
|
static XrmDatabase
|
||||||
parsefilepath(xfilesearchpath, TypeName, ClassName)
|
parsefilepath(char *xfilesearchpath, char *TypeName, char *ClassName)
|
||||||
char *xfilesearchpath;
|
|
||||||
char *TypeName;
|
|
||||||
char *ClassName;
|
|
||||||
{
|
{
|
||||||
XrmDatabase database = NULL;
|
XrmDatabase database = NULL;
|
||||||
char appdefaults[1024];
|
char appdefaults[1024];
|
||||||
|
@ -497,15 +485,14 @@ parsefilepath(xfilesearchpath, TypeName, ClassName)
|
||||||
/** **/
|
/** **/
|
||||||
/** this function will exit cleanly when the connection is broken **/
|
/** this function will exit cleanly when the connection is broken **/
|
||||||
/*******************************************************************/
|
/*******************************************************************/
|
||||||
static int screenIOErrorHandler(dpy)
|
static int screenIOErrorHandler(Display *dpy)
|
||||||
Display *dpy;
|
|
||||||
{
|
{
|
||||||
exit(1);
|
exit(1);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
open_display()
|
open_display(void)
|
||||||
{
|
{
|
||||||
if (display != NULL) {
|
if (display != NULL) {
|
||||||
char *colon = strchr(display, ':');
|
char *colon = strchr(display, ':');
|
||||||
|
@ -538,9 +525,7 @@ open_display()
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
printvar(class, var)
|
printvar(char *class, argtype var)
|
||||||
char *class;
|
|
||||||
argtype var;
|
|
||||||
{
|
{
|
||||||
switch (var.type) {
|
switch (var.type) {
|
||||||
case t_String:
|
case t_String:
|
||||||
|
@ -565,9 +550,7 @@ printvar(class, var)
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
GetResources(argc, argv)
|
GetResources(int argc, char *argv[])
|
||||||
int argc;
|
|
||||||
char *argv[];
|
|
||||||
{
|
{
|
||||||
XrmDatabase RDB = NULL;
|
XrmDatabase RDB = NULL;
|
||||||
XrmDatabase modeDB = NULL;
|
XrmDatabase modeDB = NULL;
|
||||||
|
|
|
@ -101,8 +101,7 @@ typedef struct flightstruct {
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
initrotor(pwin)
|
initrotor(perwindow *pwin)
|
||||||
perwindow *pwin;
|
|
||||||
{
|
{
|
||||||
flightstruct *fs;
|
flightstruct *fs;
|
||||||
XWindowAttributes xgwa;
|
XWindowAttributes xgwa;
|
||||||
|
@ -167,8 +166,7 @@ initrotor(pwin)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
drawrotor(pwin)
|
drawrotor(perwindow *pwin)
|
||||||
perwindow *pwin;
|
|
||||||
{
|
{
|
||||||
register flightstruct *fs;
|
register flightstruct *fs;
|
||||||
register struct elem *pelem;
|
register struct elem *pelem;
|
||||||
|
|
|
@ -72,8 +72,7 @@ typedef struct {
|
||||||
} swarmstruct;
|
} swarmstruct;
|
||||||
|
|
||||||
void
|
void
|
||||||
initswarm(pwin)
|
initswarm(perwindow *pwin)
|
||||||
perwindow *pwin;
|
|
||||||
{
|
{
|
||||||
XWindowAttributes xgwa;
|
XWindowAttributes xgwa;
|
||||||
swarmstruct *sp;
|
swarmstruct *sp;
|
||||||
|
@ -127,8 +126,7 @@ initswarm(pwin)
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
drawswarm(pwin)
|
drawswarm(perwindow *pwin)
|
||||||
perwindow *pwin;
|
|
||||||
{
|
{
|
||||||
swarmstruct *sp;
|
swarmstruct *sp;
|
||||||
int b;
|
int b;
|
||||||
|
|
|
@ -62,7 +62,7 @@ usleep(unsigned long usec)
|
||||||
* This is used to control rate and timeout in many of the animations.
|
* This is used to control rate and timeout in many of the animations.
|
||||||
*/
|
*/
|
||||||
long
|
long
|
||||||
seconds()
|
seconds(void)
|
||||||
{
|
{
|
||||||
struct timeval now;
|
struct timeval now;
|
||||||
|
|
||||||
|
|
|
@ -90,8 +90,7 @@ typedef struct {
|
||||||
|
|
||||||
#if !defined(CSRG_BASED) && !defined(sun)
|
#if !defined(CSRG_BASED) && !defined(sun)
|
||||||
int
|
int
|
||||||
round(x)
|
round(float x)
|
||||||
float x;
|
|
||||||
{
|
{
|
||||||
return ((int) floor((double) x));
|
return ((int) floor((double) x));
|
||||||
}
|
}
|
||||||
|
@ -99,11 +98,7 @@ round(x)
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
worm_doit(pwin, wp, which, color)
|
worm_doit(perwindow *pwin, wormstruct *wp, int which, unsigned long color)
|
||||||
perwindow *pwin;
|
|
||||||
wormstruct *wp;
|
|
||||||
int which;
|
|
||||||
unsigned long color;
|
|
||||||
{
|
{
|
||||||
wormstuff *ws = &wp->worm[which];
|
wormstuff *ws = &wp->worm[which];
|
||||||
int x, y;
|
int x, y;
|
||||||
|
@ -137,8 +132,7 @@ worm_doit(pwin, wp, which, color)
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
initworm(pwin)
|
initworm(perwindow *pwin)
|
||||||
perwindow *pwin;
|
|
||||||
{
|
{
|
||||||
int i, j;
|
int i, j;
|
||||||
wormstruct *wp;
|
wormstruct *wp;
|
||||||
|
@ -199,8 +193,7 @@ initworm(pwin)
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
drawworm(pwin)
|
drawworm(perwindow *pwin)
|
||||||
perwindow *pwin;
|
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
wormstruct *wp = (wormstruct *)pwin->data;
|
wormstruct *wp = (wormstruct *)pwin->data;
|
||||||
|
|
Loading…
Reference in a new issue