summaryrefslogtreecommitdiffstats
path: root/mbbsd/chc_play.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/chc_play.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/chc_play.c')
-rw-r--r--mbbsd/chc_play.c26
1 files changed, 2 insertions, 24 deletions
diff --git a/mbbsd/chc_play.c b/mbbsd/chc_play.c
index 8f3e432c..cffe3959 100644
--- a/mbbsd/chc_play.c
+++ b/mbbsd/chc_play.c
@@ -1,26 +1,8 @@
-/* $Id: chc_play.c,v 1.2 2002/05/13 03:20:04 ptt Exp $ */
-#include <stdio.h>
-#include <time.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <string.h>
-#include "config.h"
-#include "pttstruct.h"
-#include "common.h"
-#include "modes.h"
-#include "proto.h"
-
-extern userinfo_t *currutmp;
-extern int usernum;
-extern time_t now;
+/* $Id: chc_play.c,v 1.3 2002/06/04 13:08:33 in2 Exp $ */
+#include "bbs.h"
typedef int (*play_func_t)(int, board_t, board_t);
static int chc_ipass = 0, chc_hepass = 0;
-int chc_lefttime;
-int chc_my, chc_turn, chc_selected, chc_firststep;
-char chc_warnmsg[64], *chc_mateid;
-rc_t chc_from, chc_to, chc_select, chc_cursor;
-int chc_hiswin, chc_hislose, chc_histie;
#define CHC_TIMEOUT 300
#define SIDE_ROW 10
@@ -191,8 +173,6 @@ static int myplay(int s, board_t board, board_t tmpbrd) {
return endgame;
}
-extern userec_t cuser;
-
static void mainloop(int s, board_t board) {
int endgame;
board_t tmpbrd;
@@ -229,8 +209,6 @@ static void mainloop(int s, board_t board) {
oflush();
}
-extern userec_t xuser;
-
static void chc_init(int s, board_t board) {
userinfo_t *my = currutmp;