summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-09-15 17:00:55 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-09-15 17:00:55 +0800
commit53923bff58000761fcfa19c346727fb9eb877047 (patch)
treebbf758258d48059688b74719ab7569bba6519816 /include
parent74f24ed0c4f5309d4ff0fb896a168a11c3a6094e (diff)
downloadpttbbs-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')
-rw-r--r--include/common.h2
-rw-r--r--include/fpg.h4
-rw-r--r--include/proto.h2
-rw-r--r--include/pttstruct.h15
4 files changed, 14 insertions, 9 deletions
diff --git a/include/common.h b/include/common.h
index e9c5fdec..9e7d7b23 100644
--- a/include/common.h
+++ b/include/common.h
@@ -133,7 +133,7 @@
#define YEA 1 /* Booleans (Yep, for true and false) */
#define NA 0
-#define STREQU 0 /* for strcmp */
+#define EQUSTR 0 /* for strcmp */
/* 好友關係 */
#define IRH 1 /* I reject him. */
diff --git a/include/fpg.h b/include/fpg.h
index 0065cba5..13045dae 100644
--- a/include/fpg.h
+++ b/include/fpg.h
@@ -2,8 +2,8 @@
#define BRC_STRLEN 15 /* Length of boardname */
#define BTLEN 48 /* Length of board title */
#define NAMELEN 40 /* Length of username/realname */
-#define FNLEN 33 /* Length of filename */
- /* XXX Ptt 說這裡有bug*/
+//#define FNLEN 33 /* Length of filename */
+// /* XXX Ptt 說這裡有bug*/
#define IDLEN 12 /* Length of bid/uid */
#define PASSLEN 14 /* Length of encrypted passwd field */
#define REGLEN 38 /* Length of registration data */
diff --git a/include/proto.h b/include/proto.h
index ce0c49f7..d577f36f 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -331,6 +331,8 @@ int ochar(int c);
/* kaede */
int Rename(const char* src, const char* dst);
int Copy(const char *src, const char *dst);
+int CopyN(const char *src, const char *dst, int n);
+int AppendTail(const char *src, const char *dst, int off);
int Link(const char* src, const char* dst);
char *Ptt_prints(char *str, int mode);
char *my_ctime(const time4_t *t, char *ans, int len);
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? */