summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-16 12:43:32 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-16 12:43:32 +0800
commit81aedaf08d5fb34eddb2cf838a434aed1bfe3a6f (patch)
treeb03e3192666424bfed4eb831eff4eee092d79ff6 /include
parent8e5fa100d37547fbbb2862fe8bab431e0d1ea7a6 (diff)
downloadpttbbs-81aedaf08d5fb34eddb2cf838a434aed1bfe3a6f.tar
pttbbs-81aedaf08d5fb34eddb2cf838a434aed1bfe3a6f.tar.gz
pttbbs-81aedaf08d5fb34eddb2cf838a434aed1bfe3a6f.tar.bz2
pttbbs-81aedaf08d5fb34eddb2cf838a434aed1bfe3a6f.tar.lz
pttbbs-81aedaf08d5fb34eddb2cf838a434aed1bfe3a6f.tar.xz
pttbbs-81aedaf08d5fb34eddb2cf838a434aed1bfe3a6f.tar.zst
pttbbs-81aedaf08d5fb34eddb2cf838a434aed1bfe3a6f.zip
- disable interupting ANSI inside DBCS characters (for UTF-8 or
non-DBCS clients) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3688 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/libbbsutil.h1
-rw-r--r--include/uflags.h10
2 files changed, 9 insertions, 2 deletions
diff --git a/include/libbbsutil.h b/include/libbbsutil.h
index 5b877f52..f2e31a53 100644
--- a/include/libbbsutil.h
+++ b/include/libbbsutil.h
@@ -63,6 +63,7 @@ extern int strip_blank(char *cbuf, char *buf);
extern int strip_ansi(char *buf, const char *str, enum STRIP_FLAG flag);
extern int strlen_noansi(const char *s);
extern void strip_nonebig5(unsigned char *str, int maxlen);
+extern int DBCS_RemoveIntrEscape(unsigned char *buf, int *len);
extern int invalid_pname(const char *str);
extern int is_number(const char *p);
extern unsigned StringHash(const char *s);
diff --git a/include/uflags.h b/include/uflags.h
index 752dc73a..ea27bee5 100644
--- a/include/uflags.h
+++ b/include/uflags.h
@@ -4,6 +4,12 @@
#ifndef INCLUDE_UFLAGS_H
#define INCLUDE_UFLAGS_H
+// TODO in order to prevent masking with wrong variables
+// (since we have 2 flags), it is better to rename the
+// masks with their flag index, eg:
+// UF_PAGER,
+// UF2_WATER_ORIG,
+
/* -------------------- userec_t.uflag (unsigned int) */
/* UNKNOWN */
@@ -21,9 +27,9 @@
//#define MIND_FLAG 0x00000100 /* true if mind search mode open <-Heat*/
/* DBCS CONFIG */
+/* please keep these even if you don't have DBCSAWARE features turned on */
#define DBCSAWARE_FLAG 0x00000200 /* true if DBCS-aware enabled. */
-/* please keep this even if you don't have DBCSAWARE features turned on */
-// #define DBCS__??? 0x00000400
+#define DBCS_NOINTRESC 0x00000400 /* no Escapes interupting DBCS characters */
// #define DBCS__??? 0x00000800
/* Modification Mark (~) */