diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/proto.h | 2 | ||||
-rw-r--r-- | include/pttstruct.h | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/include/proto.h b/include/proto.h index 36f8f59e..905b8502 100644 --- a/include/proto.h +++ b/include/proto.h @@ -476,7 +476,7 @@ int dashf(char *fname); void sethomepath(char *buf, char *userid); void sethomedir(char *buf, char *userid); char *Cdate(time_t *clock); -void sethomefile(char *buf, char *userid, char *fname); +void sethomefile(char *buf, char *userid, const char *fname); int log_file(char *fn, int flag, const char *fmt,...); void str_lower(char *t, char *s); void *strstr_lower(char *str, char *tag); diff --git a/include/pttstruct.h b/include/pttstruct.h index 1134586c..ce58a08e 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -140,6 +140,7 @@ typedef struct boardheader_t { char title[BTLEN + 1]; char BM[IDLEN * 3 + 3]; /* BMs' userid, token '/' */ unsigned int brdattr; /* board的屬性 */ + char chesscountry; char pad[3]; /* 沒用到的 */ time_t bupdate; /* note update time */ char pad2[3]; /* 沒用到的 */ @@ -181,6 +182,12 @@ typedef struct boardheader_t { #define BRD_LINK_TARGET(x) ((x)->postexpire) #define GROUPOP() (currmode & MODE_GROUPOP) +#ifdef CHESSCOUNTRY +#define CHESSCODE_NONE 0 +#define CHESSCODE_FIVE 1 +#define CHESSCODE_CCHESS 2 +#define CHESSCODE_MAX 2 +#endif /* defined(CHESSCOUNTRY) */ #define TTLEN 64 /* Length of title */ |