summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authormhsin <mhsin@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-17 16:14:27 +0800
committermhsin <mhsin@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-17 16:14:27 +0800
commitd023f75854cf77c29a1d2b52635bab90dc370fa1 (patch)
treebbdf07c2b6e1b80750f611588d433adb1e32a509 /include
parentec4a554115d214ba754951deb570742a5c0bb2e2 (diff)
downloadpttbbs-d023f75854cf77c29a1d2b52635bab90dc370fa1.tar
pttbbs-d023f75854cf77c29a1d2b52635bab90dc370fa1.tar.gz
pttbbs-d023f75854cf77c29a1d2b52635bab90dc370fa1.tar.bz2
pttbbs-d023f75854cf77c29a1d2b52635bab90dc370fa1.tar.lz
pttbbs-d023f75854cf77c29a1d2b52635bab90dc370fa1.tar.xz
pttbbs-d023f75854cf77c29a1d2b52635bab90dc370fa1.tar.zst
pttbbs-d023f75854cf77c29a1d2b52635bab90dc370fa1.zip
* Add Article IDentification System(AIDS)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3700 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/common.h3
-rw-r--r--include/proto.h5
2 files changed, 8 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index 2f01b82f..e8ab5da9 100644
--- a/include/common.h
+++ b/include/common.h
@@ -92,6 +92,9 @@
#define STR_POST1 "看板:"
#define STR_POST2 "站內:"
+/* AID */
+#define AID_DISPLAYNAME "文章代碼(AID)"
+
/* LONG MESSAGES */
#define MSG_SELECT_BOARD ANSI_COLOR(7) "【 選擇看板 】" ANSI_RESET "\n" \
"請輸入看板名稱(按空白鍵自動搜尋):"
diff --git a/include/proto.h b/include/proto.h
index 247b47cd..cc69cda3 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -641,6 +641,11 @@ int qsort_intcompar(const void *a, const void *b);
void pressanykey_or_callangel(void);
#endif
void syncnow(void);
+unsigned long fn2aidu(char *fn);
+char *aidu2aidc(char *buf, unsigned long aidu);
+char *aidu2fn(char *buf, unsigned long aidu);
+unsigned long aidc2aidu(char *aidc);
+int search_aidu(char *bfile, unsigned long aidu);
/* syspost */
int post_msg(const char* bname, const char* title, const char *msg, const char* author);