* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
- * $Id: util.c,v 1.27 1996/02/09 08:22:23 mhw Exp $
+ * $Id: util.c,v 1.29 1999/05/16 06:56:33 mhw Exp $
*/
#include "netris.h"
ExtFunc void Usage(void)
{
fprintf(stderr,
- "Netris version %s (C) 1994,1995,1996 Mark H. Weaver <mhw@netris.org>\n"
+ "Netris version %s (C) 1994-1996,1999 Mark H. Weaver <mhw@netris.org>\n"
"Usage: netris <options>\n"
" -h Print usage information\n"
" -w Wait for connection\n"
" -D Drops go into drop mode\n"
" This means that sliding off a cliff after a drop causes\n"
" another drop automatically\n"
- " -S Disable standout mode (inverse/bold) for slow terminals\n"
+ " -S Disable inverse/bold/color for slow terminals\n"
+ " -C Disable color\n"
" -H Show distribution and warranty information\n"
" -R Show rules\n",
version_string, DEFAULT_PORT, DEFAULT_KEYS);
ExtFunc void DistInfo(void)
{
fprintf(stderr,
- "Netris version %s (C) 1994,1995,1996 Mark H. Weaver <mhw@netris.org>\n"
+ "Netris version %s (C) 1994-1996,1999 Mark H. Weaver <mhw@netris.org>\n"
"\n"
"This program is free software; you can redistribute it and/or modify\n"
"it under the terms of the GNU General Public License as published by\n"
ExtFunc void RemoveEventGen(EventGenRec *gen)
{
- assert(gen->next != NULL);
- while (nextGen->next != gen)
- nextGen = nextGen->next;
- nextGen->next = gen->next;
- gen->next = NULL;
+ /* assert(gen->next != NULL); /* Be more forgiving, for SIGINTs */
+ if (gen->next) {
+ while (nextGen->next != gen)
+ nextGen = nextGen->next;
+ nextGen->next = gen->next;
+ gen->next = NULL;
+ }
}
ExtFunc MyEventType WaitMyEvent(MyEvent *event, int mask)