bcache.c 改成下面那样
但是
maintain.c
在显示 "def " 之后,死掉了
#ifdef SMTH
move(0,0);prints("def ");pressanykey();
if(flag==2)
process_no_bm(&bh);//stiger, 2005.09.05, 版面无版主时进行系统通知
move(0,0);prints("nobm ");pressanykey();
void process_no_bm(struct boardheader *bh){
//stiger, 2005.09.05, 版面无版主时进行系统通知
#ifdef SMTH
#ifdef BBSMAIN
move(0,0);printf("isSMTH ");pressanykey();
#endif
#define NO_BM_FILE "etc/nobms"
#ifdef BBSMAIN
move(0,0);printf("deNOBM ");pressanykey();
#endif
struct userec *user_sysop;
#ifdef BBSMAIN
move(0,0);printf("struct ");pressanykey();
#endif
char buf[80];
if(!(bh->filename[0])||bh->BM[0]||!normal_board(bh->filename))
return;
#ifdef BBSMAIN
move(0,0);printf("if1 ");pressanykey();
#endif
if(!getuser("SYSOP",&user_sysop))
user_sysop=getCurrentUser();
#ifdef BBSMAIN
move(0,0);printf("if2 ");pressanykey();
#endif
sprintf(buf,"%s 版面目前没有斑竹",bh->filename);
#ifdef BBSMAIN
move(0,0);printf("spNOBM ");pressanykey();
#endif
post_file(user_sysop,"",NO_BM_FILE,"BD_Discuss",buf,0,2,getSession());
#ifdef BBSMAIN
move(0,0);printf("p1 ");pressanykey();
#endif
post_file(user_sysop,"",NO_BM_FILE,bh->filename,"请版面尽快产生一名或多名版主",0,2,getSession());
#ifdef BBSMAIN
move(0,0);printf("p2 ");pressanykey();
#endif
#undef NO_BM_FILE
#endif //SMTH
return;
}
【 在 stiger (Software like sex,better when it's free) 的大作中提到: 】
: #ifdef BBSMAIN
: move() prints() pressanykey()
: #endif
: ...................
--
FROM 218.249.29.*