From 38262b22bfe8cfe1f7de6f272e18a3aae340f83a Mon Sep 17 00:00:00 2001 From: victor Date: Sat, 3 Jan 2004 09:53:35 +0000 Subject: support utf8 convertion, but still buggy git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1456 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/proto.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'include/proto.h') 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); -- cgit v1.2.3