Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/games/hunt/hunt eliminate nested externs
details: https://anonhg.NetBSD.org/src/rev/18f832f63ec1
branches: trunk
changeset: 503359:18f832f63ec1
user: christos <christos%NetBSD.org@localhost>
date: Mon Feb 05 00:40:45 2001 +0000
description:
eliminate nested externs
diffstat:
games/hunt/hunt/hunt.c | 6 +++---
games/hunt/hunt/otto.c | 7 ++++---
2 files changed, 7 insertions(+), 6 deletions(-)
diffs (69 lines):
diff -r c2155cd1f304 -r 18f832f63ec1 games/hunt/hunt/hunt.c
--- a/games/hunt/hunt/hunt.c Mon Feb 05 00:37:43 2001 +0000
+++ b/games/hunt/hunt/hunt.c Mon Feb 05 00:40:45 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hunt.c,v 1.11 2000/04/14 05:58:03 simonb Exp $ */
+/* $NetBSD: hunt.c,v 1.12 2001/02/05 00:40:45 christos Exp $ */
/*
* Hunt
* Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold
@@ -7,7 +7,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hunt.c,v 1.11 2000/04/14 05:58:03 simonb Exp $");
+__RCSID("$NetBSD: hunt.c,v 1.12 2001/02/05 00:40:45 christos Exp $");
#endif /* not lint */
# include <sys/param.h>
@@ -94,6 +94,7 @@
SOCKET *list_drivers __P((void));
# endif
+extern int Otto_mode;
/*
* main:
* Main program for local process
@@ -105,7 +106,6 @@
{
char *term;
int c;
- extern int Otto_mode;
long enter_status;
enter_status = env_init((long) Q_CLOAK);
diff -r c2155cd1f304 -r 18f832f63ec1 games/hunt/hunt/otto.c
--- a/games/hunt/hunt/otto.c Mon Feb 05 00:37:43 2001 +0000
+++ b/games/hunt/hunt/otto.c Mon Feb 05 00:40:45 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: otto.c,v 1.3 1999/04/18 03:29:01 simonb Exp $ */
+/* $NetBSD: otto.c,v 1.4 2001/02/05 00:40:45 christos Exp $ */
# ifdef OTTO
/*
* otto - a hunt otto-matic player
@@ -12,7 +12,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: otto.c,v 1.3 1999/04/18 03:29:01 simonb Exp $");
+__RCSID("$NetBSD: otto.c,v 1.4 2001/02/05 00:40:45 christos Exp $");
#endif /* not lint */
# include <sys/time.h>
@@ -119,6 +119,8 @@
STATIC int stop_look __P((struct item *, char, int, int));
STATIC void wander __P((void));
+extern int Otto_count;
+
STATIC SIGNAL_TYPE
nothing(dummy)
int dummy;
@@ -131,7 +133,6 @@
char face;
{
int i;
- extern int Otto_count;
int old_mask;
# ifdef DEBUG
Home |
Main Index |
Thread Index |
Old Index