diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-02-10 01:33:43 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-02-10 01:33:43 +0800 |
commit | 88d88e1517ae6e31e1f613a9a9db8ac2b43d18d4 (patch) | |
tree | bcc24a0272098d7e3cf6c1b73cadd3c60aad69ab /include | |
parent | 07875ded5ef76dc03946c65b9c953ff49d4366de (diff) | |
download | pttbbs-88d88e1517ae6e31e1f613a9a9db8ac2b43d18d4.tar pttbbs-88d88e1517ae6e31e1f613a9a9db8ac2b43d18d4.tar.gz pttbbs-88d88e1517ae6e31e1f613a9a9db8ac2b43d18d4.tar.bz2 pttbbs-88d88e1517ae6e31e1f613a9a9db8ac2b43d18d4.tar.lz pttbbs-88d88e1517ae6e31e1f613a9a9db8ac2b43d18d4.tar.xz pttbbs-88d88e1517ae6e31e1f613a9a9db8ac2b43d18d4.tar.zst pttbbs-88d88e1517ae6e31e1f613a9a9db8ac2b43d18d4.zip |
- add dashc() for file create time
- remove unused structure
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3907 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r-- | include/libbbsutil.h | 1 | ||||
-rw-r--r-- | include/proto.h | 1 | ||||
-rw-r--r-- | include/pttstruct.h | 23 |
3 files changed, 4 insertions, 21 deletions
diff --git a/include/libbbsutil.h b/include/libbbsutil.h index f2e31a53..a825ff28 100644 --- a/include/libbbsutil.h +++ b/include/libbbsutil.h @@ -28,6 +28,7 @@ typedef time_t time4_t; /* file.c */ extern off_t dashs(const char *fname); time4_t dasht(const char *fname); +time4_t dashc(const char *fname); extern int dashl(const char *fname); extern int dashf(const char *fname); extern int dashd(const char *fname); diff --git a/include/proto.h b/include/proto.h index 17a5cbf1..f4fa5376 100644 --- a/include/proto.h +++ b/include/proto.h @@ -43,7 +43,6 @@ void merge_dir(const char *dir1, const char *dir2, int isoutter); int a_menu(const char *maintitle, const char *path, int lastlevel, int lastbid, char *trans_buffer); void a_copyitem(const char* fpath, const char* title, const char* owner, int mode); int Announce(void); -void gem(char* maintitle, item_t* path, int update); #ifdef BLOG void BlogMain(int); #endif diff --git a/include/pttstruct.h b/include/pttstruct.h index 6b9a4090..e5d886e2 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -169,7 +169,9 @@ typedef struct boardheader_t { unsigned char fastrecommend_pause; /* 快速連推間隔 */ unsigned char vote_limit_badpost; /* 連署 : 劣文上限 */ unsigned char post_limit_badpost; /* 發表文章 : 劣文上限 */ - char pad3[47]; + char pad3[3]; + time4_t SRexpire; /* SR Records expire time */ + char pad4[40]; } boardheader_t; // TODO BRD 快爆了,怎麼辦? 準備從 pad3 偷一個來當 attr2 吧... @@ -263,25 +265,6 @@ typedef struct fileheader_t { #define STRLEN 80 /* Length of most string data */ - -union xitem_t { - struct { /* bbs_item */ - char fdate[9]; /* [mm/dd/yy] */ - char editor[13]; /* user ID */ - char fname[31]; - } B; - struct { /* gopher_item */ - char path[81]; - char server[48]; - int port; - } G; -}; - -typedef struct { - char title[63]; - union xitem_t X; -} item_t; - #define FAVMAX 1024 /* Max boards of Myfavorite */ #define FAVGMAX 32 /* Max groups of Myfavorite */ #define FAVGSLEN 8 /* Max Length of Description String */ |