-/* $NetBSD: pl_main.c,v 1.9 2001/01/01 22:23:29 jwise Exp $ */
+/* $NetBSD: pl_main.c,v 1.16 2003/08/07 09:37:44 agc Exp $ */
/*
* Copyright (c) 1983, 1993
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
+ * 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
#if 0
static char sccsid[] = "@(#)pl_main.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: pl_main.c,v 1.9 2001/01/01 22:23:29 jwise Exp $");
+__RCSID("$NetBSD: pl_main.c,v 1.16 2003/08/07 09:37:44 agc Exp $");
#endif
#endif /* not lint */
-#include "player.h"
-#include <sys/types.h>
-#include <sys/wait.h>
+#include <setjmp.h>
+#include <signal.h>
+#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
+#include "extern.h"
+#include "player.h"
+#include "restart.h"
+
+static void initialize(void);
/*ARGSUSED*/
int
return 0; /* for lint, play() never returns */
}
-void
+static void
initialize(void)
{
- register struct File *fp;
- register struct ship *sp;
+ struct File *fp;
+ struct ship *sp;
char captain[80];
char message[60];
int load;
- register int n;
+ int n;
char *nameptr;
int nat[NNATION];