diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-18 00:42:57 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-18 00:42:57 +0800 |
commit | c2cded3c25ffed4bd3ceda295b477d8b5f6f929c (patch) | |
tree | 8fdd9e896ff38c4545a74c225218010776965ff3 /mbbsd/io.c | |
parent | 1d88f1ec941997fad204a51371b0ef4552d62ea8 (diff) | |
download | pttbbs-c2cded3c25ffed4bd3ceda295b477d8b5f6f929c.tar pttbbs-c2cded3c25ffed4bd3ceda295b477d8b5f6f929c.tar.gz pttbbs-c2cded3c25ffed4bd3ceda295b477d8b5f6f929c.tar.bz2 pttbbs-c2cded3c25ffed4bd3ceda295b477d8b5f6f929c.tar.lz pttbbs-c2cded3c25ffed4bd3ceda295b477d8b5f6f929c.tar.xz pttbbs-c2cded3c25ffed4bd3ceda295b477d8b5f6f929c.tar.zst pttbbs-c2cded3c25ffed4bd3ceda295b477d8b5f6f929c.zip |
Equivalent config file updates
- little/big endian is useless.
- DBCSAWARE_* now merged into DBCSAWARE
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3056 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/io.c')
-rw-r--r-- | mbbsd/io.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -721,7 +721,7 @@ strip_nonebig5(unsigned char *str, int maxlen) str[len]='\0'; } -#ifdef DBCSAWARE_GETDATA +#ifdef DBCSAWARE int getDBCSstatus(unsigned char *s, int pos) { @@ -759,7 +759,7 @@ oldgetdata(int line, int col, const char *prompt, char *buf, int len, int echo) static char lastcmd[MAXLASTCMD][80]; unsigned char occupy_msg = 0; -#ifdef DBCSAWARE_GETDATA +#ifdef DBCSAWARE unsigned int dbcsincomplete = 0; #endif @@ -867,7 +867,7 @@ oldgetdata(int line, int col, const char *prompt, char *buf, int len, int echo) if (currchar > 0) { --currchar; -#ifdef DBCSAWARE_GETDATA +#ifdef DBCSAWARE if(currchar > 0 && ISDBCSAWARE() && getDBCSstatus(buf, currchar) == DBCS_TRAILING) @@ -879,7 +879,7 @@ oldgetdata(int line, int col, const char *prompt, char *buf, int len, int echo) if (buf[currchar]) { ++currchar; -#ifdef DBCSAWARE_GETDATA +#ifdef DBCSAWARE if(buf[currchar] && ISDBCSAWARE() && getDBCSstatus(buf, currchar) == DBCS_TRAILING) @@ -890,7 +890,7 @@ oldgetdata(int line, int col, const char *prompt, char *buf, int len, int echo) case '\177': case Ctrl('H'): if (currchar) { -#ifdef DBCSAWARE_GETDATA +#ifdef DBCSAWARE int dbcs_off = 1; if (ISDBCSAWARE() && getDBCSstatus(buf, currchar-1) == DBCS_TRAILING) @@ -905,7 +905,7 @@ oldgetdata(int line, int col, const char *prompt, char *buf, int len, int echo) { move(y, x + clen); outc(' '); -#ifdef DBCSAWARE_GETDATA +#ifdef DBCSAWARE while(--dbcs_off > 0) outc(' '); #endif move(y, x); @@ -929,7 +929,7 @@ oldgetdata(int line, int col, const char *prompt, char *buf, int len, int echo) case Ctrl('D'): case KEY_DEL: if (buf[currchar]) { -#ifdef DBCSAWARE_GETDATA +#ifdef DBCSAWARE int dbcs_off = 1; if (ISDBCSAWARE() && buf[currchar+1] && getDBCSstatus(buf, currchar+1) == DBCS_TRAILING) @@ -942,7 +942,7 @@ oldgetdata(int line, int col, const char *prompt, char *buf, int len, int echo) { move(y, x + clen); outc(' '); -#ifdef DBCSAWARE_GETDATA +#ifdef DBCSAWARE while(--dbcs_off > 0) outc(' '); #endif move(y, x); @@ -960,7 +960,7 @@ oldgetdata(int line, int col, const char *prompt, char *buf, int len, int echo) break; default: if (isprint2(ch) && clen < len && x + clen < scr_cols) { -#ifdef DBCSAWARE_GETDATA +#ifdef DBCSAWARE if(ISDBCSAWARE()) { /* to prevent single byte input */ |