From: Eric S. Raymond Date: Tue, 23 May 2017 00:51:55 +0000 (-0400) Subject: More magic-number elimination. X-Git-Tag: seed~92 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=01b2c05cbb7299241571f7f039a591e09088aeec;p=open-adventure.git More magic-number elimination. --- diff --git a/main.c b/main.c index 08d7092..49acfa6 100644 --- a/main.c +++ b/main.c @@ -15,7 +15,7 @@ long ABB[186], ATAB[331], ATLOC[186], BLKLIN = true, DFLAG, KTAB[331], *LINES, LINK[201], LNLENG, LNPOSN, PARMS[26], PLACE[101], PTEXT[101], RTEXT[278], SETUP = 0, TABSIZ = 330; -signed char INLINE[LINESIZE], MAP1[129], MAP2[129]; +signed char INLINE[LINESIZE+1], MAP1[129], MAP2[129]; long ABBNUM, ACTSPK[36], AMBER, ATTACK, AXE, BACK, BATTER, BEAR, BIRD, BLOOD, BONUS, BOTTLE, CAGE, CAVE, CAVITY, CHAIN, CHASM, CHEST, CHLOC, CHLOC2, diff --git a/main.h b/main.h index 3de002e..9dc7b3d 100644 --- a/main.h +++ b/main.h @@ -1,6 +1,6 @@ -#define LINESIZE 101 +#define LINESIZE 100 extern long ABB[], ATAB[], ATLOC[], BLKLIN, DFLAG, DLOC[], FIXED[], HOLDNG, KTAB[], *LINES, LINK[], LNLENG, LNPOSN, PARMS[], PLACE[], PTEXT[], RTEXT[], TABSIZ; -extern signed char INLINE[LINESIZE], MAP1[], MAP2[]; +extern signed char INLINE[LINESIZE+1], MAP1[], MAP2[];