diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-03-10 11:30:54 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-03-10 11:30:54 +0800 |
commit | f63fd767f682e9eb4d5a2ca37c5884e4a5441b12 (patch) | |
tree | 017fa67cb2cf11904fb0643ad6763d15e321497a /include | |
parent | b9f232fd155fd9c8bf6428d49dfdd392bcc6779e (diff) | |
download | pttbbs-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.h | 4 | ||||
-rw-r--r-- | include/pttstruct.h | 4 |
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) /* �W����|�O�d�o��h�� fd */ #endif +#ifndef HOTBOARDCACHE +#define HOTBOARDCACHE (0) /* �����ݪO�֨� */ +#endif + /* �H�U�٥���z */ #define MAX_FRIEND (256) /* ���J cache ���̦h�B�ͼƥ� */ #define MAX_REJECT (32) /* ���J cache ���̦h�a�H�ƥ� */ 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 |