diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-04 21:08:35 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-04 21:08:35 +0800 |
commit | 9e81baf8352b3d525c9a1459f28dae6b540988e3 (patch) | |
tree | a558e73187b9d45b59280a79c927e7f8bb315623 /mbbsd/io.c | |
parent | e42291049072cfee02408394850b33b3580dbd83 (diff) | |
download | pttbbs-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/io.c')
-rw-r--r-- | mbbsd/io.c | 54 |
1 files changed, 3 insertions, 51 deletions
@@ -1,21 +1,5 @@ -/* $Id: io.c,v 1.16 2002/05/15 08:55:30 ptt Exp $ */ -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <ctype.h> -#include <time.h> -#include <unistd.h> -#include <errno.h> -#include <sys/types.h> -#include <sys/time.h> -#include <sys/ioctl.h> -#include <signal.h> -#include "config.h" -#include "pttstruct.h" -#include "perm.h" -#include "modes.h" -#include "common.h" -#include "proto.h" +/* $Id: io.c,v 1.17 2002/06/04 13:08:33 in2 Exp $ */ +#include "bbs.h" #if defined(linux) #define OBUFSIZE 2048 @@ -25,23 +9,10 @@ #define IBUFSIZE 256 #endif -extern int current_font_type; -extern char *fn_proverb; -extern userinfo_t *currutmp; -extern unsigned int currstat; -extern pid_t currpid; -extern int errno; -extern screenline_t *big_picture; -extern int t_lines, t_columns; /* Screen size / width */ -extern water_t water[6], *swater[5], *water_which; -extern char water_usies; - static char outbuf[OBUFSIZE], inbuf[IBUFSIZE]; static int obufsize = 0, ibufsize = 0; static int icurrchar = 0; -time_t now; - /* ----------------------------------------------------- */ /* output routines */ /* ----------------------------------------------------- */ @@ -101,22 +72,6 @@ int num_in_buf() { return icurrchar - ibufsize; } -int watermode = -1, wmofo = -1; -/* - WATERMODE(WATER_ORIG) | WATERMODE(WATER_NEW): - Ptt 水球回顧用的參數 - watermode = -1 沒在回水球 - = 0 在回上一顆水球 (Ctrl-R) - > 0 在回前 n 顆水球 (Ctrl-R Ctrl-R) - - WATERMODE(WATER_OFO) by in2 - wmofo = -1 沒在回水球 - = 0 正在回水球 - = 1 回水球間又接到水球 - wmofo >=0 時收到水球將只顯示, 不會到water[]裡, - 待回完水球的時候一次寫入. -*/ - /* dogetch() is not reentrant-safe. SIGUSR[12] might happen at any time, and dogetch() might be called again, and then ibufsize/icurrchar/inbuf @@ -181,7 +136,7 @@ static int dogetch() { } return inbuf[icurrchar++]; } -extern userec_t cuser; + static int water_which_flag=0; int igetch() { register int ch; @@ -343,7 +298,6 @@ int oldgetdata(int line, int col, char *prompt, char *buf, int len, int echo) { register int ch, i; int clen; int x = col, y = line; - extern unsigned char scr_cols; #define MAXLASTCMD 12 static char lastcmd[MAXLASTCMD][80]; @@ -563,8 +517,6 @@ rget(int x,char *prompt) } -int KEY_ESC_arg; - int igetkey() { int mode; int ch, last; |