diff options
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 */ |