summaryrefslogtreecommitdiffstats
path: root/mbbsd/board.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/board.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/board.c')
-rw-r--r--mbbsd/board.c46
1 files changed, 2 insertions, 44 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index c0fed91c..af997121 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -1,26 +1,10 @@
-/* $Id: board.c,v 1.28 2002/06/02 01:55:21 in2 Exp $ */
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <time.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include "config.h"
-#include "pttstruct.h"
-#include "perm.h"
-#include "modes.h"
-#include "common.h"
-#include "proto.h"
-
+/* $Id: board.c,v 1.29 2002/06/04 13:08:33 in2 Exp $ */
+#include "bbs.h"
#define BRC_STRLEN 15 /* Length of board name */
#define BRC_MAXSIZE 24576
#define BRC_ITEMSIZE (BRC_STRLEN + 1 + BRC_MAXNUM * sizeof( int ))
#define BRC_MAXNUM 80
-extern userinfo_t *currutmp;
-extern time_t now;
static char *brc_getrecord(char *ptr, char *name, int *pnum, int *list) {
int num;
char *tmp;
@@ -55,13 +39,9 @@ static char *brc_putrecord(char *ptr, char *name, int num, int *list) {
return ptr;
}
-extern userec_t cuser;
-extern char currboard[]; /* name of currently selected board */
static int brc_changed = 0;
static char brc_buf[BRC_MAXSIZE];
-int brc_num;
static char brc_name[BRC_STRLEN];
-int brc_list[BRC_MAXNUM];
static char *fn_boardrc = ".boardrc";
static int brc_size;
@@ -117,10 +97,6 @@ static void read_brc_buf() {
}
}
-extern int currbid;
-extern unsigned int currbrdattr;
-extern boardheader_t *bcache;
-
int brc_initial(char *boardname) {
char *ptr;
if(strcmp(currboard, boardname) == 0) {
@@ -227,8 +203,6 @@ typedef struct {
unsigned int myattr;
} boardstat_t;
-extern time_t login_start_time;
-extern int numboards;
static int *zapbuf=NULL,*favbuf;
static boardstat_t *nbrd=NULL;
@@ -294,8 +268,6 @@ void save_brdbuf() {
}
}
-extern char *fn_visable;
-
int Ben_Perm(boardheader_t *bptr) {
register int level,brdattr;
register char *ptr;
@@ -328,10 +300,6 @@ int Ben_Perm(boardheader_t *bptr) {
return 1;
}
-extern char currauthor[];
-extern int b_lines;
-extern char currowner[];
-
#if 0
static int have_author(char* brdname) {
char dirname[100];
@@ -380,10 +348,7 @@ static int check_newpost(boardstat_t *ptr) { /* Ptt 改 */
return 1;
}
-extern int currmode;
-extern struct bcache_t *brdshm;
static int brdnum;
-int class_bid = 0;
static int yank_flag = 1;
static void load_uidofgid(const int gid, const int type){
boardheader_t *bptr,*currbptr;
@@ -546,9 +511,6 @@ static void brdlist_foot() {
yank_flag==0 ? "最愛" : yank_flag==1 ? "部份" : "全部");
}
-extern unsigned int currstat;
-extern char *BBSName;
-
static void show_brdlist(int head, int clsflag, int newflag) {
int myrow = 2;
if(class_bid == 1) {
@@ -680,9 +642,6 @@ static void set_menu_BM(char *BM) {
}
}
-extern int p_lines; /* a Page of Screen line numbers: tlines-4 */
-extern int t_lines;
-extern char *fn_notes;
static char *privateboard =
"\n\n\n\n 對不起 此板目前只准看板好友進入 請先向板主申請入境許\可";
static void dozap(int num){
@@ -736,7 +695,6 @@ static void choose_board(int newflag) {
#if HAVE_SEARCH_ALL
char genbuf[200];
#endif
- extern time_t board_visit_time;
setutmpmode(newflag ? READNEW : READBRD);
brdnum = 0;