This commit is contained in:
charnier 1998-04-01 06:14:35 +00:00
parent 618813ddb0
commit c62af0d470
3 changed files with 22 additions and 4 deletions

View File

@ -30,6 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)mille.6 8.2 (Berkeley) 12/30/93
.\" $Id$
.\"
.TH MILLE 6 "December 30, 1993"
.UC 4

View File

@ -32,13 +32,17 @@
*/
#ifndef lint
static char copyright[] =
static const char copyright[] =
"@(#) Copyright (c) 1982, 1993\n\
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
#ifndef lint
#if 0
static char sccsid[] = "@(#)mille.c 8.1 (Berkeley) 5/31/93";
#endif
static const char rcsid[] =
"$Id$";
#endif /* not lint */
# include "mille.h"
@ -51,8 +55,12 @@ static char sccsid[] = "@(#)mille.c 8.1 (Berkeley) 5/31/93";
* @(#)mille.c 1.3 (Berkeley) 5/10/83
*/
void check_more __P((void));
void die __P((int));
void rub();
static void usage __P((void));
int
main(ac, av)
reg int ac;
reg char *av[]; {
@ -75,8 +83,7 @@ reg char *av[]; {
case 1:
break;
default:
printf("usage: milles [ restore_file ]\n");
exit(-1);
usage();
/* NOTREACHED */
}
Play = PLAYER;
@ -131,6 +138,13 @@ reg char *av[]; {
}
}
static void
usage()
{
fprintf(stderr, "usage: mille [restore_file]\n");
exit(1);
}
/*
* Routine to trap rubouts, and make sure they really want to
* quit.
@ -147,6 +161,7 @@ rub() {
/*
* Time to go beddy-by
*/
void
die(code)
int code; {

View File

@ -215,7 +215,9 @@ register int promptno; {
* came from a saved file, make sure that they don't want to restore
* it. Exit appropriately.
*/
check_more() {
void
check_more()
{
On_exit = TRUE;
if (Player[PLAYER].total >= 5000 || Player[COMP].total >= 5000)