From cf5f8e02c33eabfb339780d91074350ab41db28f Mon Sep 17 00:00:00 2001 From: kcwu Date: Fri, 19 Jun 2009 06:36:46 +0000 Subject: * make table pointer const, reduce 444 data bytes. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4665 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/edit.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'mbbsd/edit.c') 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 }; -- cgit v1.2.3