From 21ce304979b76ad5fff791e88f3f0c0fa22ce01a Mon Sep 17 00:00:00 2001 From: hubertf Date: Wed, 21 Jul 1999 13:10:47 +0000 Subject: 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 --- atc/grammar.y | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'atc') diff --git a/atc/grammar.y b/atc/grammar.y index 91266ac7..4687582d 100644 --- a/atc/grammar.y +++ b/atc/grammar.y @@ -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 @@ hdef: 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.")); -- cgit v1.2.3-56-ge451