diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-13 03:35:18 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-13 03:35:18 +0800 |
commit | 4e1ad2af155038106cd14a7f5deeee5771b3a531 (patch) | |
tree | e813b8f55e370ac55aba06c310c648f7e3531a4e /mbbsd/read.c | |
parent | 2ec15646e35a5a49bea7eff28963c906afc5fc16 (diff) | |
download | pttbbs-4e1ad2af155038106cd14a7f5deeee5771b3a531.tar pttbbs-4e1ad2af155038106cd14a7f5deeee5771b3a531.tar.gz pttbbs-4e1ad2af155038106cd14a7f5deeee5771b3a531.tar.bz2 pttbbs-4e1ad2af155038106cd14a7f5deeee5771b3a531.tar.lz pttbbs-4e1ad2af155038106cd14a7f5deeee5771b3a531.tar.xz pttbbs-4e1ad2af155038106cd14a7f5deeee5771b3a531.tar.zst pttbbs-4e1ad2af155038106cd14a7f5deeee5771b3a531.zip |
* fix bug: incorrect user's tmp buf filename.
* don't test upper case if getdata with LCECHO flag
* add some comment
* some small code revise
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4585 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/read.c')
-rw-r--r-- | mbbsd/read.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/mbbsd/read.c b/mbbsd/read.c index 12c334e3..cdb94944 100644 --- a/mbbsd/read.c +++ b/mbbsd/read.c @@ -10,6 +10,12 @@ static int last_line; // PTT: last_line 游標可指的最後一個 /* ----------------------------------------------------- */ /* Tag List 標籤 */ /* ----------------------------------------------------- */ +typedef struct +{ + time4_t chrono; + int recno; +} TagItem; + static TagItem *TagList = NULL; /* ascending list */ /** @@ -118,8 +124,6 @@ AskTag(const char *msg) #include <sys/mman.h> -#define BATCH_SIZE 65536 - static char * f_map(const char *fpath, int *fsize) { @@ -976,9 +980,6 @@ i_read_key(const onekey_t * rcmdlist, keeploc_t * locmem, int id; userec_t muser; - strlcpy(currauthor, - headers[locmem->crs_ln - locmem->top_ln].owner, - sizeof(currauthor)); vs_hdr("使用者設定"); move(1, 0); if ((id = getuser(headers[locmem->crs_ln - locmem->top_ln].owner, &muser))) { @@ -1136,7 +1137,7 @@ i_read_key(const onekey_t * rcmdlist, keeploc_t * locmem, // XXX never return -1! static int -get_records_and_bottom(char *direct, fileheader_t* headers, +get_records_and_bottom(const char *direct, fileheader_t* headers, int recbase, int headers_size, int last_line, int bottom_line) { // n: 置底除外的可顯示數目 |