/*ARGSUSED*/
void
-drawblank(pwin)
- perwindow *pwin;
+drawblank(perwindow *pwin)
{
}
void
-initblank(pwin)
- perwindow *pwin;
+initblank(perwindow *pwin)
{
XClearWindow(dsp, pwin->w);
}
* Restore all grabs, reset screensaver, restore colormap, close connection.
*/
static void
-finish()
+finish(void)
{
XSync(dsp, False);
if (winprop)
static void
-justDisplay()
+justDisplay(void)
{
XEvent event;
int window;
long
-allocpixel(cmap, name, def)
- Colormap cmap;
- char *name;
- char *def;
+allocpixel(Colormap cmap, char *name, char *def)
{
XColor col;
XColor tmp;
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
XSetWindowAttributes xswa;
XGCValues xgcv;
} flamestruct;
static short
-halfrandom(mv)
- int mv;
+halfrandom(int mv)
{
static short lasthalf = 0;
unsigned long r;
}
void
-initflame(pwin)
- perwindow *pwin;
+initflame(perwindow *pwin)
{
XWindowAttributes xwa;
flamestruct *fs;
}
}
-static Bool
-recurse(fs, x, y, l)
- flamestruct *fs;
- register double x, y;
- register int l;
+static Bool
+recurse(flamestruct *fs, double x, double y, int l)
{
int i;
double nx, ny;
void
-drawflame(pwin)
- perwindow *pwin;
+drawflame(perwindow *pwin)
{
flamestruct *fs = (flamestruct *)pwin->data;
#define TIMEOUT 30
void
-inithop(pwin)
- perwindow *pwin;
+inithop(perwindow *pwin)
{
double range;
XWindowAttributes xgwa;
void
-drawhop(pwin)
- perwindow *pwin;
+drawhop(perwindow *pwin)
{
double oldj;
int k = batchcount;
*/
void
-hsbramp(h1, s1, b1, h2, s2, b2, count, red, green, blue)
- double h1,
- s1,
- b1,
- h2,
- s2,
- b2;
- int count;
-
- u_char *red,
- *green,
- *blue;
+hsbramp(double h1, double s1, double b1,
+ double h2, double s2, double b2,
+ int count,
+ u_char *red, u_char *green, u_char *blue)
{
double dh;
double ds;
} imagestruct;
void
-drawimage(pwin)
- perwindow *pwin;
+drawimage(perwindow *pwin)
{
imagestruct *ip;
int i;
}
void
-initimage(pwin)
- perwindow *pwin;
+initimage(perwindow *pwin)
{
XWindowAttributes xgwa;
imagestruct *ip;
static void
-drawcell(pwin, row, col)
- perwindow *pwin;
- int row, col;
+drawcell(perwindow *pwin, int row, int col)
{
lifestruct *lp;
static void
-erasecell(pwin, row, col)
- perwindow *pwin;
- int row, col;
+erasecell(perwindow *pwin, int row, int col)
{
lifestruct *lp = (lifestruct *)pwin->data;
XSetForeground(dsp, pwin->gc, BlackPixelOfScreen(pwin->perscreen->screen));
static void
-spawn(pwin, loc)
- perwindow *pwin;
- unsigned char *loc;
+spawn(perwindow *pwin, unsigned char *loc)
{
lifestruct *lp = (lifestruct *)pwin->data;
unsigned char *ulloc, *ucloc, *urloc, *clloc, *crloc, *llloc, *lcloc, *lrloc,
static void
-life_kill(pwin, loc)
- perwindow *pwin;
- unsigned char *loc;
+life_kill(perwindow *pwin, unsigned char *loc)
{
lifestruct *lp = (lifestruct *)pwin->data;
static void
-setcell(pwin, row, col)
- perwindow *pwin;
- int row;
- int col;
+setcell(perwindow *pwin, int row, int col)
{
lifestruct *lp = (lifestruct *)pwin->data;
unsigned char *loc;
static void
-init_fates()
+init_fates(void)
{
int i, bits, neighbors;
void
-initlife(pwin)
- perwindow *pwin;
+initlife(perwindow *pwin)
{
int row, col;
int *patptr;
void
-drawlife(pwin)
- perwindow *pwin;
+drawlife(perwindow *pwin)
{
unsigned char *loc, *temploc, *lastloc;
int row, col;
static int just_started = True;/* Greet the user right away */
void
-initpyro(pwin)
- perwindow *pwin;
+initpyro(perwindow *pwin)
{
pyrostruct *pp;
rocket *rp;
/*ARGSUSED*/
void
-drawpyro(pwin)
- perwindow *pwin;
+drawpyro(perwindow *pwin)
{
pyrostruct *pp;
rocket *rp;
}
static void
-ignite(pwin, pp)
- perwindow *pwin;
- pyrostruct *pp;
+ignite(perwindow *pwin, pyrostruct *pp)
{
rocket *rp;
int multi, shelltype, nstars, fuse, npix, pix, color1, color2;
}
static void
-animate(pwin, pp, rp)
- perwindow *pwin;
- pyrostruct *pp;
- rocket *rp;
+animate(perwindow *pwin, pyrostruct *pp, rocket *rp)
{
int starn;
float r, theta;
}
static void
-shootup(pwin, pp, rp)
- perwindow *pwin;
- pyrostruct *pp;
- rocket *rp;
+shootup(perwindow *pwin, pyrostruct *pp, rocket *rp)
{
XFillRectangle(dsp, pwin->w, pp->bgGC, (int) (rp->x), (int) (rp->y),
ROCKETW, ROCKETH + 3);
}
static void
-burst(pwin, pp, rp)
- perwindow *pwin;
- pyrostruct *pp;
- rocket *rp;
+burst(perwindow *pwin, pyrostruct *pp, rocket *rp)
{
register int starn;
register int nstars, stype;
} qixstruct;
void
-initqix(pwin)
- perwindow *pwin;
+initqix(perwindow *pwin)
{
XWindowAttributes xgwa;
qixstruct *qp;
}
void
-drawqix(pwin)
- perwindow *pwin;
+drawqix(perwindow *pwin)
{
qixstruct *qp = (qixstruct *)pwin->data;
static void
-Syntax(badOption)
- char *badOption;
+Syntax(char *badOption)
{
int col, len, i;
}
static void
-Help()
+Help(void)
{
int i;
}
static void
-DumpResources()
+DumpResources(void)
{
int i;
static void
-LowerString(s)
- char *s;
+LowerString(char *s)
{
while (*s) {
}
static void
-GetResource(database, parentname, parentclass,
- name, class, valueType, def, valuep)
- XrmDatabase database;
- char *parentname;
- char *parentclass;
- char *name;
- char *class;
- int valueType;
- char *def;
- caddr_t *valuep; /* RETURN */
+GetResource(XrmDatabase database, char *parentname, char *parentclass,
+ char *name, char *class, int valueType, char *def,
+ caddr_t *valuep /* RETURN */)
{
char *type;
XrmValue value;
static XrmDatabase
-parsefilepath(xfilesearchpath, TypeName, ClassName)
- char *xfilesearchpath;
- char *TypeName;
- char *ClassName;
+parsefilepath(char *xfilesearchpath, char *TypeName, char *ClassName)
{
XrmDatabase database = NULL;
char appdefaults[1024];
/** **/
/** this function will exit cleanly when the connection is broken **/
/*******************************************************************/
-static int screenIOErrorHandler(dpy)
- Display *dpy;
+static int screenIOErrorHandler(Display *dpy)
{
exit(1);
return 1;
}
static void
-open_display()
+open_display(void)
{
if (display != NULL) {
char *colon = strchr(display, ':');
}
void
-printvar(class, var)
- char *class;
- argtype var;
+printvar(char *class, argtype var)
{
switch (var.type) {
case t_String:
void
-GetResources(argc, argv)
- int argc;
- char *argv[];
+GetResources(int argc, char *argv[])
{
XrmDatabase RDB = NULL;
XrmDatabase modeDB = NULL;
void
-initrotor(pwin)
- perwindow *pwin;
+initrotor(perwindow *pwin)
{
flightstruct *fs;
XWindowAttributes xgwa;
}
void
-drawrotor(pwin)
- perwindow *pwin;
+drawrotor(perwindow *pwin)
{
register flightstruct *fs;
register struct elem *pelem;
} swarmstruct;
void
-initswarm(pwin)
- perwindow *pwin;
+initswarm(perwindow *pwin)
{
XWindowAttributes xgwa;
swarmstruct *sp;
void
-drawswarm(pwin)
- perwindow *pwin;
+drawswarm(perwindow *pwin)
{
swarmstruct *sp;
int b;
* This is used to control rate and timeout in many of the animations.
*/
long
-seconds()
+seconds(void)
{
struct timeval now;
#if !defined(CSRG_BASED) && !defined(sun)
int
-round(x)
- float x;
+round(float x)
{
return ((int) floor((double) x));
}
void
-worm_doit(pwin, wp, which, color)
- perwindow *pwin;
- wormstruct *wp;
- int which;
- unsigned long color;
+worm_doit(perwindow *pwin, wormstruct *wp, int which, unsigned long color)
{
wormstuff *ws = &wp->worm[which];
int x, y;
void
-initworm(pwin)
- perwindow *pwin;
+initworm(perwindow *pwin)
{
int i, j;
wormstruct *wp;
void
-drawworm(pwin)
- perwindow *pwin;
+drawworm(perwindow *pwin)
{
int i;
wormstruct *wp = (wormstruct *)pwin->data;