From: Eric S. Raymond Date: Wed, 7 Jun 2017 13:46:25 +0000 (-0400) Subject: Localize a variable. X-Git-Tag: 1.1~566 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=cc618146e8d6236752c4dec2627275c7a3ecafa5;p=open-adventure.git Localize a variable. --- diff --git a/advent.h b/advent.h index 4df85b2..1c143e9 100644 --- a/advent.h +++ b/advent.h @@ -136,7 +136,7 @@ extern long AMBER, ATTACK, AXE, BACK, BATTER, BEAR, CLAM, COINS, DALTLC, DOOR, DPRSSN, DRAGON, DWARF, EGGS, EMRALD, ENTER, ENTRNC, FIND, FISSUR, FOOD, GRATE, HINT, I, INVENT, IGO, J, JADE, K, K2, KEYS, KK, - KNIFE, KQ, L, LAMP, LOCK, LOOK, + KNIFE, L, LAMP, LOCK, LOOK, MAGZIN, MAXDIE, MAXTRS, MESSAG, MIRROR, MXSCOR, NUGGET, NUL, OGRE, OIL, OLDOBJ, OYSTER, PANIC, PEARL, PILLOW, PLANT, PLANT2, PYRAM, RESER, ROD, ROD2, RUBY, RUG, SAPPH, SAY, diff --git a/main.c b/main.c index fd51c59..862cd0a 100644 --- a/main.c +++ b/main.c @@ -22,7 +22,7 @@ long AMBER, ATTACK, AXE, BACK, BATTER, BEAR, BIRD, BLOOD, CLAM, COINS, DALTLC, DOOR, DPRSSN, DRAGON, DWARF, EGGS, EMRALD, ENTER, ENTRNC, FIND, FISSUR, FOOD, GRATE, HINT, I, INVENT, IGO, J, JADE, K, K2, KEYS, KK, - KNIFE, KQ, L, LAMP, LOCK, LOOK, + KNIFE, L, LAMP, LOCK, LOOK, MAGZIN, MAXDIE, MAXTRS, MESSAG, MIRROR, MXSCOR, NUGGET, NUL, OGRE, OIL, OYSTER, PEARL, PILLOW, PLANT, PLANT2, PYRAM, RESER, ROD, ROD2, RUBY, RUG, SAPPH, SAY, @@ -154,7 +154,7 @@ static bool fallback_handler(char *buf) } static bool do_command(FILE *cmdin) { - long LL; + long LL, KQ; long obj; /* Can't leave cave once it's closing (except by main office). */