summaryrefslogtreecommitdiffstats
path: root/mbbsd/more.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/more.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/more.c')
-rw-r--r--mbbsd/more.c33
1 files changed, 2 insertions, 31 deletions
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 <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <fcntl.h>
-#include <time.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-
-#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;