summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-08-12 21:03:28 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-08-12 21:03:28 +0800
commit2d360031b079b8f6181d1d5e244d617dd47cefe8 (patch)
tree31b390dc08dd62bd7b26ad430a07f23f4f9be511 /include
parent83ded54df48fa434f77831bb8280603973e2e989 (diff)
downloadpttbbs-2d360031b079b8f6181d1d5e244d617dd47cefe8.tar
pttbbs-2d360031b079b8f6181d1d5e244d617dd47cefe8.tar.gz
pttbbs-2d360031b079b8f6181d1d5e244d617dd47cefe8.tar.bz2
pttbbs-2d360031b079b8f6181d1d5e244d617dd47cefe8.tar.lz
pttbbs-2d360031b079b8f6181d1d5e244d617dd47cefe8.tar.xz
pttbbs-2d360031b079b8f6181d1d5e244d617dd47cefe8.tar.zst
pttbbs-2d360031b079b8f6181d1d5e244d617dd47cefe8.zip
Chess country basic things constructing.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2162 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/proto.h2
-rw-r--r--include/pttstruct.h7
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 */