Limit visibility of ugly globals.

This commit is contained in:
Eric S. Raymond 2017-06-11 21:07:53 -04:00
parent 32b04f190e
commit 7485a8a1e1
2 changed files with 3 additions and 2 deletions

View file

@ -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.

View file

@ -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};