summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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