diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-01-03 17:53:35 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-01-03 17:53:35 +0800 |
commit | 38262b22bfe8cfe1f7de6f272e18a3aae340f83a (patch) | |
tree | 819e75228a3d78d922eaaa9a4e81df89219457da /include/proto.h | |
parent | 63bc2dad6f3d3fdb6b3495a4eda10a14a5647c6a (diff) | |
download | pttbbs-38262b22bfe8cfe1f7de6f272e18a3aae340f83a.tar pttbbs-38262b22bfe8cfe1f7de6f272e18a3aae340f83a.tar.gz pttbbs-38262b22bfe8cfe1f7de6f272e18a3aae340f83a.tar.bz2 pttbbs-38262b22bfe8cfe1f7de6f272e18a3aae340f83a.tar.lz pttbbs-38262b22bfe8cfe1f7de6f272e18a3aae340f83a.tar.xz pttbbs-38262b22bfe8cfe1f7de6f272e18a3aae340f83a.tar.zst pttbbs-38262b22bfe8cfe1f7de6f272e18a3aae340f83a.zip |
support utf8 convertion, but still buggy
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1456 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include/proto.h')
-rw-r--r-- | include/proto.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/proto.h b/include/proto.h index c2cb7716..ed883028 100644 --- a/include/proto.h +++ b/include/proto.h @@ -278,13 +278,15 @@ int x_dict(); int use_dict(char *dict,char *database); /* convert */ +int gb_write(int fd, void *buf, size_t count); +int gb_read(int fd, void *buf, size_t count); +int utf8_write(int fd, void *buf, size_t count); +int utf8_read(int fd, void *buf, size_t count); +void set_converting_type(int which); unsigned char *gb2big(unsigned char *s, int plen); unsigned char *big2gb(unsigned char *s, int plen); /* io */ -int converting_write(int fd, void *buf, size_t count); -int converting_read(int fd, void *buf, size_t count); -void set_converting_type(int which); int getdata(int line, int col, char *prompt, char *buf, int len, int echo); int igetch(); int getdata_str(int line, int col, char *prompt, char *buf, int len, int echo, char *defaultstr); |