/* bubbles.c - frying pan / soft drink in a glass simulation */
-/*$Id: bubbles.c,v 1.8 1997/07/26 19:16:33 jwz Exp $*/
+/*$Id: bubbles.c,v 1.10 1997/12/03 10:56:13 jwz Exp $*/
/*
* Copyright (C) 1995-1996 James Macnicol
#endif /* BUBBLES_IO */
#include <limits.h>
+
+#ifdef SIGNAL_NONSENSE /* what's this crap doing in here? */
#include <signal.h>
+#endif /* SIGNAL_NONSENSE */
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
"*foreground: white",
"*simple: false",
"*broken: false",
- "*delay: 2000",
+ "*delay: 800",
#ifdef BUBBLES_IO
"*file: (default)",
"*directory: (default)",
}
}
+#ifdef SIGNAL_NONSENSE
static void
onintr(int a)
/* This gets called when SIGINT or SIGTERM is received */
exit(1);
}
#endif /* DEBUG */
+#endif /* SIGNAL_NONSENSE */
/*
/* Make sure pixmaps are freed when program is terminated */
/* This is when I hit ^C */
+#ifdef SIGNAL_NONSENSE
if (signal(SIGINT, SIG_IGN) != SIG_IGN)
signal(SIGINT, onintr);
/* xscreensaver sends SIGTERM */
printf("Didn't set signal hanlder for SIGSEGV\n");
}
#endif /* DEBUG */
+#endif /* SIGNAL_NONSENSE */
for (i = 0; i < num_default_bubbles; i++) {
pixpt = default_bubbles[i];
exit(1);
}
+#ifdef SIGNAL_NONSENSE
/* Make sure pixmaps are freed when program is terminated */
/* This is when I hit ^C */
if (signal(SIGINT, SIG_IGN) != SIG_IGN)
if (signal(SIGSEGV, SIGN_IGN) != SIG_IGN)
signal(SIGSEGV, onsegv);
#endif /* DEBUG */
+#endif /* SIGNAL_NONSENSE */
while (1) {
if (inxpm == 2)