summaryrefslogtreecommitdiffstats
path: root/mbbsd/dark.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-06-04 04:48:54 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-06-04 04:48:54 +0800
commitcfe2d30c2a8fb3a5c1e6b99c0b26bfd61fca520b (patch)
tree4dbd531777a74b9d4da86a2433db23795a79ac3e /mbbsd/dark.c
parent6458d8379fc2bf2262ecc55f753aab70ea8a0ac4 (diff)
downloadpttbbs-cfe2d30c2a8fb3a5c1e6b99c0b26bfd61fca520b.tar
pttbbs-cfe2d30c2a8fb3a5c1e6b99c0b26bfd61fca520b.tar.gz
pttbbs-cfe2d30c2a8fb3a5c1e6b99c0b26bfd61fca520b.tar.bz2
pttbbs-cfe2d30c2a8fb3a5c1e6b99c0b26bfd61fca520b.tar.lz
pttbbs-cfe2d30c2a8fb3a5c1e6b99c0b26bfd61fca520b.tar.xz
pttbbs-cfe2d30c2a8fb3a5c1e6b99c0b26bfd61fca520b.tar.zst
pttbbs-cfe2d30c2a8fb3a5c1e6b99c0b26bfd61fca520b.zip
use 'const' keyword to reduce 7904 bytes data segment
from 9320 to 1416 git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2049 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/dark.c')
-rw-r--r--mbbsd/dark.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/dark.c b/mbbsd/dark.c
index e26dd890..c567cced 100644
--- a/mbbsd/dark.c
+++ b/mbbsd/dark.c
@@ -16,10 +16,10 @@ typedef struct cur {
static item brd[4][8];
static cur curr; /* 6 個 bytes */
-static char *rname[] = {"兵", "炮", "傌", "車", "相", "仕", "帥"};
-static char *bname[] = {"卒", "包", "馬", "車", "象", "士", "將"};
+static char * const rname[] = {"兵", "炮", "傌", "車", "相", "仕", "帥"};
+static char * const bname[] = {"卒", "包", "馬", "車", "象", "士", "將"};
-static sint cury[] = {3, 5, 7, 9}, curx[] = {5, 9, 13, 17, 21, 25, 29, 33};
+const static sint cury[] = {3, 5, 7, 9}, curx[] = {5, 9, 13, 17, 21, 25, 29, 33};
static sint rcount, bcount, cont, fix; /* cont:是否可連吃 */
static sint my = 0, mx = 0, mly = -1, mlx = -1; /* 移動的座標 標 */