summaryrefslogtreecommitdiffstats
path: root/mbbsd/edit.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/edit.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/edit.c')
-rw-r--r--mbbsd/edit.c49
1 files changed, 2 insertions, 47 deletions
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 <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-#include <unistd.h>
-#include <time.h>
-#include <sys/types.h>
-#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) {