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 +++++++ include/proto.h | 1 + 2 files changed, 8 insertions(+) (limited to 'include') 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 */ /* ----------------------------------------------------- */ diff --git a/include/proto.h b/include/proto.h index affb2c26..74139931 100644 --- a/include/proto.h +++ b/include/proto.h @@ -629,6 +629,7 @@ int is_uBM(const char *list, const char *id); void FREE(void *ptr); #endif void syncnow(void); +void wait_penalty(int sec); /* syspost */ int post_msg(const char* bname, const char* title, const char *msg, const char* author); -- cgit v1.2.3