Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/backgammon Remove ifdefs for V7 (as opposed to older) ...



details:   https://anonhg.NetBSD.org/src/rev/83db69768597
branches:  trunk
changeset: 782049:83db69768597
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sat Oct 13 19:25:22 2012 +0000

description:
Remove ifdefs for V7 (as opposed to older) unix.

diffstat:

 games/backgammon/Makefile.inc        |  4 ++--
 games/backgammon/backgammon/main.c   |  8 ++------
 games/backgammon/teachgammon/teach.c |  8 ++------
 3 files changed, 6 insertions(+), 14 deletions(-)

diffs (75 lines):

diff -r b2461bce29ed -r 83db69768597 games/backgammon/Makefile.inc
--- a/games/backgammon/Makefile.inc     Sat Oct 13 19:19:38 2012 +0000
+++ b/games/backgammon/Makefile.inc     Sat Oct 13 19:25:22 2012 +0000
@@ -1,9 +1,9 @@
-#      $NetBSD: Makefile.inc,v 1.7 2010/02/03 15:34:38 roy Exp $
+#      $NetBSD: Makefile.inc,v 1.8 2012/10/13 19:25:22 dholland Exp $
 
 .include <bsd.own.mk>
 
 LIBCOMMON != cd ${.CURDIR}/../common_source; ${PRINTOBJDIR}
-CPPFLAGS+=-DV7 -I${.CURDIR}/../common_source
+CPPFLAGS+=-I${.CURDIR}/../common_source
 DPADD+= ${LIBCOMMON}/libcommon.a ${LIBTERMINFO}
 LDADD+=        -L${LIBCOMMON} -lcommon -lterminfo
 
diff -r b2461bce29ed -r 83db69768597 games/backgammon/backgammon/main.c
--- a/games/backgammon/backgammon/main.c        Sat Oct 13 19:19:38 2012 +0000
+++ b/games/backgammon/backgammon/main.c        Sat Oct 13 19:25:22 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.30 2012/10/13 19:19:38 dholland Exp $       */
+/*     $NetBSD: main.c,v 1.31 2012/10/13 19:25:22 dholland Exp $       */
 
 /*
  * Copyright (c) 1980, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)main.c     8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: main.c,v 1.30 2012/10/13 19:19:38 dholland Exp $");
+__RCSID("$NetBSD: main.c,v 1.31 2012/10/13 19:25:22 dholland Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -121,11 +121,7 @@
        /* need this now beceause getarg() may try to load a game */
        mm = &mmstore;
        move_init(mm);
-#ifdef V7
        while (*++argv != 0)    /* process arguments */
-#else
-       while (*++argv != -1)   /* process arguments */
-#endif
                getarg(mm, &argv);
        args[acnt] = '\0';
        if (tflag) {            /* clear screen */
diff -r b2461bce29ed -r 83db69768597 games/backgammon/teachgammon/teach.c
--- a/games/backgammon/teachgammon/teach.c      Sat Oct 13 19:19:38 2012 +0000
+++ b/games/backgammon/teachgammon/teach.c      Sat Oct 13 19:25:22 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: teach.c,v 1.22 2012/10/13 19:19:39 dholland Exp $      */
+/*     $NetBSD: teach.c,v 1.23 2012/10/13 19:25:22 dholland Exp $      */
 
 /*
  * Copyright (c) 1980, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)teach.c    8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: teach.c,v 1.22 2012/10/13 19:19:39 dholland Exp $");
+__RCSID("$NetBSD: teach.c,v 1.23 2012/10/13 19:25:22 dholland Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -81,11 +81,7 @@
        /* need this now beceause getarg() may try to load a game */
        mm = &mmstore;
        move_init(mm);
-#ifdef V7
        while (*++argv != 0)
-#else
-       while (*++argv != -1)
-#endif
                getarg(mm, &argv);
        if (tflag) {
                noech.c_oflag &= ~(ONLCR | OXTABS);



Home | Main Index | Thread Index | Old Index