diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/config.h | 5 | ||||
-rw-r--r-- | include/pttstruct.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/include/config.h b/include/config.h index c3d7d2fa..4958b24f 100644 --- a/include/config.h +++ b/include/config.h @@ -93,8 +93,11 @@ #define MAX_EXKEEPMAIL (1000) /* 程獺絚ぶ */ #endif -/* 临ゼ俱瞶 */ +#ifndef DIRCACHESIZE #define DIRCACHESIZE (40) /* cache ゅ彻い程40絞 */ +#endif + +/* 临ゼ俱瞶 */ #define MAX_FRIEND (256) /* 更 cache ぇ程狟ね计ヘ */ #define MAX_REJECT (32) /* 更 cache ぇ程胊计ヘ */ #define MAX_MSGS (10) /* 瞴(荐癟)г瑻 */ diff --git a/include/pttstruct.h b/include/pttstruct.h index 9b9efe72..7ec5fd3d 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -362,7 +362,9 @@ 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 DIRCACHESIZE fileheader_t dircache[MAX_BOARD][DIRCACHESIZE]; +#endif time_t busystate_b[MAX_BOARD]; int total[MAX_BOARD]; int hbfl[MAX_BOARD][MAX_FRIEND + 1]; |