diff options
Diffstat (limited to 'bsd-games')
| -rw-r--r-- | bsd-games/Makefile | 122 | ||||
| -rw-r--r-- | bsd-games/patches/001-tetris.patch | 96 | ||||
| -rw-r--r-- | bsd-games/patches/002-primes.patch | 64 | ||||
| -rw-r--r-- | bsd-games/patches/003-worm.patch | 26 | ||||
| -rw-r--r-- | bsd-games/patches/004-backgammon.patch | 429 |
5 files changed, 737 insertions, 0 deletions
diff --git a/bsd-games/Makefile b/bsd-games/Makefile new file mode 100644 index 0000000..24e762a --- /dev/null +++ b/bsd-games/Makefile @@ -0,0 +1,122 @@ +# +# This is free software, licensed under the GNU General Public License v2. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=bsd-games +PKG_VERSION:=2.17 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=ftp://metalab.unc.edu/pub/Linux/games/ +PKG_MD5SUM:=238a38a3a017ca9b216fc42bde405639 + +include $(INCLUDE_DIR)/package.mk + +define Package/bsd-games + SUBMENU:=bsd-games + SECTION:=games + CATEGORY:=Games + URL:=ftp://metalab.unc.edu/pub/Linux/games/ +endef + +define Build/Configure +endef +CFLAGS:= +define Build/Compile +#Building tetris + cd $(PKG_BUILD_DIR)/tetris; \ + cp pathnames.h.in pathnames.h; \ + $(TARGET_CC) -c -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -I$(STAGING_DIR)/usr/include input.c screen.c shapes.c scores.c tetris.c; \ + $(TARGET_CC) -lncurses -L$(STAGING_DIR)/usr/lib -o tetris input.o screen.o shapes.o scores.o tetris.o + +#Building primes + cd $(PKG_BUILD_DIR)/primes; \ + $(TARGET_CC) -c -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings pattern.c pr_tbl.c primes.c; \ + $(TARGET_CC) -lm -o primes pattern.o pr_tbl.o primes.o + +#Building worm + cd $(PKG_BUILD_DIR)/worm; \ + $(TARGET_CC) -lncurses -L$(STAGING_DIR)/usr/lib -I$(STAGING_DIR)/usr/include -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -o worm worm.c + +#Building backgammon + cd $(PKG_BUILD_DIR)/backgammon; \ + cd common_source; \ + $(TARGET_CC) -c -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -I$(STAGING_DIR)/usr/include -DEXEC_PATH=\"/usr/bin/backgammon\" -DTEACH_PATH=\"/usr/bin/teachgammon\" allow.c board.c check.c fancy.c init.c odds.c one.c save.c subs.c table.c; \ + cd ../backgammon; \ + $(TARGET_CC) -c -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -I$(STAGING_DIR)/usr/include -I$(PKG_BUILD_DIR)/backgammon/common_source extra.c main.c move.c text.c version.c; \ + $(TARGET_CC) -lncurses -L$(STAGING_DIR)/usr/lib -o backgammon $(ECHO) ../common_source/*.o ../backgammon/*.o; \ + cd ../teachgammon; \ + $(TARGET_CC) -c -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -I$(STAGING_DIR)/usr/include -I$(PKG_BUILD_DIR)/backgammon/common_source data.c teach.c ttext1.c ttext2.c tutor.c; \ + $(TARGET_CC) -lncurses -L$(STAGING_DIR)/usr/lib -o teachgammon $(ECHO) ../common_source/*.o ../teachgammon/*.o +endef + +define Package/tetris +$(call Package/bsd-games) + TITLE:=the game of tetris + DEPENDS:=+libncurses +endef + +define Package/tetris/install + $(INSTALL_DIR) \ + $(1)/usr/bin \ + $(1)/usr/share/games + + $(INSTALL_BIN) \ + $(PKG_BUILD_DIR)/tetris/tetris \ + $(1)/usr/bin/tetris +endef + +define Package/primes +$(call Package/bsd-games) + TITLE:=generate primes +endef + +define Package/primes/install + $(INSTALL_DIR) \ + $(1)/usr/bin + + $(INSTALL_BIN) \ + $(PKG_BUILD_DIR)/primes/primes \ + $(1)/usr/bin/primes +endef + +define Package/worm +$(call Package/bsd-games) + TITLE:=The growing worm game + DEPENDS:=+libncurses +endef + +define Package/worm/install + $(INSTALL_DIR) \ + $(1)/usr/bin + + $(INSTALL_BIN) \ + $(PKG_BUILD_DIR)/worm/worm \ + $(1)/usr/bin/worm +endef + +define Package/backgammon +$(call Package/bsd-games) + TITLE:=the game of backgammon + DEPENDS:=+libncurses +endef + +define Package/backgammon/install + $(INSTALL_DIR) \ + $(1)/usr/bin + + $(INSTALL_BIN) \ + $(PKG_BUILD_DIR)/backgammon/backgammon/backgammon \ + $(1)/usr/bin/backgammon + + $(INSTALL_BIN) \ + $(PKG_BUILD_DIR)/backgammon/teachgammon/teachgammon \ + $(1)/usr/bin/teachgammon +endef + +$(eval $(call BuildPackage,tetris)) +$(eval $(call BuildPackage,primes)) +$(eval $(call BuildPackage,worm)) +$(eval $(call BuildPackage,backgammon)) diff --git a/bsd-games/patches/001-tetris.patch b/bsd-games/patches/001-tetris.patch new file mode 100644 index 0000000..b193d8a --- /dev/null +++ b/bsd-games/patches/001-tetris.patch @@ -0,0 +1,96 @@ +diff -ur bsd-games-2.17-p/tetris/input.c bsd-games-2.17/tetris/input.c +--- bsd-games-2.17-p/tetris/input.c 2010-11-14 21:46:54.909025861 +0300 ++++ bsd-games-2.17/tetris/input.c 2010-11-14 21:48:17.830025444 +0300 +@@ -85,7 +85,7 @@ + endtv = *tvp; + timeout = tvp->tv_sec * 1000 + tvp->tv_usec / 1000; + } else +- timeout = INFTIM; ++ timeout = -1; + again: + set[0].fd = STDIN_FILENO; + set[0].events = POLLIN; +diff -ur bsd-games-2.17-p/tetris/pathnames.h.in bsd-games-2.17/tetris/pathnames.h.in +--- bsd-games-2.17-p/tetris/pathnames.h.in 2010-11-14 21:46:54.908027310 +0300 ++++ bsd-games-2.17/tetris/pathnames.h.in 2010-11-14 21:48:17.830025444 +0300 +@@ -34,4 +34,4 @@ + * @(#)pathnames.h 8.1 (Berkeley) 5/31/93 + */ + +-#define _PATH_SCOREFILE "@tetris_scorefile@" ++#define _PATH_SCOREFILE "/usr/share/games/tetris-bsd.scores" +diff -ur bsd-games-2.17-p/tetris/screen.c bsd-games-2.17/tetris/screen.c +--- bsd-games-2.17-p/tetris/screen.c 2010-11-14 21:46:54.908027310 +0300 ++++ bsd-games-2.17/tetris/screen.c 2010-11-14 22:09:58.510150197 +0300 +@@ -73,7 +73,7 @@ + extern char PC, *BC, *UP; /* tgoto requires globals: ugh! */ + static char BCdefault[] = "\b"; + #ifndef NCURSES_VERSION +-short ospeed; ++speed_t ospeed; + #endif + + static char +@@ -287,6 +287,7 @@ + stop("tcgetattr() fails"); + newtt = oldtt; + newtt.c_lflag &= ~(ICANON|ECHO); ++#define OXTABS XTABS + newtt.c_oflag &= ~OXTABS; + newtt.c_cc[VMIN] = 1; + newtt.c_cc[VTIME] = 0; +diff -ur bsd-games-2.17-p/tetris/shapes.c bsd-games-2.17/tetris/shapes.c +--- bsd-games-2.17-p/tetris/shapes.c 2010-11-14 21:46:54.908027310 +0300 ++++ bsd-games-2.17/tetris/shapes.c 2010-11-14 21:48:17.831024977 +0300 +@@ -83,7 +83,7 @@ + const struct shape *shape; + int pos; + { +- int *o = shape->off; ++ const int *o = shape->off; + + if (board[pos] || board[pos + *o++] || board[pos + *o++] || + board[pos + *o]) +@@ -100,7 +100,7 @@ + const struct shape *shape; + int pos, onoff; + { +- int *o = shape->off; ++ const int *o = shape->off; + + board[pos] = onoff; + board[pos + *o++] = onoff; +diff -ur bsd-games-2.17-p/tetris/tetris.c bsd-games-2.17/tetris/tetris.c +--- bsd-games-2.17-p/tetris/tetris.c 2010-11-14 21:46:54.909025861 +0300 ++++ bsd-games-2.17/tetris/tetris.c 2010-11-14 22:15:43.958150419 +0300 +@@ -35,10 +35,10 @@ + */ + + #include <sys/cdefs.h> +-#ifndef lint ++/*#ifndef lint + __COPYRIGHT("@(#) Copyright (c) 1992, 1993\n\ + The Regents of the University of California. All rights reserved.\n"); +-#endif /* not lint */ ++#endif*/ /* not lint */ + + /* + * Tetris (or however it is spelled). +@@ -145,7 +145,7 @@ + exit(1); + close(fd); + +- keys = "jkl pq"; ++ keys = "aks pq"; + + while ((ch = getopt(argc, argv, "k:l:ps")) != -1) + switch(ch) { +@@ -194,7 +194,7 @@ + } + + sprintf(key_msg, +-"%s - left %s - rotate %s - right %s - drop %s - pause %s - quit", ++"%s:<- %s:rotate %s:-> %s:drop %s:pause %s:quit", + key_write[0], key_write[1], key_write[2], key_write[3], + key_write[4], key_write[5]); + diff --git a/bsd-games/patches/002-primes.patch b/bsd-games/patches/002-primes.patch new file mode 100644 index 0000000..2ad32c6 --- /dev/null +++ b/bsd-games/patches/002-primes.patch @@ -0,0 +1,64 @@ +diff -u bsd-games-2.17/primes/pattern.c bsd-games-2.17-p/primes/pattern.c +--- bsd-games-2.17/primes/pattern.c 2003-12-17 05:47:37.000000000 +0300 ++++ bsd-games-2.17-p/primes/pattern.c 2010-07-27 09:07:23.122817978 +0400 +@@ -33,13 +33,13 @@ + */ + + #include <sys/cdefs.h> +-#ifndef lint ++/*#ifndef lint + #if 0 + static char sccsid[] = "@(#)pattern.c 8.1 (Berkeley) 5/31/93"; + #else + __RCSID("$NetBSD: pattern.c,v 1.6 2003/08/07 09:37:33 agc Exp $"); + #endif +-#endif /* not lint */ ++#endif */ /* not lint */ + + /* + * pattern - the Eratosthenes sieve on odd numbers for 3,5,7,11 and 13 +diff -u bsd-games-2.17/primes/primes.c bsd-games-2.17-p/primes/primes.c +--- bsd-games-2.17/primes/primes.c 2004-01-27 23:52:07.000000000 +0300 ++++ bsd-games-2.17-p/primes/primes.c 2010-07-27 09:07:52.303319233 +0400 +@@ -33,18 +33,18 @@ + */ + + #include <sys/cdefs.h> +-#ifndef lint ++/*#ifndef lint + __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ + The Regents of the University of California. All rights reserved.\n"); +-#endif /* not lint */ ++#endif */ /* not lint */ + +-#ifndef lint ++/*#ifndef lint + #if 0 + static char sccsid[] = "@(#)primes.c 8.5 (Berkeley) 5/10/95"; + #else + __RCSID("$NetBSD: primes.c,v 1.12 2004/01/27 20:30:30 jsm Exp $"); + #endif +-#endif /* not lint */ ++#endif */ /* not lint */ + + /* + * primes - generate a table of primes between two values +diff -u bsd-games-2.17/primes/pr_tbl.c bsd-games-2.17-p/primes/pr_tbl.c +--- bsd-games-2.17/primes/pr_tbl.c 2003-12-17 05:47:37.000000000 +0300 ++++ bsd-games-2.17-p/primes/pr_tbl.c 2010-07-27 09:08:15.198301714 +0400 +@@ -33,13 +33,13 @@ + */ + + #include <sys/cdefs.h> +-#ifndef lint ++/* #ifndef lint + #if 0 + static char sccsid[] = "@(#)pr_tbl.c 8.1 (Berkeley) 5/31/93"; + #else + __RCSID("$NetBSD: pr_tbl.c,v 1.7 2003/08/07 09:37:33 agc Exp $"); + #endif +-#endif /* not lint */ ++#endif */ /* not lint */ + + /* + * prime - prime table diff --git a/bsd-games/patches/003-worm.patch b/bsd-games/patches/003-worm.patch new file mode 100644 index 0000000..9705c2e --- /dev/null +++ b/bsd-games/patches/003-worm.patch @@ -0,0 +1,26 @@ +diff -u bsd-games-2.17/worm/worm.c bsd-games-2.17-p/worm/worm.c +--- bsd-games-2.17/worm/worm.c 2004-01-27 23:52:07.000000000 +0300 ++++ bsd-games-2.17-p/worm/worm.c 2010-07-31 21:36:08.313419076 +0400 +@@ -30,18 +30,18 @@ + */ + + #include <sys/cdefs.h> +-#ifndef lint ++/*#ifndef lint + __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\ + The Regents of the University of California. All rights reserved.\n"); +-#endif /* not lint */ ++#endif */ /* not lint */ + +-#ifndef lint ++/* #ifndef lint + #if 0 + static char sccsid[] = "@(#)worm.c 8.1 (Berkeley) 5/31/93"; + #else + __RCSID("$NetBSD: worm.c,v 1.25 2004/01/27 20:30:31 jsm Exp $"); + #endif +-#endif /* not lint */ ++#endif */ /* not lint */ + + /* + * Worm. Written by Michael Toy diff --git a/bsd-games/patches/004-backgammon.patch b/bsd-games/patches/004-backgammon.patch new file mode 100644 index 0000000..80d1c2a --- /dev/null +++ b/bsd-games/patches/004-backgammon.patch @@ -0,0 +1,429 @@ +diff -ur bsd-games-2.17/backgammon/backgammon/extra.c bsd-games-2.17-p/backgammon/backgammon/extra.c +--- bsd-games-2.17/backgammon/backgammon/extra.c 2003-12-17 05:47:37.000000000 +0300 ++++ bsd-games-2.17-p/backgammon/backgammon/extra.c 2010-07-31 22:10:07.910053909 +0400 +@@ -30,13 +30,13 @@ + */ + + #include <sys/cdefs.h> +-#ifndef lint ++/* #ifndef lint + #if 0 + static char sccsid[] = "@(#)extra.c 8.1 (Berkeley) 5/31/93"; + #else + __RCSID("$NetBSD: extra.c,v 1.5 2003/08/07 09:36:55 agc Exp $"); + #endif +-#endif /* not lint */ ++#endif */ /* not lint */ + + #include "back.h" + #include "backlocal.h" +diff -ur bsd-games-2.17/backgammon/backgammon/main.c bsd-games-2.17-p/backgammon/backgammon/main.c +--- bsd-games-2.17/backgammon/backgammon/main.c 2005-02-16 09:24:50.000000000 +0300 ++++ bsd-games-2.17-p/backgammon/backgammon/main.c 2010-08-01 11:08:39.969952583 +0400 +@@ -30,18 +30,18 @@ + */ + + #include <sys/cdefs.h> +-#ifndef lint ++/* #ifndef lint + __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\ + The Regents of the University of California. All rights reserved.\n"); +-#endif /* not lint */ ++#endif */ /* not lint */ + +-#ifndef lint ++/* #ifndef lint + #if 0 + static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93"; + #else + __RCSID("$NetBSD: main.c,v 1.21 2005/02/15 12:56:20 jsm Exp $"); + #endif +-#endif /* not lint */ ++#endif */ /* not lint */ + + #include <time.h> + +@@ -49,6 +49,7 @@ + #include "backlocal.h" + + #define MVPAUSE 5 /* time to sleep when stuck */ ++#define OXTABS XTABS + + extern const char *const instr[]; /* text of instructions */ + extern const char *const message[]; /* update message */ +@@ -124,7 +125,7 @@ + #ifdef V7 + while (*++argv != 0) /* process arguments */ + #else +- while (*++argv != -1) /* process arguments */ ++ while (*++argv != 0) /* process arguments */ + #endif + getarg(&argv); + args[acnt] = '\0'; +diff -ur bsd-games-2.17/backgammon/backgammon/move.c bsd-games-2.17-p/backgammon/backgammon/move.c +--- bsd-games-2.17/backgammon/backgammon/move.c 2004-01-27 23:52:07.000000000 +0300 ++++ bsd-games-2.17-p/backgammon/backgammon/move.c 2010-07-31 22:10:41.854259314 +0400 +@@ -30,13 +30,13 @@ + */ + + #include <sys/cdefs.h> +-#ifndef lint ++/* #ifndef lint + #if 0 + static char sccsid[] = "@(#)move.c 8.1 (Berkeley) 5/31/93"; + #else + __RCSID("$NetBSD: move.c,v 1.8 2004/01/27 20:30:28 jsm Exp $"); + #endif +-#endif /* not lint */ ++#endif */ /* not lint */ + + #include "back.h" + #include "backlocal.h" +diff -ur bsd-games-2.17/backgammon/backgammon/text.c bsd-games-2.17-p/backgammon/backgammon/text.c +--- bsd-games-2.17/backgammon/backgammon/text.c 2003-12-17 05:47:37.000000000 +0300 ++++ bsd-games-2.17-p/backgammon/backgammon/text.c 2010-07-31 22:10:52.377805941 +0400 +@@ -30,13 +30,13 @@ + */ + + #include <sys/cdefs.h> +-#ifndef lint ++/* #ifndef lint + #if 0 + static char sccsid[] = "@(#)text.c 8.1 (Berkeley) 5/31/93"; + #else + __RCSID("$NetBSD: text.c,v 1.7 2003/08/07 09:36:56 agc Exp $"); + #endif +-#endif /* not lint */ ++#endif */ /* not lint */ + + #include "back.h" + +diff -ur bsd-games-2.17/backgammon/backgammon/version.c bsd-games-2.17-p/backgammon/backgammon/version.c +--- bsd-games-2.17/backgammon/backgammon/version.c 2003-12-17 05:47:37.000000000 +0300 ++++ bsd-games-2.17-p/backgammon/backgammon/version.c 2010-07-31 22:11:05.756426999 +0400 +@@ -30,13 +30,13 @@ + */ + + #include <sys/cdefs.h> +-#ifndef lint ++/* #ifndef lint + #if 0 + static char sccsid[] = "@(#)version.c 8.1 (Berkeley) 5/31/93"; + #else + __RCSID("$NetBSD: version.c,v 1.6 2003/08/07 09:36:56 agc Exp $"); + #endif +-#endif /* not lint */ ++#endif */ /* not lint */ + + const char *const message[] = { + "Last updated on Friday, October 10, 1997.", +diff -ur bsd-games-2.17/backgammon/common_source/allow.c bsd-games-2.17-p/backgammon/common_source/allow.c +--- bsd-games-2.17/backgammon/common_source/allow.c 2003-12-17 05:47:37.000000000 +0300 ++++ bsd-games-2.17-p/backgammon/common_source/allow.c 2010-07-31 22:07:44.982982743 +0400 +@@ -30,13 +30,13 @@ + */ + + #include <sys/cdefs.h> +-#ifndef lint ++/* #ifndef lint + #if 0 + static char sccsid[] = "@(#)allow.c 8.1 (Berkeley) 5/31/93"; + #else + __RCSID("$NetBSD: allow.c,v 1.5 2003/08/07 09:36:56 agc Exp $"); + #endif +-#endif /* not lint */ ++#endif */ /* not lint */ + + #include "back.h" + +diff -ur bsd-games-2.17/backgammon/common_source/board.c bsd-games-2.17-p/backgammon/common_source/board.c +--- bsd-games-2.17/backgammon/common_source/board.c 2003-12-17 05:47:37.000000000 +0300 ++++ bsd-games-2.17-p/backgammon/common_source/board.c 2010-07-31 22:08:08.852355705 +0400 +@@ -30,13 +30,13 @@ + */ + + #include <sys/cdefs.h> +-#ifndef lint ++/* #ifndef lint + #if 0 + static char sccsid[] = "@(#)board.c 8.1 (Berkeley) 5/31/93"; + #else + __RCSID("$NetBSD: board.c,v 1.7 2003/08/07 09:36:57 agc Exp $"); + #endif +-#endif /* not lint */ ++#endif */ /* not lint */ + + #include "back.h" + +diff -ur bsd-games-2.17/backgammon/common_source/check.c bsd-games-2.17-p/backgammon/common_source/check.c +--- bsd-games-2.17/backgammon/common_source/check.c 2003-12-17 05:47:37.000000000 +0300 ++++ bsd-games-2.17-p/backgammon/common_source/check.c 2010-07-31 22:08:22.639630328 +0400 +@@ -30,13 +30,13 @@ + */ + + #include <sys/cdefs.h> +-#ifndef lint ++/* #ifndef lint + #if 0 + static char sccsid[] = "@(#)check.c 8.1 (Berkeley) 5/31/93"; + #else + __RCSID("$NetBSD: check.c,v 1.5 2003/08/07 09:36:57 agc Exp $"); + #endif +-#endif /* not lint */ ++#endif */ /* not lint */ + + #include "back.h" + +diff -ur bsd-games-2.17/backgammon/common_source/fancy.c bsd-games-2.17-p/backgammon/common_source/fancy.c +--- bsd-games-2.17/backgammon/common_source/fancy.c 2004-04-24 20:13:09.000000000 +0400 ++++ bsd-games-2.17-p/backgammon/common_source/fancy.c 2010-07-31 22:08:35.011397017 +0400 +@@ -30,13 +30,13 @@ + */ + + #include <sys/cdefs.h> +-#ifndef lint ++/* #ifndef lint + #if 0 + static char sccsid[] = "@(#)fancy.c 8.1 (Berkeley) 5/31/93"; + #else + __RCSID("$NetBSD: fancy.c,v 1.12 2004/04/23 02:58:27 simonb Exp $"); + #endif +-#endif /* not lint */ ++#endif */ /* not lint */ + + #include "back.h" + +diff -ur bsd-games-2.17/backgammon/common_source/init.c bsd-games-2.17-p/backgammon/common_source/init.c +--- bsd-games-2.17/backgammon/common_source/init.c 2003-12-17 05:47:37.000000000 +0300 ++++ bsd-games-2.17-p/backgammon/common_source/init.c 2010-07-31 22:08:46.900301922 +0400 +@@ -30,13 +30,13 @@ + */ + + #include <sys/cdefs.h> +-#ifndef lint ++/* #ifndef lint + #if 0 + static char sccsid[] = "@(#)init.c 8.1 (Berkeley) 5/31/93"; + #else + __RCSID("$NetBSD: init.c,v 1.8 2003/08/07 09:36:57 agc Exp $"); + #endif +-#endif /* not lint */ ++#endif */ /* not lint */ + + #include <termios.h> + +diff -ur bsd-games-2.17/backgammon/common_source/odds.c bsd-games-2.17-p/backgammon/common_source/odds.c +--- bsd-games-2.17/backgammon/common_source/odds.c 2003-12-17 05:47:37.000000000 +0300 ++++ bsd-games-2.17-p/backgammon/common_source/odds.c 2010-07-31 22:09:03.219958336 +0400 +@@ -30,13 +30,13 @@ + */ + + #include <sys/cdefs.h> +-#ifndef lint ++/* #ifndef lint + #if 0 + static char sccsid[] = "@(#)odds.c 8.1 (Berkeley) 5/31/93"; + #else + __RCSID("$NetBSD: odds.c,v 1.5 2003/08/07 09:36:57 agc Exp $"); + #endif +-#endif /* not lint */ ++#endif */ /* not lint */ + + #include "back.h" + +diff -ur bsd-games-2.17/backgammon/common_source/one.c bsd-games-2.17-p/backgammon/common_source/one.c +--- bsd-games-2.17/backgammon/common_source/one.c 2003-12-17 05:47:37.000000000 +0300 ++++ bsd-games-2.17-p/backgammon/common_source/one.c 2010-07-31 22:09:15.025538516 +0400 +@@ -30,13 +30,13 @@ + */ + + #include <sys/cdefs.h> +-#ifndef lint ++/* #ifndef lint + #if 0 + static char sccsid[] = "@(#)one.c 8.1 (Berkeley) 5/31/93"; + #else + __RCSID("$NetBSD: one.c,v 1.5 2003/08/07 09:36:57 agc Exp $"); + #endif +-#endif /* not lint */ ++#endif */ /* not lint */ + + #include "back.h" + +diff -ur bsd-games-2.17/backgammon/common_source/save.c bsd-games-2.17-p/backgammon/common_source/save.c +--- bsd-games-2.17/backgammon/common_source/save.c 2003-12-17 05:47:37.000000000 +0300 ++++ bsd-games-2.17-p/backgammon/common_source/save.c 2010-08-01 00:38:38.876427096 +0400 +@@ -30,13 +30,13 @@ + */ + + #include <sys/cdefs.h> +-#ifndef lint ++/* #ifndef lint + #if 0 + static char sccsid[] = "@(#)save.c 8.1 (Berkeley) 5/31/93"; + #else + __RCSID("$NetBSD: save.c,v 1.10 2003/08/07 09:36:57 agc Exp $"); + #endif +-#endif /* not lint */ ++#endif */ /* not lint */ + + #include <errno.h> + +diff -ur bsd-games-2.17/backgammon/common_source/subs.c bsd-games-2.17-p/backgammon/common_source/subs.c +--- bsd-games-2.17/backgammon/common_source/subs.c 2003-12-17 05:47:37.000000000 +0300 ++++ bsd-games-2.17-p/backgammon/common_source/subs.c 2010-08-01 11:10:44.780266356 +0400 +@@ -30,13 +30,13 @@ + */ + + #include <sys/cdefs.h> +-#ifndef lint ++/* #ifndef lint + #if 0 + static char sccsid[] = "@(#)subs.c 8.1 (Berkeley) 5/31/93"; + #else + __RCSID("$NetBSD: subs.c,v 1.14 2003/08/07 09:36:57 agc Exp $"); + #endif +-#endif /* not lint */ ++#endif */ /* not lint */ + + #include "back.h" + +diff -ur bsd-games-2.17/backgammon/common_source/table.c bsd-games-2.17-p/backgammon/common_source/table.c +--- bsd-games-2.17/backgammon/common_source/table.c 2003-12-17 05:47:37.000000000 +0300 ++++ bsd-games-2.17-p/backgammon/common_source/table.c 2010-07-31 22:09:54.655414207 +0400 +@@ -30,13 +30,13 @@ + */ + + #include <sys/cdefs.h> +-#ifndef lint ++/* #ifndef lint + #if 0 + static char sccsid[] = "@(#)table.c 8.1 (Berkeley) 5/31/93"; + #else + __RCSID("$NetBSD: table.c,v 1.7 2003/08/07 09:36:57 agc Exp $"); + #endif +-#endif /* not lint */ ++#endif */ /* not lint */ + + #include "back.h" + +diff -ur bsd-games-2.17/backgammon/teachgammon/data.c bsd-games-2.17-p/backgammon/teachgammon/data.c +--- bsd-games-2.17/backgammon/teachgammon/data.c 2004-01-02 21:04:51.000000000 +0300 ++++ bsd-games-2.17-p/backgammon/teachgammon/data.c 2010-08-01 11:18:14.579882098 +0400 +@@ -30,13 +30,13 @@ + */ + + #include <sys/cdefs.h> +-#ifndef lint ++/*#ifndef lint + #if 0 + static char sccsid[] = "@(#)data.c 8.1 (Berkeley) 5/31/93"; + #else + __RCSID("$NetBSD: data.c,v 1.7 2004/01/01 15:59:09 jsm Exp $"); + #endif +-#endif /* not lint */ ++#endif *//* not lint */ + + #include "tutor.h" + +diff -ur bsd-games-2.17/backgammon/teachgammon/teach.c bsd-games-2.17-p/backgammon/teachgammon/teach.c +--- bsd-games-2.17/backgammon/teachgammon/teach.c 2005-02-16 09:24:50.000000000 +0300 ++++ bsd-games-2.17-p/backgammon/teachgammon/teach.c 2010-08-01 11:39:32.956134539 +0400 +@@ -30,18 +30,18 @@ + */ + + #include <sys/cdefs.h> +-#ifndef lint ++/*#ifndef lint + __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\ + The Regents of the University of California. All rights reserved.\n"); +-#endif /* not lint */ ++#endif *//* not lint */ + +-#ifndef lint ++/*#ifndef lint + #if 0 + static char sccsid[] = "@(#)teach.c 8.1 (Berkeley) 5/31/93"; + #else + __RCSID("$NetBSD: teach.c,v 1.16 2005/02/15 12:56:20 jsm Exp $"); + #endif +-#endif /* not lint */ ++#endif *//* not lint */ + + #include "back.h" + #include "tutor.h" +@@ -59,6 +59,8 @@ + 0 + }; + ++#define OXTABS XTABS ++ + int + main(argc, argv) + int argc __attribute__((__unused__)); +@@ -81,7 +83,7 @@ + #ifdef V7 + while (*++argv != 0) + #else +- while (*++argv != -1) ++ while (*++argv != 0) + #endif + getarg(&argv); + if (tflag) { +diff -ur bsd-games-2.17/backgammon/teachgammon/ttext1.c bsd-games-2.17-p/backgammon/teachgammon/ttext1.c +--- bsd-games-2.17/backgammon/teachgammon/ttext1.c 2003-12-17 05:47:37.000000000 +0300 ++++ bsd-games-2.17-p/backgammon/teachgammon/ttext1.c 2010-08-01 11:18:57.935091377 +0400 +@@ -30,13 +30,13 @@ + */ + + #include <sys/cdefs.h> +-#ifndef lint ++/*#ifndef lint + #if 0 + static char sccsid[] = "@(#)ttext1.c 8.1 (Berkeley) 5/31/93"; + #else + __RCSID("$NetBSD: ttext1.c,v 1.7 2003/08/07 09:36:58 agc Exp $"); + #endif +-#endif /* not lint */ ++#endif *//* not lint */ + + #include "back.h" + #include "tutor.h" +diff -ur bsd-games-2.17/backgammon/teachgammon/ttext2.c bsd-games-2.17-p/backgammon/teachgammon/ttext2.c +--- bsd-games-2.17/backgammon/teachgammon/ttext2.c 2003-12-17 05:47:37.000000000 +0300 ++++ bsd-games-2.17-p/backgammon/teachgammon/ttext2.c 2010-08-01 11:19:09.174691288 +0400 +@@ -30,13 +30,13 @@ + */ + + #include <sys/cdefs.h> +-#ifndef lint ++/*#ifndef lint + #if 0 + static char sccsid[] = "@(#)ttext2.c 8.1 (Berkeley) 5/31/93"; + #else + __RCSID("$NetBSD: ttext2.c,v 1.7 2003/08/07 09:36:58 agc Exp $"); + #endif +-#endif /* not lint */ ++#endif *//* not lint */ + + #include "back.h" + #include "tutor.h" +diff -ur bsd-games-2.17/backgammon/teachgammon/tutor.c bsd-games-2.17-p/backgammon/teachgammon/tutor.c +--- bsd-games-2.17/backgammon/teachgammon/tutor.c 2003-12-17 05:47:37.000000000 +0300 ++++ bsd-games-2.17-p/backgammon/teachgammon/tutor.c 2010-08-01 11:37:12.464301896 +0400 +@@ -30,13 +30,13 @@ + */ + + #include <sys/cdefs.h> +-#ifndef lint ++/*#ifndef lint + #if 0 + static char sccsid[] = "@(#)tutor.c 8.1 (Berkeley) 5/31/93"; + #else + __RCSID("$NetBSD: tutor.c,v 1.6 2003/08/07 09:36:58 agc Exp $"); + #endif +-#endif /* not lint */ ++#endif *//* not lint */ + + #include "back.h" + #include "tutor.h" |
