diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-09-15 17:00:55 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-09-15 17:00:55 +0800 |
commit | 53923bff58000761fcfa19c346727fb9eb877047 (patch) | |
tree | bbf758258d48059688b74719ab7569bba6519816 /include/pttstruct.h | |
parent | 74f24ed0c4f5309d4ff0fb896a168a11c3a6094e (diff) | |
download | pttbbs-53923bff58000761fcfa19c346727fb9eb877047.tar pttbbs-53923bff58000761fcfa19c346727fb9eb877047.tar.gz pttbbs-53923bff58000761fcfa19c346727fb9eb877047.tar.bz2 pttbbs-53923bff58000761fcfa19c346727fb9eb877047.tar.lz pttbbs-53923bff58000761fcfa19c346727fb9eb877047.tar.xz pttbbs-53923bff58000761fcfa19c346727fb9eb877047.tar.zst pttbbs-53923bff58000761fcfa19c346727fb9eb877047.zip |
real main text editing.
recommendation/comments are not modifiable now.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3172 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include/pttstruct.h')
-rw-r--r-- | include/pttstruct.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/include/pttstruct.h b/include/pttstruct.h index 52b7881a..096b91da 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -235,24 +235,27 @@ typedef struct boardheader_t { #define TTLEN 64 /* Length of title */ -#define FNLEN 33 /* Length of filename */ +#define FNLEN 28 /* Length of filename */ typedef struct fileheader_t { - char filename[FNLEN]; /* M.9876543210.A */ + char filename[FNLEN]; /* M.1120582370.A.1EA [19+1] */ + int textlen; /* main text length in post */ + char pad; /* padding, not used */ char recommend; /* important level */ char owner[IDLEN + 2]; /* uid[.] */ char date[6]; /* [02/02] or space(5) */ char title[TTLEN + 1]; + /* TODO this multi is a mess now. */ union { /* TODO: MOVE money to outside multi!!!!!! */ int money; int anon_uid; /* different order to match alignment */ struct { - unsigned char posts; /* money & 0xff */ - unsigned char logins; /* money & 0xff00 */ - unsigned char regtime; /* money & 0xff0000 */ - unsigned char pad[1]; /* money & 0xffff0000 */ + unsigned char posts; + unsigned char logins; + unsigned char regtime; + unsigned char pad[1]; } vote_limits; struct { /* is this ordering correct? */ |