diff options
author | jack <jack@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-24 11:04:14 +0800 |
---|---|---|
committer | jack <jack@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-24 11:04:14 +0800 |
commit | 38bde17fbfd3ebd01089fa6418bfdfb0ac7c2c27 (patch) | |
tree | 6eceae06fb8f69ee24c08338c789bba3346a2fd7 | |
parent | 55dc11d584c1995a53fd90002e4a1184d2b1cdfe (diff) | |
download | pttbbs-38bde17fbfd3ebd01089fa6418bfdfb0ac7c2c27.tar pttbbs-38bde17fbfd3ebd01089fa6418bfdfb0ac7c2c27.tar.gz pttbbs-38bde17fbfd3ebd01089fa6418bfdfb0ac7c2c27.tar.bz2 pttbbs-38bde17fbfd3ebd01089fa6418bfdfb0ac7c2c27.tar.lz pttbbs-38bde17fbfd3ebd01089fa6418bfdfb0ac7c2c27.tar.xz pttbbs-38bde17fbfd3ebd01089fa6418bfdfb0ac7c2c27.tar.zst pttbbs-38bde17fbfd3ebd01089fa6418bfdfb0ac7c2c27.zip |
create i18n string array in shm
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1843 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | include/config.h | 8 | ||||
-rw-r--r-- | include/pttstruct.h | 9 |
2 files changed, 17 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index d44ce8a0..5f9a5a73 100644 --- a/include/config.h +++ b/include/config.h @@ -25,6 +25,14 @@ #define MAX_CPULOAD (70) /* CPU 最高load */ #endif +#ifndef MAX_LANG +#define MAX_LANG (1) /* 最多使用語言 */ +#endif + +#ifndef MAX_STRING +#define MAX_STRING (8000) /* 系統最多使用字串 */ +#endif + #ifndef MAX_POST_MONEY /* 發表文章稿費的上限 */ #define MAX_POST_MONEY 100 #endif diff --git a/include/pttstruct.h b/include/pttstruct.h index 80cef86c..eafc8636 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -424,6 +424,15 @@ typedef struct { time_t Fuptime; time_t Ftouchtime; int Fbusystate; + +#ifdef I18N + /* i18n(internationlization) */ + char *i18nstrptr[MAX_LANG][MAX_STRING]; + char i18nstrbody[16 * MAX_LANG * MAX_STRING]; + /* Based on the statistis, we found the lengh of one string + is 16 bytes approximately. + */ +#endif } SHM_t; typedef struct { |