From a4ba6b74f6dc61cec1a6b258e1609d9f7f7ef8a5 Mon Sep 17 00:00:00 2001 From: piaip Date: Fri, 9 May 2008 19:21:08 +0000 Subject: - (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 --- include/common.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/common.h') 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" // 使用者個人記事本 // 自訂刪除文章時出現的標題與檔案 @@ -251,6 +252,12 @@ #define TYPEAHEAD_NONE (-1) #define TYPEAHEAD_STDIN (0) +/* ----------------------------------------------------- */ +/* Constants */ +/* ----------------------------------------------------- */ +#define DAY_SECONDS (86400) +#define MONTH_SECONDS (DAY_SECONDS*30) + /* ----------------------------------------------------- */ /* Macros */ /* ----------------------------------------------------- */ -- cgit v1.2.3