Source-Changes-HG archive

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

[src/trunk]: src/games/atc fix redundant decls and nested externs



details:   https://anonhg.NetBSD.org/src/rev/a149229fa7d9
branches:  trunk
changeset: 503352:a149229fa7d9
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Feb 05 00:22:52 2001 +0000

description:
fix redundant decls and nested externs

diffstat:

 games/atc/extern.h |  4 +++-
 games/atc/main.c   |  6 +++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diffs (52 lines):

diff -r fdbd317e4d30 -r a149229fa7d9 games/atc/extern.h
--- a/games/atc/extern.h        Mon Feb 05 00:20:58 2001 +0000
+++ b/games/atc/extern.h        Mon Feb 05 00:22:52 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: extern.h,v 1.8 1999/07/17 19:57:03 hubertf Exp $       */
+/*     $NetBSD: extern.h,v 1.9 2001/02/05 00:22:52 christos Exp $      */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -110,7 +110,9 @@
 void           update __P((int));
 int            yyerror __P((const char *));
 int            yylex __P((void));
+#ifndef YYEMPTY
 int            yyparse __P((void));
+#endif
 const char     *Left __P((char));
 const char     *Right __P((char));
 const char     *airport __P((char));
diff -r fdbd317e4d30 -r a149229fa7d9 games/atc/main.c
--- a/games/atc/main.c  Mon Feb 05 00:20:58 2001 +0000
+++ b/games/atc/main.c  Mon Feb 05 00:22:52 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.11 2000/05/08 07:56:01 mycroft Exp $        */
+/*     $NetBSD: main.c,v 1.12 2001/02/05 00:22:52 christos Exp $       */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -55,13 +55,14 @@
 #if 0
 static char sccsid[] = "@(#)main.c     8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: main.c,v 1.11 2000/05/08 07:56:01 mycroft Exp $");
+__RCSID("$NetBSD: main.c,v 1.12 2001/02/05 00:22:52 christos Exp $");
 #endif
 #endif /* not lint */
 
 #include "include.h"
 #include "pathnames.h"
 
+extern FILE    *yyin;
 
 int
 main(ac, av)
@@ -214,7 +215,6 @@
 read_file(s)
        const char      *s;
 {
-       extern FILE     *yyin;
        int             retval;
 
        file = s;



Home | Main Index | Thread Index | Old Index