summaryrefslogtreecommitdiffstats
path: root/mbbsd/screen.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/screen.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/screen.c')
-rw-r--r--mbbsd/screen.c35
1 files changed, 3 insertions, 32 deletions
diff --git a/mbbsd/screen.c b/mbbsd/screen.c
index 2c70917f..5bd9dbdb 100644
--- a/mbbsd/screen.c
+++ b/mbbsd/screen.c
@@ -1,30 +1,6 @@
-/* $Id: screen.c,v 1.2 2002/04/27 15:50:17 in2 Exp $ */
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <stdarg.h>
-#include <sys/types.h>
-#include "config.h"
-#include "pttstruct.h"
-#include "common.h"
-#include "proto.h"
-
-extern int t_lines, t_columns; /* Screen size / width */
-extern int b_lines; /* Screen bottom line number: t_lines-1 */
-extern int p_lines; /* a Page of Screen line numbers: tlines-4 */
-extern int showansi;
-
-extern char *clearbuf;
-extern char *cleolbuf;
-extern char *scrollrev;
-extern char *strtstandout;
-extern char *endstandout;
-extern int clearbuflen;
-extern int cleolbuflen;
-extern int scrollrevlen;
-extern int strtstandoutlen;
-extern int endstandoutlen;
-extern int automargins;
+/* $Id: screen.c,v 1.3 2002/06/04 13:08:34 in2 Exp $ */
+#include "bbs.h"
+
#ifdef SUPPORT_GB
static int current_font_type=TYPE_BIG5;
static int gbinited=0;
@@ -36,15 +12,12 @@ static int gbinited=0;
#define o_standup() output(strtstandout,strtstandoutlen)
#define o_standdown() output(endstandout,endstandoutlen)
-unsigned char scr_lns, scr_cols;
static unsigned char cur_ln = 0, cur_col = 0;
static unsigned char docls, downfrom = 0;
static unsigned char standing = NA;
static char roll = 0;
static int scrollcnt, tc_col, tc_line;
-screenline_t *big_picture = NULL;
-
#define MODIFIED (1) /* if line has been modifed, screen output */
#define STANDOUT (2) /* if this line has a standout region */
@@ -157,8 +130,6 @@ void redoscr() {
void refresh() {
register screenline_t *bp = big_picture;
register int i, j, len;
- extern int automargins;
- extern int scrollrevlen;
if(num_in_buf())
return;