From 9d246fa5599d15acc8e4c1b19e338deeff7e4473 Mon Sep 17 00:00:00 2001 From: jack Date: Tue, 27 Apr 2004 02:06:02 +0000 Subject: add util/loadstr.c git-svn-id: http://opensvn.csie.org/pttbbs/branches/Jaky.i18n@1866 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- util/Makefile | 5 +++-- util/loadstr.c | 9 +++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 util/loadstr.c diff --git a/util/Makefile b/util/Makefile index 04645f6f..0f6e38af 100644 --- a/util/Makefile +++ b/util/Makefile @@ -2,7 +2,7 @@ .include "../pttbbs.mk" -CFLAGS+= -DPTTBBS_UTIL +CFLAGS+= -DPTTBBS_UTIL -g BBSBASE= ../include/var.h @@ -22,7 +22,8 @@ CPROG_WITH_UTIL= \ openvice parse_news openticket topusr \ indexuser yearsold toplazyBM toplazyBBM \ reaper buildAnnounce inndBM shmctl \ - outmail chkhbf checkmoney merge_dir + outmail chkhbf checkmoney merge_dir \ + loadstr # 下面這些程式, 會直接被 compile CPROG_WITHOUT_UTIL= \ diff --git a/util/loadstr.c b/util/loadstr.c new file mode 100644 index 00000000..e95a115a --- /dev/null +++ b/util/loadstr.c @@ -0,0 +1,9 @@ +#include "bbs.h" + +#ifdef I18N +int main() { + attach_SHM(); + load_i18nstring(); + return 0; +} +#endif -- cgit v1.2.3