summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-09-09 12:42:53 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-09-09 12:42:53 +0800
commit40fafbfba1a53581e9318c71d6366a24470173be (patch)
tree065380a6e4881de9c51609773d048f165b8fc988 /include
parentfc5bd5742759eea401ffa112d696a3fe028675d1 (diff)
downloadpttbbs-40fafbfba1a53581e9318c71d6366a24470173be.tar
pttbbs-40fafbfba1a53581e9318c71d6366a24470173be.tar.gz
pttbbs-40fafbfba1a53581e9318c71d6366a24470173be.tar.bz2
pttbbs-40fafbfba1a53581e9318c71d6366a24470173be.tar.lz
pttbbs-40fafbfba1a53581e9318c71d6366a24470173be.tar.xz
pttbbs-40fafbfba1a53581e9318c71d6366a24470173be.tar.zst
pttbbs-40fafbfba1a53581e9318c71d6366a24470173be.zip
fix chc bug, but still buggy
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2184 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/chc.h7
-rw-r--r--include/common.h7
-rw-r--r--include/config.h5
-rw-r--r--include/proto.h1
4 files changed, 11 insertions, 9 deletions
diff --git a/include/chc.h b/include/chc.h
index 9305ab0d..416f1193 100644
--- a/include/chc.h
+++ b/include/chc.h
@@ -19,6 +19,13 @@
#define CHC_PERSONAL 4 /* ゴ眯 */
#define CHC_WATCH_PERSONAL 8 /* 芠ゴ眯 */
+#define CHE_O(c) ((c) >> 3)
+#define CHE_P(c) ((c) & 7)
+#define RTL(x) (((x) - 3) >> 1)
+#define dim(x) (sizeof(x) / sizeof(x[0]))
+#define LTR(x) ((x) * 2 + 3)
+#define CHE(a, b) ((a) | ((b) << 3))
+
#define BLACK_COLOR "\033[1;36m"
#define RED_COLOR "\033[1;31m"
#define BLACK_REVERSE "\033[1;37;46m"
diff --git a/include/common.h b/include/common.h
index c830454a..04a351dd 100644
--- a/include/common.h
+++ b/include/common.h
@@ -178,13 +178,6 @@
#define I_TIMEOUT (-2) /* Used for the getchar routine select call */
#define I_OTHERDATA (-333) /* interface, (-3) will conflict with chinese */
-#define CHE_O(c) ((c) >> 3)
-#define CHE_P(c) ((c) & 7)
-#define RTL(x) (((x) - 3) >> 1)
-#define dim(x) (sizeof(x) / sizeof(x[0]))
-#define LTR(x) ((x) * 2 + 3)
-#define CHE(a, b) ((a) | ((b) << 3))
-
#define MAX_MODES 127
#ifndef MIN
diff --git a/include/config.h b/include/config.h
index 3b75d63b..7b05978c 100644
--- a/include/config.h
+++ b/include/config.h
@@ -117,6 +117,9 @@
#define ADD_EXMAILBOX 0 /* 秘癳獺絚 */
#endif
+/* more.c いゅ彻计(lines/22), +4 for safe */
+#define MAX_PAGES (MAX_EDIT_LINE / 22 + 4)
+
/* 临ゼ俱瞶 */
#define MAX_FRIEND (256) /* 更 cache ぇ程狟ね计ヘ */
#define MAX_REJECT (32) /* 更 cache ぇ程胊计ヘ */
@@ -130,7 +133,6 @@
#define MAX_LOGIN_INFO (128) /* 程絬硄计 */
#define MAX_POST_INFO (32) /* 程穝ゅ彻硄计 */
#define MAX_NAMELIST (128) /* 程ㄤ疭虫计 */
-#define MAX_PAGES (999) /* more.c いゅ彻计(lines/22) */
#define MAX_KEEPMAIL (200) /* 程玂痙碭 MAIL */
#define MAX_NOTE (20) /* 程玂痙碭絞痙ē */
#define MAX_SIGLINES (6) /* 帽郎ま程︽计 */
@@ -141,7 +143,6 @@
#define LOGINATTEMPTS (3) /* 程秈ア粇Ω计 */
#define WHERE /* 琌Τ珿秏 */
#undef LOG_BOARD /* 狾琌log */
-#undef SUPPORT_GB /* 琌や穿gb */
#define LOGINASNEW /* 蹦ノビ叫眀腹 */
diff --git a/include/proto.h b/include/proto.h
index 0d66649f..f86e0a24 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -330,6 +330,7 @@ void add_distinct(char *fname, char *line);
void u_exit(char *mode);
void talk_request(int sig);
int reply_connection_request(userinfo_t *uip);
+int establish_talk_connection(userinfo_t *uip);
void my_talk(userinfo_t * uin, int fri_stat, char defact);
/* menu */