From 8cca25728bdacb31dfdcaf9f8b5fb61ca3438819 Mon Sep 17 00:00:00 2001
From: Tatsuo Ishii <ishii@postgresql.org>
Date: Fri, 25 Aug 2000 14:24:09 +0000
Subject: [PATCH] Change return type of:        pg_mb2wchar(const unsigned char
 *, pg_wchar *);        pg_mb2wchar_with_len(const unsigned char *, pg_wchar
 *, int); from void to int. Now they return the number of wide chars.

---
 src/include/mb/pg_wchar.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/include/mb/pg_wchar.h b/src/include/mb/pg_wchar.h
index cf308b6042e..6a1b918ed78 100644
--- a/src/include/mb/pg_wchar.h
+++ b/src/include/mb/pg_wchar.h
@@ -1,4 +1,4 @@
-/* $Id: pg_wchar.h,v 1.16 2000/06/15 00:52:19 momjian Exp $ */
+/* $Id: pg_wchar.h,v 1.17 2000/08/25 14:24:09 ishii Exp $ */
 
 #ifndef PG_WCHAR_H
 #define PG_WCHAR_H
@@ -88,15 +88,15 @@ extern pg_encoding_conv_tbl pg_conv_tbl[];
 
 typedef struct
 {
-	void		(*mb2wchar_with_len) ();		/* convert a multi-byte
+	int		(*mb2wchar_with_len) ();		/* convert a multi-byte
 												 * string to a wchar */
 	int			(*mblen) ();	/* returns the length of a multi-byte word */
 }			pg_wchar_tbl;
 
 extern pg_wchar_tbl pg_wchar_table[];
 
-extern void pg_mb2wchar(const unsigned char *, pg_wchar *);
-extern void pg_mb2wchar_with_len(const unsigned char *, pg_wchar *, int);
+extern int pg_mb2wchar(const unsigned char *, pg_wchar *);
+extern int pg_mb2wchar_with_len(const unsigned char *, pg_wchar *, int);
 extern int	pg_char_and_wchar_strcmp(const char *, const pg_wchar *);
 extern int	pg_wchar_strncmp(const pg_wchar *, const pg_wchar *, size_t);
 extern int	pg_char_and_wchar_strncmp(const char *, const pg_wchar *, size_t);
-- 
GitLab