From d5b5d39d9d9e657c11cf937db215aad22c998255 Mon Sep 17 00:00:00 2001 From: jack Date: Sat, 24 Apr 2004 22:47:01 +0000 Subject: git-svn-id: http://opensvn.csie.org/pttbbs/branches/Jaky.i18n@1847 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/pttstruct.h | 6 +++--- mbbsd/Makefile | 2 +- mbbsd/i18n.c | 6 ++++++ 3 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 mbbsd/i18n.c diff --git a/include/pttstruct.h b/include/pttstruct.h index eafc8636..58c45588 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -427,10 +427,10 @@ typedef struct { #ifdef I18N /* i18n(internationlization) */ - char *i18nstrptr[MAX_LANG][MAX_STRING]; - char i18nstrbody[16 * MAX_LANG * MAX_STRING]; + const char *i18nstr[MAX_LANG][MAX_STRING]; + char i18nstrbody[20 * MAX_LANG * MAX_STRING]; /* Based on the statistis, we found the lengh of one string - is 16 bytes approximately. + is 20 bytes approximately. */ #endif } SHM_t; diff --git a/mbbsd/Makefile b/mbbsd/Makefile index 1a078380..777dfdbe 100644 --- a/mbbsd/Makefile +++ b/mbbsd/Makefile @@ -13,7 +13,7 @@ OBJS= admin.o announce.o args.o assess.o bbs.o board.o cache.o cal.o card.o\ gomo.o guess.o indict.o io.o kaede.o lovepaper.o mail.o mbbsd.o menu.o\ more.o name.o osdep.o othello.o page.o read.o record.o\ register.o screen.o stuff.o talk.o term.o topsong.o user.o brc.o\ - vice.o vote.o xyz.o voteboard.o syspost.o var.o passwd.o calendar.o + vice.o vote.o xyz.o voteboard.o syspost.o var.o passwd.o calendar.o i18n.o .SUFFIXES: .c .o .c.o: ../include/var.h diff --git a/mbbsd/i18n.c b/mbbsd/i18n.c new file mode 100644 index 00000000..91403612 --- /dev/null +++ b/mbbsd/i18n.c @@ -0,0 +1,6 @@ +#include "bbs.h" + +#ifdef I18N +void load_i18nstring() { +} +#endif -- cgit v1.2.3