Source-Changes-HG archive

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

[src/trunk]: src/games/atc When atc(6) parses its game definition files, the ...



details:   https://anonhg.NetBSD.org/src/rev/09d279f99c85
branches:  trunk
changeset: 474807:09d279f99c85
user:      hubertf <hubertf%NetBSD.org@localhost>
date:      Wed Jul 21 13:10:47 1999 +0000

description:
When atc(6) parses its game definition files, the check for `width'
being defined more than once incorrectly checks for `height' having
been previously defined instead.

Patch submitted in PR 8038 by Joseph Myers <jsm28%cam.ac.uk@localhost>

diffstat:

 games/atc/grammar.y |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b7868a867f40 -r 09d279f99c85 games/atc/grammar.y
--- a/games/atc/grammar.y       Wed Jul 21 13:10:23 1999 +0000
+++ b/games/atc/grammar.y       Wed Jul 21 13:10:47 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: grammar.y,v 1.4 1997/10/10 02:07:08 lukem Exp $        */
+/*     $NetBSD: grammar.y,v 1.5 1999/07/21 13:10:47 hubertf Exp $      */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -68,7 +68,7 @@
 #if 0
 static char sccsid[] = "@(#)grammar.y  8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: grammar.y,v 1.4 1997/10/10 02:07:08 lukem Exp $");
+__RCSID("$NetBSD: grammar.y,v 1.5 1999/07/21 13:10:47 hubertf Exp $");
 #endif
 #endif /* not lint */
 
@@ -137,7 +137,7 @@
 wdef:
        WidthOp '=' ConstOp ';'
                {
-               if (sp->height != 0)
+               if (sp->width != 0)
                        return (yyerror("Redefinition of 'width'."));
                else if ($3 < 3)
                        return (yyerror("'width' is too small."));



Home | Main Index | Thread Index | Old Index