summaryrefslogtreecommitdiffstats
path: root/include/common.h
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-05-10 03:21:08 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-05-10 03:21:08 +0800
commita4ba6b74f6dc61cec1a6b258e1609d9f7f7ef8a5 (patch)
treed2abd2d1aa673ad667e60b8029f0796d2e20a78f /include/common.h
parent961bf03bac8ac5264a028d3f580904bbd5b4e37f (diff)
downloadpttbbs-a4ba6b74f6dc61cec1a6b258e1609d9f7f7ef8a5.tar
pttbbs-a4ba6b74f6dc61cec1a6b258e1609d9f7f7ef8a5.tar.gz
pttbbs-a4ba6b74f6dc61cec1a6b258e1609d9f7f7ef8a5.tar.bz2
pttbbs-a4ba6b74f6dc61cec1a6b258e1609d9f7f7ef8a5.tar.lz
pttbbs-a4ba6b74f6dc61cec1a6b258e1609d9f7f7ef8a5.tar.xz
pttbbs-a4ba6b74f6dc61cec1a6b258e1609d9f7f7ef8a5.tar.zst
pttbbs-a4ba6b74f6dc61cec1a6b258e1609d9f7f7ef8a5.zip
- (internal) change 86400/... (seconds of day/month/...) to named constants.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4284 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index 7ef044ea..b0d1a61f 100644
--- a/include/common.h
+++ b/include/common.h
@@ -33,6 +33,7 @@
#define FN_TICKET_BRDLIST "boardlist"
#define FN_BRDLISTHELP "etc/boardlist.help"
#define FN_BOARDHELP "etc/board.help"
+#define FN_USERMEMO "memo.txt" // 使用者個人記事本
// 自訂刪除文章時出現的標題與檔案
@@ -252,6 +253,12 @@
#define TYPEAHEAD_STDIN (0)
/* ----------------------------------------------------- */
+/* Constants */
+/* ----------------------------------------------------- */
+#define DAY_SECONDS (86400)
+#define MONTH_SECONDS (DAY_SECONDS*30)
+
+/* ----------------------------------------------------- */
/* Macros */
/* ----------------------------------------------------- */