summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-19 14:36:46 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-19 14:36:46 +0800
commitcf5f8e02c33eabfb339780d91074350ab41db28f (patch)
treecc3905e768ffcf7bf2612c5cb1003b9201acd4c9
parent6b189c0c1aca68829f07bc11e2740af5dd617c5f (diff)
downloadpttbbs-cf5f8e02c33eabfb339780d91074350ab41db28f.tar
pttbbs-cf5f8e02c33eabfb339780d91074350ab41db28f.tar.gz
pttbbs-cf5f8e02c33eabfb339780d91074350ab41db28f.tar.bz2
pttbbs-cf5f8e02c33eabfb339780d91074350ab41db28f.tar.lz
pttbbs-cf5f8e02c33eabfb339780d91074350ab41db28f.tar.xz
pttbbs-cf5f8e02c33eabfb339780d91074350ab41db28f.tar.zst
pttbbs-cf5f8e02c33eabfb339780d91074350ab41db28f.zip
* make table pointer const, reduce 444 data bytes.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4665 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/edit.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/mbbsd/edit.c b/mbbsd/edit.c
index 8521a871..3b020a33 100644
--- a/mbbsd/edit.c
+++ b/mbbsd/edit.c
@@ -2188,24 +2188,24 @@ enum {
};
-static const char *luaKeywords[] = {
+static const char * const luaKeywords[] = {
"and", "break", "do", "else", "elseif",
"end", "for", "if", "in", "not", "or",
"repeat","return","then","until","while",
NULL
};
-static const char *luaDataKeywords[] = {
+static const char * const luaDataKeywords[] = {
"false", "function", "local", "nil", "true",
NULL
};
-static const char *luaFunctions[] = {
+static const char * const luaFunctions[] = {
"assert", "print", "tonumber", "tostring", "type",
NULL
};
-static const char *luaMath[] = {
+static const char * const luaMath[] = {
"abs", "acos", "asin", "atan", "atan2", "ceil", "cos", "cosh", "deg",
"exp", "floor", "fmod", "frexp", "ldexp", "log", "log10", "max", "min",
"modf", "pi", "pow", "rad", "random", "randomseed", "sin", "sinh",
@@ -2213,17 +2213,17 @@ static const char *luaMath[] = {
NULL
};
-static const char *luaTable[] = {
+static const char * const luaTable[] = {
"concat", "insert", "maxn", "remove", "sort",
NULL
};
-static const char *luaString[] = {
+static const char * const luaString[] = {
"byte", "char", "dump", "find", "format", "gmatch", "gsub", "len",
"lower", "match", "rep", "reverse", "sub", "upper", NULL
};
-static const char *luaBbs[] = {
+static const char * const luaBbs[] = {
"ANSI_COLOR", "ANSI_RESET", "ESC", "addstr", "clear", "clock",
"clrtobot", "clrtoeol", "color", "ctime", "getch","getdata",
"getmaxyx", "getstr", "getyx", "interface", "kball", "kbhit", "kbreset",
@@ -2233,27 +2233,27 @@ static const char *luaBbs[] = {
NULL
};
-static const char *luaToc[] = {
+static const char * const luaToc[] = {
"author", "date", "interface", "latestref",
"notes", "title", "version",
NULL
};
-static const char *luaBit[] = {
+static const char * const luaBit[] = {
"arshift", "band", "bnot", "bor", "bxor", "cast", "lshift", "rshift",
NULL
};
-static const char *luaStore[] = {
+static const char * const luaStore[] = {
"USER", "GLOBAL", "iolimit", "limit", "load", "save",
NULL
};
-static const char *luaLibs[] = {
+static const char * const luaLibs[] = {
"bbs", "bit", "math", "store", "string", "table", "toc",
NULL
};
-static const char**luaLibAPI[] = {
+static const char** const luaLibAPI[] = {
luaBbs, luaBit, luaMath, luaStore, luaString, luaTable, luaToc,
NULL
};