From: Eric S. Raymond Date: Thu, 8 Jun 2017 08:31:06 +0000 (-0400) Subject: Localize V1 and V2 in main.c X-Git-Tag: 1.1~515 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=8bf31a9c193e0e27966933be1a033602bbbeac00;p=open-adventure.git Localize V1 and V2 in main.c --- diff --git a/advent.h b/advent.h index 8b99364..3e20815 100644 --- a/advent.h +++ b/advent.h @@ -189,6 +189,6 @@ extern long AMBER, ATTACK, AXE, BACK, BATTER, BEAR, RESER, ROD, ROD2, RUBY, RUG, SAPPH, SAY, SECT, SIGN, SNAKE, STEPS, STICK, STREAM, THROW, TRIDNT, TROLL, TROLL2, URN, VASE, VEND, VOLCAN, WATER; -/* evrything else */ -extern long I, J, K, L, SPK, V1, V2, VRSION, WD1, WD1X, WD2, WD2X; +/* everything else */ +extern long I, J, K, L, SPK, VRSION, WD1, WD1X, WD2, WD2X; diff --git a/main.c b/main.c index 04bb508..0d00266 100644 --- a/main.c +++ b/main.c @@ -27,7 +27,7 @@ long AMBER, ATTACK, AXE, BACK, BATTER, BEAR, BIRD, BLOOD, PEARL, PILLOW, PLANT, PLANT2, PYRAM, RESER, ROD, ROD2, RUBY, RUG, SAPPH, SAY, SECT, SIGN, SNAKE, SPK, STEPS, STICK, STREAM, THROW, TRIDNT, TROLL, TROLL2, - URN, V1, V2, VASE, VEND, + URN, VASE, VEND, VOLCAN, VRSION = 25, WATER, WD1, WD1X, WD2, WD2X; FILE *logfp; bool oldstyle = false; @@ -151,7 +151,7 @@ static bool fallback_handler(char *buf) } static bool do_command(FILE *cmdin) { - long LL, KQ, VERB, KK, K2; + long LL, KQ, VERB, KK, K2, V1, V2; long obj; long TK[21]; static long IGO = 0;