summaryrefslogtreecommitdiffstats
path: root/mbbsd/chicken.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/chicken.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/chicken.c')
-rw-r--r--mbbsd/chicken.c26
1 files changed, 2 insertions, 24 deletions
diff --git a/mbbsd/chicken.c b/mbbsd/chicken.c
index c3bc1fa0..9c30deec 100644
--- a/mbbsd/chicken.c
+++ b/mbbsd/chicken.c
@@ -1,16 +1,5 @@
-/* $Id: chicken.c,v 1.3 2002/05/13 03:20:04 ptt Exp $ */
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <time.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include "config.h"
-#include "pttstruct.h"
-#include "common.h"
-#include "modes.h"
-#include "proto.h"
+/* $Id: chicken.c,v 1.4 2002/06/04 13:08:33 in2 Exp $ */
+#include "bbs.h"
#define NUM_KINDS 13 /* 有多少種動物 */
@@ -56,8 +45,6 @@ enum {
TEMPERAMENT, TIREDSTRONG, SICK, HP_MAX, MM_MAX
};
-extern userec_t cuser;
-extern time_t now;
static chicken_t *mychicken = &cuser.mychicken;
static int age;
@@ -92,9 +79,6 @@ static const int time_change[NUM_KINDS][14] =
{ 1, 1, 147, 2, 10, 10, 85, 20, 4, 25, 25, 5, 145, 95}
};
-extern userec_t xuser;
-extern int usernum;
-
int reload_chicken() {
passwd_query(usernum, &xuser);
memcpy(mychicken, &xuser.mychicken, sizeof(chicken_t));
@@ -208,7 +192,6 @@ static void show_chicken_stat(chicken_t *thechicken) {
}
#define CHICKEN_PIC "etc/chickens"
-extern char *BBSName;
void show_chicken_data(chicken_t *thechicken, chicken_t *pkchicken) {
char buf[1024];
@@ -360,8 +343,6 @@ static void ch_hit() {
pressanykey();
}
-extern int b_lines; /* Screen bottom line number: t_lines-1 */
-
void ch_buyitem(int money, char *picture, int *item) {
int num = 0;
char buf[5];
@@ -843,9 +824,6 @@ int chicken_main() {
return 0;
}
-extern userinfo_t *currutmp;
-extern struct utmpfile_t *utmpshm;
-
int chickenpk(int fd) {
char mateid[IDLEN + 1], data[200], buf[200];
int ch = 0;