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: input.h,v 1.4 2003/08/07 09:37:48 agc Exp $ */
/* $NetBSD: input.h,v 1.5 2004/01/27 20:30:30 jsm Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -34,6 +34,6 @@
* @(#)input.h 8.1 (Berkeley) 5/31/93
*/
int rwait __P((struct timeval *));
int tgetchar __P((void));
void tsleep __P((void));
int rwait(struct timeval *);
int tgetchar(void);
void tsleep(void);

View File

@@ -1,4 +1,4 @@
/* $NetBSD: scores.c,v 1.12 2003/08/07 09:37:48 agc Exp $ */
/* $NetBSD: scores.c,v 1.13 2004/01/27 20:30:30 jsm Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -75,11 +75,11 @@ static int nscores;
static int gotscores;
static struct highscore scores[NUMSPOTS];
static int checkscores __P((struct highscore *, int));
static int cmpscores __P((const void *, const void *));
static void getscores __P((FILE **));
static void printem __P((int, int, struct highscore *, int, const char *));
static char *thisuser __P((void));
static int checkscores(struct highscore *, int);
static int cmpscores(const void *, const void *);
static void getscores(FILE **);
static void printem(int, int, struct highscore *, int, const char *);
static char *thisuser(void);
/*
* Read the score file. Can be called from savescore (before showscores)

View File

@@ -1,4 +1,4 @@
/* $NetBSD: scores.h,v 1.3 2003/08/07 09:37:48 agc Exp $ */
/* $NetBSD: scores.h,v 1.4 2004/01/27 20:30:30 jsm Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -48,5 +48,5 @@ struct highscore {
#define MAXSCORES 9 /* maximum high score entries per person */
#define EXPIRATION (5L * 365 * 24 * 60 * 60)
void savescore __P((int));
void showscores __P((int));
void savescore(int);
void showscores(int);

View File

@@ -1,4 +1,4 @@
/* $NetBSD: screen.c,v screen.c,v 1.18 2003/08/07 09:37:48 agc Exp $ */
/* $NetBSD: screen.c,v screen.c,v 1.19 2004/01/27 20:30:30 jsm Exp $ */
/* For Linux: still using old termcap interface from version 1.13. */
/*-
@@ -61,10 +61,10 @@ static cell curscreen[B_SIZE]; /* 1 => standout (or otherwise marked) */
static int curscore;
static int isset; /* true => terminal is in game mode */
static struct termios oldtt;
static void (*tstp) __P((int));
static void (*tstp)(int);
static void scr_stop __P((int));
static void stopset __P((int)) __attribute__((__noreturn__));
static void scr_stop(int);
static void stopset(int) __attribute__((__noreturn__));
/*
@@ -251,7 +251,7 @@ scr_set()
struct winsize ws;
struct termios newtt;
sigset_t sigset, osigset;
void (*ttou) __P((int));
void (*ttou)(int);
sigemptyset(&sigset);
sigaddset(&sigset, SIGTSTP);

View File

@@ -1,4 +1,4 @@
/* $NetBSD: screen.h,v 1.7 2003/08/07 09:37:48 agc Exp $ */
/* $NetBSD: screen.h,v 1.8 2004/01/27 20:30:30 jsm Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -45,10 +45,10 @@ extern char *SOstr; /* begin standout mode */
*/
#define putpad(s) tputs(s, 1, put)
int put __P((int)); /* just calls putchar; for tputs */
void scr_clear __P((void));
void scr_end __P((void));
void scr_init __P((void));
void scr_msg __P((char *, int));
void scr_set __P((void));
void scr_update __P((void));
int put(int); /* just calls putchar; for tputs */
void scr_clear(void);
void scr_end(void);
void scr_init(void);
void scr_msg(char *, int);
void scr_set(void);
void scr_update(void);

View File

@@ -1,4 +1,4 @@
/* $NetBSD: tetris.c,v 1.16 2003/08/07 09:37:48 agc Exp $ */
/* $NetBSD: tetris.c,v 1.17 2004/01/27 20:30:30 jsm Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -74,11 +74,11 @@ gid_t gid, egid;
char key_msg[100];
int showpreview;
static void elide __P((void));
static void setup_board __P((void));
int main __P((int, char **));
void onintr __P((int)) __attribute__((__noreturn__));
void usage __P((void)) __attribute__((__noreturn__));
static void elide(void);
static void setup_board(void);
int main(int, char **);
void onintr(int) __attribute__((__noreturn__));
void usage(void) __attribute__((__noreturn__));
/*
* Set up the initial board. The bottom display row is completely set,

View File

@@ -1,4 +1,4 @@
/* $NetBSD: tetris.h,v 1.9 2003/08/07 09:37:49 agc Exp $ */
/* $NetBSD: tetris.h,v 1.10 2004/01/27 20:30:30 jsm Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -169,6 +169,6 @@ extern gid_t gid, egid;
extern char key_msg[100];
extern int showpreview;
int fits_in __P((const struct shape *, int));
void place __P((const struct shape *, int, int));
void stop __P((const char *)) __attribute__((__noreturn__));
int fits_in(const struct shape *, int);
void place(const struct shape *, int, int);
void stop(const char *) __attribute__((__noreturn__));