summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjack <jack@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-24 10:51:58 +0800
committerjack <jack@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-24 10:51:58 +0800
commit267f536b17c8ed2f8d0f924502083504fd2d326a (patch)
tree2a19907ccf18f5d6e8c419513a717d4808cb491b
parent65279e4f0459af318912356e3bbd04baa2aae7e9 (diff)
downloadpttbbs-267f536b17c8ed2f8d0f924502083504fd2d326a.tar
pttbbs-267f536b17c8ed2f8d0f924502083504fd2d326a.tar.gz
pttbbs-267f536b17c8ed2f8d0f924502083504fd2d326a.tar.bz2
pttbbs-267f536b17c8ed2f8d0f924502083504fd2d326a.tar.lz
pttbbs-267f536b17c8ed2f8d0f924502083504fd2d326a.tar.xz
pttbbs-267f536b17c8ed2f8d0f924502083504fd2d326a.tar.zst
pttbbs-267f536b17c8ed2f8d0f924502083504fd2d326a.zip
add #ifdef i18n to SHM_t structure
git-svn-id: http://opensvn.csie.org/pttbbs/branches/Jaky.i18n@1840 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--include/config.h8
-rw-r--r--include/pttstruct.h4
2 files changed, 11 insertions, 1 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 d4df2fe9..eafc8636 100644
--- a/include/pttstruct.h
+++ b/include/pttstruct.h
@@ -424,13 +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 {