Limit visibility of ugly globals.
authorEric S. Raymond <esr@thyrsus.com>
Mon, 12 Jun 2017 01:07:53 +0000 (21:07 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 12 Jun 2017 01:07:53 +0000 (21:07 -0400)
actions.c
advent.h

index 5d1c6a391b6d7426bec7401812ce321e0b9e81aa..d5579159870b7575253a7d6910204fc3f72b9b69 100644 (file)
--- 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.
index 945543ce488e84cd6428b22eb263cfa480f7d005..48aab1d0517b505e7f57f8b05f224f89a7b777b2 100644 (file)
--- 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};