diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-18 00:42:57 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-18 00:42:57 +0800 |
commit | c2cded3c25ffed4bd3ceda295b477d8b5f6f929c (patch) | |
tree | 8fdd9e896ff38c4545a74c225218010776965ff3 /include | |
parent | 1d88f1ec941997fad204a51371b0ef4552d62ea8 (diff) | |
download | pttbbs-c2cded3c25ffed4bd3ceda295b477d8b5f6f929c.tar pttbbs-c2cded3c25ffed4bd3ceda295b477d8b5f6f929c.tar.gz pttbbs-c2cded3c25ffed4bd3ceda295b477d8b5f6f929c.tar.bz2 pttbbs-c2cded3c25ffed4bd3ceda295b477d8b5f6f929c.tar.lz pttbbs-c2cded3c25ffed4bd3ceda295b477d8b5f6f929c.tar.xz pttbbs-c2cded3c25ffed4bd3ceda295b477d8b5f6f929c.tar.zst pttbbs-c2cded3c25ffed4bd3ceda295b477d8b5f6f929c.zip |
Equivalent config file updates
- little/big endian is useless.
- DBCSAWARE_* now merged into DBCSAWARE
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3056 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r-- | include/config.h | 4 | ||||
-rw-r--r-- | include/proto.h | 3 | ||||
-rw-r--r-- | include/pttstruct.h | 14 |
3 files changed, 4 insertions, 17 deletions
diff --git a/include/config.h b/include/config.h index b6254a08..194e5dc9 100644 --- a/include/config.h +++ b/include/config.h @@ -46,11 +46,11 @@ #endif #ifndef MAX_POST_MONEY /* 發表文章稿費的上限 */ -#define MAX_POST_MONEY 100 +#define MAX_POST_MONEY (100) #endif #ifndef MAX_CHICKEN_MONEY /* 養雞場獲利上限 */ -#define MAX_CHICKEN_MONEY 100 +#define MAX_CHICKEN_MONEY (100) #endif #ifndef MAX_GUEST_LIFE /* 最長未認證使用者保留時間(秒) */ diff --git a/include/proto.h b/include/proto.h index 87efad8c..46784a17 100644 --- a/include/proto.h +++ b/include/proto.h @@ -719,8 +719,7 @@ int u_editsig(void); int u_cloak(void); int u_register(void); int u_list(void); -#if defined(DBCSAWARE_GETDATA) || defined(DBCSAWARE_EDIT) -# define DBCSAWARE +#ifdef DBCSAWARE int u_detectDBCSAwareEvilClient(); int getDBCSstatus(unsigned char *s, int pos); #define ISDBCSAWARE() (cuser.uflag & DBCSAWARE_FLAG) diff --git a/include/pttstruct.h b/include/pttstruct.h index 6794d38b..22cc64a1 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -246,18 +246,6 @@ typedef struct fileheader_t { int money; int anon_uid; /* different order to match alignment */ -#ifdef _BIG_ENDIAN - struct { - unsigned char pad[1]; /* money & 0xff000000 */ - unsigned char regtime; /* money & 0xff0000 */ - unsigned char logins; /* money & 0xff00 */ - unsigned char posts; /* money & 0xff */ - } vote_limits; - struct { - unsigned int flag:1; - unsigned int ref:31; - } refer; -#else struct { unsigned char posts; /* money & 0xff */ unsigned char logins; /* money & 0xff00 */ @@ -265,10 +253,10 @@ typedef struct fileheader_t { unsigned char pad[1]; /* money & 0xffff0000 */ } vote_limits; struct { + /* is this ordering correct? */ unsigned int ref:31; unsigned int flag:1; } refer; -#endif } multi; /* rocker: if bit32 on ==> reference */ /* XXX dirty, split into flag and money if money of each file is less than 16bit? */ unsigned char filemode; /* must be last field @ boards.c */ |