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/xyz.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/xyz.c')
-rw-r--r-- | mbbsd/xyz.c | 36 |
1 files changed, 3 insertions, 33 deletions
diff --git a/mbbsd/xyz.c b/mbbsd/xyz.c index 3754582e..59a265b3 100644 --- a/mbbsd/xyz.c +++ b/mbbsd/xyz.c @@ -1,31 +1,9 @@ -/* $Id: xyz.c,v 1.7 2002/05/25 11:18:11 ptt Exp $ */ -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <fcntl.h> -#include <unistd.h> -#include <signal.h> -#include <time.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <sys/wait.h> -#include "config.h" -#include "pttstruct.h" -#include "common.h" -#include "modes.h" -#include "proto.h" - -extern char *fn_note_ans; -extern int b_lines; /* Screen bottom line number: t_lines-1 */ -extern char *BBSName; -extern char fromhost[]; -extern userinfo_t *currutmp; -extern userec_t cuser; -extern time_t now; +/* $Id: xyz.c,v 1.8 2002/06/04 13:08:34 in2 Exp $ */ +#include "bbs.h" + /* 各種統計及相關資訊列表 */ /* Ptt90年度大學聯招查榜系統 */ int x_90() { - extern char dict[21], database[41]; strcpy(dict, "(90)准考證號/姓名/學校/科系/類組"); strcpy(database, "etc/90"); use_dict(); @@ -34,7 +12,6 @@ int x_90() { /* Ptt89年度大學聯招查榜系統 */ int x_89() { - extern char dict[21], database[41]; strcpy(dict, "(89)准考證號/姓名/學校/科系/類組"); strcpy(database, "etc/89"); use_dict(); @@ -42,8 +19,6 @@ int x_89() { } /* Ptt88年度大學聯招查榜系統 */ int x_88() { - extern char dict[21], database[41]; - strcpy(dict, "(88)准考證號/姓名/學校/科系/類組"); strcpy(database, "etc/88"); use_dict(); @@ -51,8 +26,6 @@ int x_88() { } /* Ptt87年度大學聯招查榜系統 */ int x_87() { - extern char dict[21], database[41]; - strcpy(dict, "(87)准考證號/姓名/學校/科系"); strcpy(database, "etc/87"); use_dict(); @@ -61,8 +34,6 @@ int x_87() { /* Ptt86年度大學聯招查榜系統 */ int x_86() { - extern char dict[21], database[41]; - strcpy(dict, "(86)准考證號/姓名/學校/科系"); strcpy(database, "etc/86"); use_dict(); @@ -319,7 +290,6 @@ int m_sysop() { } int Goodbye() { - extern void movie(); char genbuf[100]; getdata(b_lines - 1, 0, "您確定要離開【 " BBSNAME " 】嗎(Y/N)?[N] ", |