summaryrefslogtreecommitdiffstats
path: root/mbbsd/read.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-04 21:08:35 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-04 21:08:35 +0800
commit9e81baf8352b3d525c9a1459f28dae6b540988e3 (patch)
treea558e73187b9d45b59280a79c927e7f8bb315623 /mbbsd/read.c
parente42291049072cfee02408394850b33b3580dbd83 (diff)
downloadpttbbs-9e81baf8352b3d525c9a1459f28dae6b540988e3.tar
pttbbs-9e81baf8352b3d525c9a1459f28dae6b540988e3.tar.gz
pttbbs-9e81baf8352b3d525c9a1459f28dae6b540988e3.tar.bz2
pttbbs-9e81baf8352b3d525c9a1459f28dae6b540988e3.tar.lz
pttbbs-9e81baf8352b3d525c9a1459f28dae6b540988e3.tar.xz
pttbbs-9e81baf8352b3d525c9a1459f28dae6b540988e3.tar.zst
pttbbs-9e81baf8352b3d525c9a1459f28dae6b540988e3.zip
global variable move to var.c
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@280 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/read.c')
-rw-r--r--mbbsd/read.c63
1 files changed, 2 insertions, 61 deletions
diff --git a/mbbsd/read.c b/mbbsd/read.c
index 5866422e..7e598f53 100644
--- a/mbbsd/read.c
+++ b/mbbsd/read.c
@@ -1,72 +1,17 @@
-/* $Id: read.c,v 1.3 2002/04/29 07:05:45 in2 Exp $ */
-#include <stdio.h>
-#include <string.h>
-#include <ctype.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <fcntl.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include "config.h"
-#include "pttstruct.h"
-#include "modes.h"
-#include "common.h"
-#include "perm.h"
-#include "proto.h"
+/* $Id: read.c,v 1.4 2002/06/04 13:08:34 in2 Exp $ */
+#include "bbs.h"
#define MAXPATHLEN 256
-extern int p_lines; /* a Page of Screen line numbers: tlines-4 */
-extern int b_lines; /* Screen bottom line number: t_lines-1 */
-extern char currowner[IDLEN + 2];
-extern char currtitle[TTLEN + 1];
-extern char currauthor[IDLEN + 2];
-extern char *str_reply;
-extern char *msg_fwd_ok;
-extern char *msg_fwd_err1;
-extern char *msg_fwd_err2;
-extern int currmode;
-extern unsigned int currstat;
-extern char currboard[]; /* name of currently selected board */
-extern int KEY_ESC_arg;
-extern int curredit;
-extern char *msg_mailer;
-extern int currbid;
-extern bcache_t *brdshm;
-
-char currdirect[64];
static fileheader_t *headers = NULL;
static int last_line;
static int hit_thread;
-/* rocker.011018: add new tag */
-
-extern int rget();
-extern char getans();
-extern void touchdircache();
-extern int get_fileheader_cache();
-
-/* rocker.011018: 新的tag方式 */
-
-#define MAXTAGS 256
-
#include <sys/mman.h>
-typedef struct
-{
- time_t chrono;
- int recno;
-} TagItem;
-
-
/* ----------------------------------------------------- */
/* Tag List 標籤 */
/* ----------------------------------------------------- */
-
-
-int TagNum; /* tag's number */
-TagItem TagList[MAXTAGS]; /* ascending list */
-
void
UnTagger (int locus)
{
@@ -507,8 +452,6 @@ static void mail_forward(fileheader_t *fhdr, char *direct, int mode) {
}
#endif
-extern userec_t cuser;
-
static int select_read(keeploc_t *locmem, int sr_mode) {
register char *tag,*query,*temp;
fileheader_t fh;
@@ -606,8 +549,6 @@ static int select_read(keeploc_t *locmem, int sr_mode) {
return st.st_size;
}
-extern userec_t xuser;
-
static int i_read_key(onekey_t *rcmdlist, keeploc_t *locmem, int ch, int bid) {
int i, mode = DONOTHING;