From 8ccbb616dd0471aca56c5fafc4612011876d6772 Mon Sep 17 00:00:00 2001 From: scw Date: Tue, 29 Jun 2004 07:39:52 +0000 Subject: Fix some compile warning and make error. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2099 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/proto.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/proto.h b/include/proto.h index c439b708..ae4d94a0 100644 --- a/include/proto.h +++ b/include/proto.h @@ -575,6 +575,7 @@ int j_ticket_main(void); /* term */ void init_tty(void); int term_init(void); +void telnet_parse_size(const unsigned char*); void save_cursor(void); void restore_cursor(void); void do_move(int destcol, int destline); -- cgit v1.2.3 From c0a22dee78c1470d62d658e1b2beacb84ffb5cc5 Mon Sep 17 00:00:00 2001 From: scw Date: Tue, 29 Jun 2004 14:17:59 +0000 Subject: Reverting revision 2098 and 2100. These make kernel panic due to out of swap. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2101 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/proto.h | 1 - 1 file changed, 1 deletion(-) (limited to 'include') diff --git a/include/proto.h b/include/proto.h index ae4d94a0..c439b708 100644 --- a/include/proto.h +++ b/include/proto.h @@ -575,7 +575,6 @@ int j_ticket_main(void); /* term */ void init_tty(void); int term_init(void); -void telnet_parse_size(const unsigned char*); void save_cursor(void); void restore_cursor(void); void do_move(int destcol, int destline); -- cgit v1.2.3 From 1562021be3198239d60452a1be345e0f03ee9dab Mon Sep 17 00:00:00 2001 From: ptt Date: Thu, 1 Jul 2004 02:52:27 +0000 Subject: merge the branch from ptt.fpg git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2110 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/fpg.h | 3 ++- include/proto.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/fpg.h b/include/fpg.h index 8014c5b4..57ae46c3 100644 --- a/include/fpg.h +++ b/include/fpg.h @@ -104,7 +104,8 @@ typedef struct uschar cardfight[20]; uschar dragon[5]; PET pet; - char left[40]; + usint bank; + char left[36]; } ACCT; struct fileheader diff --git a/include/proto.h b/include/proto.h index c439b708..b0307d54 100644 --- a/include/proto.h +++ b/include/proto.h @@ -24,7 +24,7 @@ void setup_man(boardheader_t * board); void delete_symbolic_link(boardheader_t *bh, int bid); int make_symbolic_link(char *bname, int gid); int make_symbolic_link_interactively(int gid); -void merge_dir(char *dir1, char *dir2); +void merge_dir(char *dir1, char *dir2, int isoutter); /* announce */ int a_menu(char *maintitle, char *path, int lastlevel); -- cgit v1.2.3 From 45cf571a04e8a8781c1664cc6e993f4a09118e07 Mon Sep 17 00:00:00 2001 From: scw Date: Sun, 4 Jul 2004 07:55:01 +0000 Subject: GO game merged from FPG. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2113 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/bbs.h | 1 - include/modes.h | 4 +++- include/proto.h | 4 ++++ include/pttstruct.h | 6 ++++++ 4 files changed, 13 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/bbs.h b/include/bbs.h index 075db9a7..45ca1292 100644 --- a/include/bbs.h +++ b/include/bbs.h @@ -65,7 +65,6 @@ #include "modes.h" #include "chc.h" #include "proto.h" -#include "gomo.h" #ifdef ASSESS #include "assess.h" diff --git a/include/modes.h b/include/modes.h index 6d0cacf6..d4f8c926 100644 --- a/include/modes.h +++ b/include/modes.h @@ -99,7 +99,8 @@ #define REEDIT 79 #define BLOGGING 80 #define CHESSWATCHING 81 -#define MODE_MAX 81 /* 所有其他選單動態須在此之前 */ +#define GO 82 +#define MODE_MAX 82 /* 所有其他選單動態須在此之前 */ /* menu.c 中的模式 */ #define QUIT 0x666 /* Return value to abort recursive functions */ @@ -156,6 +157,7 @@ enum {STRIP_ALL = 0, ONLY_COLOR, NO_RELOAD}; #define SIG_GOMO 3 #define SIG_CHC 4 #define SIG_DARK 5 +#define SIG_GO 6 /* talk.c 中的模式 */ #define WATERBALL_GENERAL 0 diff --git a/include/proto.h b/include/proto.h index b0307d54..53d606b0 100644 --- a/include/proto.h +++ b/include/proto.h @@ -254,6 +254,10 @@ int ticket_main(void); int openticket(int bid); int ticket(int bid); +/* go */ +int gochess(int fd); +int GoBot(void); + /* gomo */ int gomoku(int fd); diff --git a/include/pttstruct.h b/include/pttstruct.h index 6c4dbf1e..a6863a96 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -509,6 +509,12 @@ typedef struct int recno; } TagItem; +/* type in gomo.c, structure passing through socket */ +typedef struct { + char x; + char y; +} Horder_t; + #ifdef OUTTACACHE typedef struct { int index; // 在 SHM->uinfo[index] -- cgit v1.2.3