diff options
author | Tatsuo Ishii <ishii@postgresql.org> | 2000-08-27 10:40:48 +0000 |
---|---|---|
committer | Tatsuo Ishii <ishii@postgresql.org> | 2000-08-27 10:40:48 +0000 |
commit | bfdd6a716dc2ea03587c41dd9cd8ece39a654a8d (patch) | |
tree | 3ba350b768690d2e9753ed24a17a0a83b48db2c5 /src/backend/utils/mb/mbutils.c | |
parent | 86ff9d29125849619cb100f4132c9f60e7390536 (diff) | |
download | postgresql-bfdd6a716dc2ea03587c41dd9cd8ece39a654a8d.tar.gz postgresql-bfdd6a716dc2ea03587c41dd9cd8ece39a654a8d.zip |
Change pg_mblen and pg_encoding_mblen return types from void
to int so that they return the number of whcars.
Diffstat (limited to 'src/backend/utils/mb/mbutils.c')
-rw-r--r-- | src/backend/utils/mb/mbutils.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/utils/mb/mbutils.c b/src/backend/utils/mb/mbutils.c index 2e21f4f37ae..922f1e2fc76 100644 --- a/src/backend/utils/mb/mbutils.c +++ b/src/backend/utils/mb/mbutils.c @@ -3,7 +3,7 @@ * client encoding and server internal encoding. * (currently mule internal code (mic) is used) * Tatsuo Ishii - * $Id: mbutils.c,v 1.10 2000/06/13 07:35:12 tgl Exp $ */ + * $Id: mbutils.c,v 1.11 2000/08/27 10:40:48 ishii Exp $ */ #include "postgres.h" @@ -173,17 +173,17 @@ pg_server_to_client(unsigned char *s, int len) } /* convert a multi-byte string to a wchar */ -void +int pg_mb2wchar(const unsigned char *from, pg_wchar * to) { - (*pg_wchar_table[GetDatabaseEncoding()].mb2wchar_with_len) (from, to, strlen(from)); + return (*pg_wchar_table[GetDatabaseEncoding()].mb2wchar_with_len) (from, to, strlen(from)); } /* convert a multi-byte string to a wchar with a limited length */ -void +int pg_mb2wchar_with_len(const unsigned char *from, pg_wchar * to, int len) { - (*pg_wchar_table[GetDatabaseEncoding()].mb2wchar_with_len) (from, to, len); + return (*pg_wchar_table[GetDatabaseEncoding()].mb2wchar_with_len) (from, to, len); } /* returns the byte length of a multi-byte word */ |