diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-08 19:15:39 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-08 19:15:39 +0800 |
commit | 71f79c7083cc15749079d7241ca46f186f304012 (patch) | |
tree | 8052a10f3dbd5061172d12ee8698d65f70ae60a2 /include | |
parent | 524f96649436d3aa687c237a61c82cee5cf2e145 (diff) | |
download | pttbbs-71f79c7083cc15749079d7241ca46f186f304012.tar pttbbs-71f79c7083cc15749079d7241ca46f186f304012.tar.gz pttbbs-71f79c7083cc15749079d7241ca46f186f304012.tar.bz2 pttbbs-71f79c7083cc15749079d7241ca46f186f304012.tar.lz pttbbs-71f79c7083cc15749079d7241ca46f186f304012.tar.xz pttbbs-71f79c7083cc15749079d7241ca46f186f304012.tar.zst pttbbs-71f79c7083cc15749079d7241ca46f186f304012.zip |
New DBCS aware: detecting and reversed default value
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2803 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r-- | include/proto.h | 6 | ||||
-rw-r--r-- | include/pttstruct.h | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/include/proto.h b/include/proto.h index 4b969e08..2c9b060e 100644 --- a/include/proto.h +++ b/include/proto.h @@ -305,6 +305,7 @@ void set_converting_type(int which); /* io */ int getdata(int line, int col, const char *prompt, char *buf, int len, int echo); int igetch(void); +int wait_input(float f, int flDoRefresh); int getdata_str(int line, int col, const char *prompt, char *buf, int len, int echo, const char *defaultstr); int getdata_buf(int line, int col, const char *prompt, char *buf, int len, int echo); void add_io(int fd, int timeout); @@ -708,6 +709,11 @@ int u_cloak(void); int u_register(void); int u_list(void); +#if defined(DBCSAWARE_GETDATA) || defined(DBCSAWARE_EDIT) +# define DBCSAWARE +int u_detectDBCSAwareEvilClient(); +#endif + /* vote */ void b_suckinfile(FILE *fp, char *fname); int b_results(void); diff --git a/include/pttstruct.h b/include/pttstruct.h index cb2049fd..d7dc1a00 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -115,10 +115,13 @@ typedef struct userec_t { #define FRIEND_FLAG 0x10 /* true if show friends only */ #define BRDSORT_FLAG 0x20 /* true if the boards sorted alphabetical */ #define MOVIE_FLAG 0x40 /* true if show movie */ + /* useless flag */ //#define COLOR_FLAG 0x80 /* true if the color mode open */ //#define MIND_FLAG 0x100 /* true if mind search mode open <-Heat*/ -#define RAWDBCS_FLAG 0x200 /* true if rawmode instead of DBCS-aware */ + +#define DBCSAWARE_FLAG 0x200 /* true if DBCS-aware enabled. */ +/* please keep this even if you don't have DBCSAWARE features turned on */ /* these are flags in userec_t.uflag2 */ #define WATER_MASK 000003 /* water mask */ |