summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-03-10 11:30:54 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-03-10 11:30:54 +0800
commitf63fd767f682e9eb4d5a2ca37c5884e4a5441b12 (patch)
tree017fa67cb2cf11904fb0643ad6763d15e321497a /include
parentb9f232fd155fd9c8bf6428d49dfdd392bcc6779e (diff)
downloadpttbbs-f63fd767f682e9eb4d5a2ca37c5884e4a5441b12.tar
pttbbs-f63fd767f682e9eb4d5a2ca37c5884e4a5441b12.tar.gz
pttbbs-f63fd767f682e9eb4d5a2ca37c5884e4a5441b12.tar.bz2
pttbbs-f63fd767f682e9eb4d5a2ca37c5884e4a5441b12.tar.lz
pttbbs-f63fd767f682e9eb4d5a2ca37c5884e4a5441b12.tar.xz
pttbbs-f63fd767f682e9eb4d5a2ca37c5884e4a5441b12.tar.zst
pttbbs-f63fd767f682e9eb4d5a2ca37c5884e4a5441b12.zip
add HOTBOARDCACHE
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1583 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/config.h4
-rw-r--r--include/pttstruct.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 55ed2d21..038cf992 100644
--- a/include/config.h
+++ b/include/config.h
@@ -101,6 +101,10 @@
#define OVERLOADBLOCKFDS (0) /* 禬更穦玂痙硂或 fd */
#endif
+#ifndef HOTBOARDCACHE
+#define HOTBOARDCACHE (0) /* 荐狾е */
+#endif
+
/* 临ゼ俱瞶 */
#define MAX_FRIEND (256) /* 更 cache ぇ程狟ね计ヘ */
#define MAX_REJECT (32) /* 更 cache ぇ程胊计ヘ */
diff --git a/include/pttstruct.h b/include/pttstruct.h
index a9775d0b..550b9437 100644
--- a/include/pttstruct.h
+++ b/include/pttstruct.h
@@ -365,6 +365,10 @@ typedef struct {
int BMcache[MAX_BOARD][MAX_BMs];
boardheader_t bcache[MAX_BOARD];
boardheader_t *bsorted[2][MAX_BOARD]; /* 0: by name 1: by class */
+#if HOTBOARDCACHE
+ char nHOTs;
+ boardheader_t *HBcache[HOTBOARDCACHE];
+#endif
#if DIRCACHESIZE
fileheader_t dircache[MAX_BOARD][DIRCACHESIZE];
#endif