mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-19 08:45:19 +02:00
Merge branch 'master' of git@projects.qi-hardware.com:openwrt-packages
This commit is contained in:
commit
ad78aa7cc9
@ -41,6 +41,17 @@ define Build/Compile
|
|||||||
#Building worm
|
#Building worm
|
||||||
cd $(PKG_BUILD_DIR)/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
|
$(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
|
endef
|
||||||
|
|
||||||
define Package/tetris
|
define Package/tetris
|
||||||
@ -88,6 +99,26 @@ define Package/worm/install
|
|||||||
$(1)/usr/bin/worm
|
$(1)/usr/bin/worm
|
||||||
endef
|
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,tetris))
|
||||||
$(eval $(call BuildPackage,primes))
|
$(eval $(call BuildPackage,primes))
|
||||||
$(eval $(call BuildPackage,worm))
|
$(eval $(call BuildPackage,worm))
|
||||||
|
$(eval $(call BuildPackage,backgammon))
|
||||||
|
429
bsd-games/patches/004-backgammon.patch
Normal file
429
bsd-games/patches/004-backgammon.patch
Normal file
@ -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"
|
Loading…
Reference in New Issue
Block a user