From 7485a8a1e1b8fefbc1125afbe855d8a1377d1fb4 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 11 Jun 2017 21:07:53 -0400 Subject: [PATCH] Limit visibility of ugly globals. --- actions.c | 3 +++ advent.h | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/actions.c b/actions.c index 5d1c6a3..d557915 100644 --- a/actions.c +++ b/actions.c @@ -3,6 +3,9 @@ #include "advent.h" #include "database.h" +/* Limit visibility of ugly globals. Eventually these should go away. */ +extern long K, SPK, WD1, WD1X, WD2, WD2X; + /* * Action handlers. Eventually we'll do lookup through a method table * that calls these. Absolutely nothing like the original FORTRAN. diff --git a/advent.h b/advent.h index 945543c..48aab1d 100644 --- a/advent.h +++ b/advent.h @@ -169,8 +169,6 @@ extern long AMBER, ATTACK, AXE, BACK, BATTER, BEAR, RESER, ROD, ROD2, RUBY, RUG, SAPPH, SAY, SIGN, SNAKE, STEPS, STICK, STREAM, THROW, TRIDNT, TROLL, TROLL2, URN, VASE, VEND, VOLCAN, WATER; -/* everything else */ -extern long K, SPK, WD1, WD1X, WD2, WD2X; enum speechpart {unknown, intransitive, transitive}; -- 2.31.1