new upstream

git-svn-id: file:///srv/svn/joey/trunk/src/packages/bsdgames@10080 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
joey
2004-02-14 21:35:37 +00:00
parent 26fb70d304
commit a02c126403
224 changed files with 5624 additions and 2217 deletions

View File

@@ -1,4 +1,4 @@
/* $NetBSD: battlestar.c,v 1.13 2003/08/07 09:37:00 agc Exp $ */
/* $NetBSD: battlestar.c,v 1.14 2004/01/27 20:30:29 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\n\
#if 0
static char sccsid[] = "@(#)battlestar.c 8.2 (Berkeley) 4/28/95";
#else
__RCSID("$NetBSD: battlestar.c,v 1.13 2003/08/07 09:37:00 agc Exp $");
__RCSID("$NetBSD: battlestar.c,v 1.14 2004/01/27 20:30:29 jsm Exp $");
#endif
#endif /* not lint */
@@ -52,7 +52,7 @@ __RCSID("$NetBSD: battlestar.c,v 1.13 2003/08/07 09:37:00 agc Exp $");
#include "extern.h"
int main __P((int, char *[]));
int main(int, char *[]);
int
main(argc, argv)

View File

@@ -1,4 +1,4 @@
/* $NetBSD: extern.h,v 1.29 2003/08/07 09:37:02 agc Exp $ */
/* $NetBSD: extern.h,v 1.30 2004/01/27 20:30:29 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -328,60 +328,60 @@ extern const struct objs nightobjs[];
#define DEFAULT_SAVE_FILE ".Bstar"
void bury __P((void));
int card __P((const char *, int));
void chime __P((void));
void convert __P((int));
void crash __P((void));
int cypher __P((void));
void die __P((void)) __attribute__((__noreturn__));
void diesig __P((int)) __attribute__((__noreturn__));
void dig __P((void));
void dooropen __P((void));
int draw __P((void));
void drink __P((void));
int drive __P((void));
int drop __P((const char *));
int eat __P((void));
int fight __P((int, int));
int follow __P((void));
char *getcom __P((char *, int, const char *, const char *));
char *getword __P((char *, char *, int));
int give __P((void));
void initialize __P((const char *));
int jump __P((void));
void kiss __P((void));
int land __P((void));
int launch __P((void));
void light __P((void));
void live __P((void)) __attribute__((__noreturn__));
void love __P((void));
int moveplayer __P((int, int));
void murder __P((void));
void news __P((void));
void newway __P((int));
void open_score_file __P((void));
void parse __P((void));
void post __P((char));
void printobjs __P((void));
int put __P((void));
int puton __P((void));
const char *rate __P((void));
void ravage __P((void));
void restore __P((const char *));
int ride __P((void));
void save __P((const char *));
char *save_file_name __P((const char *, size_t));
int shoot __P((void));
int take __P((unsigned int[]));
int takeoff __P((void));
int throw __P((const char *));
const char *truedirec __P((int, char));
int ucard __P((const unsigned int *));
int use __P((void));
int visual __P((void));
int wearit __P((void));
void whichway __P((struct room));
void wordinit __P((void));
void writedes __P((void));
int zzz __P((void));
void bury(void);
int card(const char *, int);
void chime(void);
void convert(int);
void crash(void);
int cypher(void);
void die(void) __attribute__((__noreturn__));
void diesig(int) __attribute__((__noreturn__));
void dig(void);
void dooropen(void);
int draw(void);
void drink(void);
int drive(void);
int drop(const char *);
int eat(void);
int fight(int, int);
int follow(void);
char *getcom(char *, int, const char *, const char *);
char *getword(char *, char *, int);
int give(void);
void initialize(const char *);
int jump(void);
void kiss(void);
int land(void);
int launch(void);
void light(void);
void live(void) __attribute__((__noreturn__));
void love(void);
int moveplayer(int, int);
void murder(void);
void news(void);
void newway(int);
void open_score_file(void);
void parse(void);
void post(char);
void printobjs(void);
int put(void);
int puton(void);
const char *rate(void);
void ravage(void);
void restore(const char *);
int ride(void);
void save(const char *);
char *save_file_name(const char *, size_t);
int shoot(void);
int take(unsigned int[]);
int takeoff(void);
int throw(const char *);
const char *truedirec(int, char);
int ucard(const unsigned int *);
int use(void);
int visual(void);
int wearit(void);
void whichway(struct room);
void wordinit(void);
void writedes(void);
int zzz(void);

View File

@@ -1,4 +1,4 @@
/* $NetBSD: fly.c,v 1.11 2003/08/07 09:37:02 agc Exp $ */
/* $NetBSD: fly.c,v 1.12 2004/01/27 20:30:29 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)fly.c 8.2 (Berkeley) 4/28/95";
#else
__RCSID("$NetBSD: fly.c,v 1.11 2003/08/07 09:37:02 agc Exp $");
__RCSID("$NetBSD: fly.c,v 1.12 2004/01/27 20:30:29 jsm Exp $");
#endif
#endif /* not lint */
@@ -52,13 +52,13 @@ int ourclock = 120; /* time for all the flights in the game */
static char cross = 0;
static sig_t oldsig;
static void blast __P((void));
static void endfly __P((void));
static void moveenemy __P((int));
static void notarget __P((void));
static void screen __P((void));
static void succumb __P((int));
static void target __P((void));
static void blast(void);
static void endfly(void);
static void moveenemy(int);
static void notarget(void);
static void screen(void);
static void succumb(int);
static void target(void);
static void
succumb(dummy)

View File

@@ -1,4 +1,4 @@
/* $NetBSD: init.c,v 1.13 2003/08/07 09:37:02 agc Exp $ */
/* $NetBSD: init.c,v 1.14 2004/01/27 20:30:29 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,15 +34,15 @@
#if 0
static char sccsid[] = "@(#)init.c 8.4 (Berkeley) 4/30/95";
#else
__RCSID("$NetBSD: init.c,v 1.13 2003/08/07 09:37:02 agc Exp $");
__RCSID("$NetBSD: init.c,v 1.14 2004/01/27 20:30:29 jsm Exp $");
#endif
#endif /* not lint */
#include "extern.h"
static int checkout __P((const char *));
static const char *getutmp __P((void));
static int wizard __P((const char *));
static int checkout(const char *);
static const char *getutmp(void);
static int wizard(const char *);
void
initialize(filename)

View File

@@ -1,4 +1,4 @@
/* $NetBSD: parse.c,v 1.13 2003/08/07 09:37:03 agc Exp $ */
/* $NetBSD: parse.c,v 1.14 2004/01/27 20:30:29 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)parse.c 8.2 (Berkeley) 4/28/95";
#else
__RCSID("$NetBSD: parse.c,v 1.13 2003/08/07 09:37:03 agc Exp $");
__RCSID("$NetBSD: parse.c,v 1.14 2004/01/27 20:30:29 jsm Exp $");
#endif
#endif /* not lint */
@@ -44,9 +44,9 @@ __RCSID("$NetBSD: parse.c,v 1.13 2003/08/07 09:37:03 agc Exp $");
#define HASHMUL 81
#define HASHMASK (HASHSIZE - 1)
static int hash __P((const char *));
static void install __P((struct wlist *));
static struct wlist *lookup __P((const char *));
static int hash(const char *);
static void install(struct wlist *);
static struct wlist *lookup(const char *);
static struct wlist *hashtab[HASHSIZE];