summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorjack <jack@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-27 10:06:02 +0800
committerjack <jack@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-27 10:06:02 +0800
commit9d246fa5599d15acc8e4c1b19e338deeff7e4473 (patch)
tree6356c8619b24a6ed7d8b599717732b8446a2494c /util
parent9cb755831359f7640865037f165f277bff6619fe (diff)
downloadpttbbs-9d246fa5599d15acc8e4c1b19e338deeff7e4473.tar
pttbbs-9d246fa5599d15acc8e4c1b19e338deeff7e4473.tar.gz
pttbbs-9d246fa5599d15acc8e4c1b19e338deeff7e4473.tar.bz2
pttbbs-9d246fa5599d15acc8e4c1b19e338deeff7e4473.tar.lz
pttbbs-9d246fa5599d15acc8e4c1b19e338deeff7e4473.tar.xz
pttbbs-9d246fa5599d15acc8e4c1b19e338deeff7e4473.tar.zst
pttbbs-9d246fa5599d15acc8e4c1b19e338deeff7e4473.zip
add util/loadstr.c
git-svn-id: http://opensvn.csie.org/pttbbs/branches/Jaky.i18n@1866 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util')
-rw-r--r--util/Makefile5
-rw-r--r--util/loadstr.c9
2 files changed, 12 insertions, 2 deletions
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