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/edit.c | 49 ++----------------------------------------------- 1 file changed, 2 insertions(+), 47 deletions(-) (limited to 'mbbsd/edit.c') diff --git a/mbbsd/edit.c b/mbbsd/edit.c index f6a14766..b9dc41ba 100644 --- a/mbbsd/edit.c +++ b/mbbsd/edit.c @@ -1,21 +1,5 @@ -/* $Id: edit.c,v 1.10 2002/05/14 17:13:45 ptt Exp $ */ -#include -#include -#include -#include -#include -#include -#include -#include "config.h" -#include "pttstruct.h" -#include "config.h" -#include "common.h" -#include "modes.h" -#include "perm.h" -#include "proto.h" - -#define WRAPMARGIN (511) - +/* $Id: edit.c,v 1.11 2002/06/04 13:08:33 in2 Exp $ */ +#include "bbs.h" typedef struct textline_t { struct textline_t *prev; struct textline_t *next; @@ -23,29 +7,6 @@ typedef struct textline_t { char data[WRAPMARGIN + 1]; } textline_t; -extern int current_font_type; -extern char *str_author1; -extern char *str_author2; -extern int t_lines, t_columns; /* Screen size / width */ -extern int b_lines; /* Screen bottom line number: t_lines-1 */ -extern char quote_file[80]; -extern char quote_user[80]; -extern int curredit; -extern unsigned int currbrdattr; -extern char currboard[]; /* name of currently selected board */ -extern char *str_reply; -extern char *str_post1; -extern char *str_post2; -extern char *BBSName; -extern char fromhost[]; -extern unsigned int currstat; -extern crosspost_t postrecord; -extern userinfo_t *currutmp; -extern int KEY_ESC_arg; -extern char reset_color[]; -extern char trans_buffer[256]; -extern time_t now; - #define KEEP_EDITING -2 #define BACKUP_LIMIT 100 #define SCR_WIDTH 80 @@ -61,8 +22,6 @@ static textline_t *blockline = NULL; static textline_t *top_of_win = NULL; static textline_t *deleted_lines = NULL; -extern int local_article; -extern char real_name[IDLEN + 1]; static char line[WRAPMARGIN + 2]; static int ifuseanony=0; static int currpnt, currln, totaln; @@ -82,8 +41,6 @@ static int insert_c = ' '; static char fp_bak[] = "bak"; -char save_title[STRLEN]; - /* 記憶體管理與編輯處理 */ static void indigestion(i) { fprintf(stderr, "嚴重內傷 %d\n", i); @@ -733,8 +690,6 @@ static void read_file(char *fpath) { load_file(fp); } -extern userec_t cuser; - void write_header(FILE *fp) { if(curredit & EDIT_MAIL || curredit & EDIT_LIST) { -- cgit v1.2.3