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.
This commit is contained in:
Tatsuo Ishii 2000-08-25 14:24:09 +00:00
parent 996832caee
commit 8cca25728b
1 changed files with 4 additions and 4 deletions

View File

@ -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);