From: Eric S. Raymond Date: Mon, 12 Jun 2017 01:07:53 +0000 (-0400) Subject: Limit visibility of ugly globals. X-Git-Tag: 1.1~404 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=7485a8a1e1b8fefbc1125afbe855d8a1377d1fb4;p=open-adventure.git Limit visibility of ugly globals. --- 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};