* New upstream release, whivh includes hack, back fron bsdgames-nonfree.

* Conflict and replace with old versions of bsdgames-nonfree that include
     hack.
   * Add hack to package description and menu file.
   * Add in hack's two READ_ME files to binay package.
   * Patched hack config.h as it is patched in bsdgames-nonfree.
   * Unlike bsdgames-nonfree, put the help, hh, rumors, and data files in
     /usr/share/games/bsdgames/hack, as the patched config.h makes it look
     there.
   * postinst moves over hack state files to new directory
   * Patched phantasia to use strerror and not segfault if it cannot open the
     var files. Closes: #187251 (patch sent upstream)


git-svn-id: file:///srv/svn/joey/bsdgames-trunk@5206 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
joey
2003-04-03 02:10:44 +00:00
parent 0e204a0ae1
commit e5b45776e7
42 changed files with 504 additions and 2553 deletions

View File

@@ -1,4 +1,4 @@
/* $NetBSD: scores.c,v 1.10 2000/01/21 02:10:56 jsm Exp $ */
/* $NetBSD: scores.c,v 1.11 2002/06/02 22:17:38 wiz Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -153,8 +153,8 @@ void
savescore(level)
int level;
{
register struct highscore *sp;
register int i;
struct highscore *sp;
int i;
int change;
FILE *sf;
const char *me;
@@ -219,9 +219,9 @@ savescore(level)
static char *
thisuser()
{
register const char *p;
register struct passwd *pw;
register size_t l;
const char *p;
struct passwd *pw;
size_t l;
static char u[sizeof(scores[0].hs_name)];
if (u[0])
@@ -252,8 +252,8 @@ static int
cmpscores(x, y)
const void *x, *y;
{
register const struct highscore *a, *b;
register long l;
const struct highscore *a, *b;
long l;
a = x;
b = y;
@@ -280,17 +280,17 @@ cmpscores(x, y)
*/
static int
checkscores(hs, num)
register struct highscore *hs;
struct highscore *hs;
int num;
{
register struct highscore *sp;
register int i, j, k, numnames;
struct highscore *sp;
int i, j, k, numnames;
int levelfound[NLEVELS];
struct peruser {
char *name;
int times;
} count[NUMSPOTS];
register struct peruser *pu;
struct peruser *pu;
/*
* Sort so that highest totals come first.
@@ -356,8 +356,8 @@ void
showscores(level)
int level;
{
register struct highscore *sp;
register int i, n, c;
struct highscore *sp;
int i, n, c;
const char *me;
int levelfound[NLEVELS];
@@ -408,11 +408,11 @@ showscores(level)
static void
printem(level, offset, hs, n, me)
int level, offset;
register struct highscore *hs;
register int n;
struct highscore *hs;
int n;
const char *me;
{
register struct highscore *sp;
struct highscore *sp;
int nrows, row, col, item, i, highlight;
char buf[100];
#define TITLE "Rank Score Name (points/level)"

View File

@@ -1,4 +1,4 @@
/* $NetBSD: screen.c,v 1.15 2000/05/24 14:43:00 blymn Exp $ */
/* $NetBSD: screen.c,v 1.16 2001/11/02 18:27:00 christos Exp $ */
/* For Linux: still using old termcap interface from version 1.13. */
/*-
@@ -182,13 +182,13 @@ scr_init()
stop("cannot find your termcap");
fill = combuf;
{
register struct tcsinfo *p;
struct tcsinfo *p;
for (p = tcstrings; p->tcaddr; p++)
*p->tcaddr = tgetstr(p->tcname, &fill);
}
{
register struct tcninfo *p;
struct tcninfo *p;
for (p = tcflags; p->tcaddr; p++)
*p->tcaddr = tgetflag(p->tcname);
@@ -292,8 +292,8 @@ scr_set()
newtt = oldtt;
newtt.c_lflag &= ~(ICANON|ECHO);
newtt.c_oflag &= ~OXTABS;
newtt.c_cc[VMIN] = 1; /* don't lag behind 3 keystrokes on sun */
newtt.c_cc[VTIME] = 0; /* systems -- JEH */
newtt.c_cc[VMIN] = 1;
newtt.c_cc[VTIME] = 0;
if (tcsetattr(0, TCSADRAIN, &newtt) < 0)
stop("tcsetattr() fails");
ospeed = cfgetospeed(&newtt);
@@ -378,9 +378,9 @@ typedef cell regcell;
void
scr_update()
{
register cell *bp, *sp;
register regcell so, cur_so = 0;
register int i, ccol, j;
cell *bp, *sp;
regcell so, cur_so = 0;
int i, ccol, j;
sigset_t sigset, osigset;
static const struct shape *lastshape;
@@ -490,12 +490,12 @@ scr_update()
*/
void
scr_msg(s, set)
register char *s;
char *s;
int set;
{
if (set || CEstr == NULL) {
register int l = strlen(s);
int l = strlen(s);
moveto(Rows - 2, ((Cols - l) >> 1) - 1);
if (set)

View File

@@ -1,4 +1,4 @@
/* $NetBSD: tetris.c,v 1.14 2000/01/21 02:10:57 jsm Exp $ */
/* $NetBSD: tetris.c,v 1.15 2002/06/02 22:17:38 wiz Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -92,8 +92,8 @@ static void setup_board __P((void));
static void
setup_board()
{
register int i;
register cell *p;
int i;
cell *p;
p = board;
for (i = B_SIZE; i; i--)
@@ -106,8 +106,8 @@ setup_board()
static void
elide()
{
register int i, j, base;
register cell *p;
int i, j, base;
cell *p;
for (i = A_FIRST; i < A_LAST; i++) {
base = i * B_COLS + 1;
@@ -133,9 +133,9 @@ main(argc, argv)
int argc;
char *argv[];
{
register int pos, c;
register const char *keys;
register int level = 2;
int pos, c;
const char *keys;
int level = 2;
char key_write[6][10];
int ch, i, j;
int fd;