From 9e81baf8352b3d525c9a1459f28dae6b540988e3 Mon Sep 17 00:00:00 2001 From: in2 Date: Tue, 4 Jun 2002 13:08:35 +0000 Subject: global variable move to var.c git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@280 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/more.c | 33 ++------------------------------- 1 file changed, 2 insertions(+), 31 deletions(-) (limited to 'mbbsd/more.c') diff --git a/mbbsd/more.c b/mbbsd/more.c index 87d71fe9..1d6b173a 100644 --- a/mbbsd/more.c +++ b/mbbsd/more.c @@ -1,30 +1,5 @@ -/* $Id: more.c,v 1.13 2002/05/13 03:20:04 ptt Exp $ */ -#include -#include -#include -#include -#include -#include -#include -#include - -#include "config.h" -#include "pttstruct.h" -#include "common.h" -#include "modes.h" -#include "perm.h" -#include "proto.h" - -extern int showansi; -extern int t_lines, t_columns; /* Screen size / width */ -extern int b_lines; /* Screen bottom line number: t_lines-1 */ -extern char *str_author1; -extern char *str_author2; -extern char *str_post1; -extern char *str_post2; -extern char *msg_seperator; -extern char reset_color[]; -extern time_t now; +/* $Id: more.c,v 1.14 2002/06/04 13:08:34 in2 Exp $ */ +#include "bbs.h" #define MORE_BUFSIZE 4096 #define MORE_WINSIZE 4096 #define STR_ANSICODE "[0123456789;," @@ -190,12 +165,8 @@ static int readln(FILE *fp, char *buf) { } */ -extern userec_t cuser; - static int more_web(char *fpath, int promptend); -extern int *GLOBE; int more(char *fpath, int promptend) { - extern char* strcasestr(); static char *head[4] = {"作者", "標題", "時間" ,"轉信"}; char *ptr, *word = NULL, buf[ANSILINELEN + 1], *ch1; struct stat st; -- cgit v1.2.3