From ef6481cca41aca3c247f845ef55a9b2cd491be65 Mon Sep 17 00:00:00 2001 From: piaip Date: Wed, 5 Dec 2007 13:06:28 +0000 Subject: - definition and macro fix after sync with PTT1 git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3640 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/config.h | 4 ---- include/uflags.h | 1 + mbbsd/brc.c | 8 ++++---- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/include/config.h b/include/config.h index ff5006a0..80a3e403 100644 --- a/include/config.h +++ b/include/config.h @@ -295,10 +295,6 @@ #define ALLHIDPOST "ALLHIDPOST" #define MAXTAGS 256 -#define BRC_STRLEN 15 /* Length of board name */ -#define BRC_MAXSIZE 49152 -#define BRC_MAXNUM 80 - #define WRAPMARGIN (511) #endif diff --git a/include/uflags.h b/include/uflags.h index 1686c98e..752dc73a 100644 --- a/include/uflags.h +++ b/include/uflags.h @@ -60,6 +60,7 @@ #define ANGEL_R_MAEL 0x00001000 /* true if reject male */ #define ANGEL_R_FEMAEL 0x00002000 /* true if reject female */ #define ANGEL_MASK 0x00003000 +#define REJECT_QUESTION (cuser.uflag2 & REJ_QUESTION) #define ANGEL_STATUS() ((cuser.uflag2 & ANGEL_MASK) >> 12) #define ANGEL_SET(X) (cuser.uflag2 = (cuser.uflag2 & ~ANGEL_MASK) | \ (((X) & 3) << 12)) diff --git a/mbbsd/brc.c b/mbbsd/brc.c index be242367..4317dfd1 100644 --- a/mbbsd/brc.c +++ b/mbbsd/brc.c @@ -7,20 +7,20 @@ * original time_t as 'create'. */ -// WARNING: Check ../include/config.h, you may have overide these value there +// WARNING: Check ../pttbbs.conf, you may have overide these value there +// TODO MAXSIZE may be better smaller to fit into memory page. #ifndef BRC_MAXNUM -#define BRC_STRLEN 15 /* Length of board name, for old brc */ #define BRC_MAXSIZE 49152 /* Effective size of brc rc file, 8192 * 3 * 2 */ #define BRC_MAXNUM 80 /* Upper bound of brc_num, size of brc_list */ #endif #define BRC_BLOCKSIZE 1024 -// Note: BRC v3 should already support MAX_BOARD > 65535, +// Note: BRC v3 should already support MAX_BOARD > 65535 and BRC_MAXSIZE > 65535, // but not widely tested yet. #if MAX_BOARD > 65535 || BRC_MAXSIZE > 65535 #error Max number of boards or BRC_MAXSIZE cannot fit in unsigned short, \ -please rewrite brc.c +please rewrite brc.c (v2) #endif typedef uint32_t brcbid_t; -- cgit v1.2.3