Eliminate a global variable.
This commit is contained in:
parent
42b339a1b6
commit
0a4325ce45
3 changed files with 4 additions and 2 deletions
|
@ -3,6 +3,8 @@
|
|||
#include "advent.h"
|
||||
#include "database.h"
|
||||
|
||||
#define VRSION 25 /* bump on save format change */
|
||||
|
||||
/*
|
||||
* Action handlers. Eventually we'll do lookup through a method table
|
||||
* that calls these. Absolutely nothing like the original FORTRAN.
|
||||
|
|
2
advent.h
2
advent.h
|
@ -185,5 +185,5 @@ extern long AMBER, ATTACK, AXE, BACK, BATTER, BEAR,
|
|||
STEPS, STICK, STREAM, THROW, TRIDNT, TROLL, TROLL2,
|
||||
URN, VASE, VEND, VOLCAN, WATER;
|
||||
/* everything else */
|
||||
extern long I, K, SPK, VRSION, WD1, WD1X, WD2, WD2X;
|
||||
extern long I, K, SPK, WD1, WD1X, WD2, WD2X;
|
||||
|
||||
|
|
2
main.c
2
main.c
|
@ -28,7 +28,7 @@ long AMBER, AXE, BACK, BATTER, BEAR, BIRD, BLOOD,
|
|||
RUBY, RUG, SAPPH, SAY, SECT, SIGN, SNAKE, SPK,
|
||||
STEPS, STREAM, THROW, TRIDNT, TROLL, TROLL2,
|
||||
URN, VASE, VEND,
|
||||
VOLCAN, VRSION = 25, WATER, WD1, WD1X, WD2, WD2X;
|
||||
VOLCAN, WATER, WD1, WD1X, WD2, WD2X;
|
||||
FILE *logfp;
|
||||
bool oldstyle = false;
|
||||
lcg_state lcgstate;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue