static const char *epicycle_defaults [] = {
".background: black",
".foreground: white",
+ "*fpsSolid: true",
"*colors: 100",
"*color0: red",
- "*delay: 1000",
+ "*delay: 20000",
"*holdtime: 2",
"*lineWidth: 4",
"*minCircles: 2",
}
-static void
-oom(struct state *st)
-{
- fprintf(stderr, "Failed to allocate memory!\n");
- exit(-1);
-}
-
-
/* Construct a circle or die.
*/
static Circle *
new_body(struct state *st)
{
Body *p = malloc(sizeof(Body));
- if (NULL == p)
- oom(st);
+ if (!p) abort();
p->epicycles = new_circle_chain(st);
p->current_color = 0; /* ?? start them all on different colors? */
p->next = NULL;
if (!mono_p)
{
st->colors = (XColor *) malloc(sizeof(*st->colors) * (st->ncolors+1));
- if (!st->colors)
- oom(st);
+ if (!st->colors) abort();
make_smooth_colormap (st->dpy, pxgwa->visual, st->cmap, st->colors, &st->ncolors,
True, /* allocate */