Fix sgetrune/sputrune arg type: was unsigned int instead of size_t
This commit is contained in:
parent
c0ea8ed12f
commit
a74de56d07
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=15287
@ -48,6 +48,11 @@ typedef _BSD_WCHAR_T_ wchar_t;
|
|||||||
#undef _BSD_WCHAR_T_
|
#undef _BSD_WCHAR_T_
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef _BSD_SIZE_T_
|
||||||
|
typedef _BSD_SIZE_T_ size_t;
|
||||||
|
#undef _BSD_SIZE_T_
|
||||||
|
#endif
|
||||||
|
|
||||||
#define _CACHED_RUNES (1 <<8 ) /* Must be a power of 2 */
|
#define _CACHED_RUNES (1 <<8 ) /* Must be a power of 2 */
|
||||||
#define _CRMASK (~(_CACHED_RUNES - 1))
|
#define _CRMASK (~(_CACHED_RUNES - 1))
|
||||||
|
|
||||||
@ -71,9 +76,9 @@ typedef struct {
|
|||||||
char encoding[32]; /* ASCII name of this encoding */
|
char encoding[32]; /* ASCII name of this encoding */
|
||||||
|
|
||||||
rune_t (*sgetrune)
|
rune_t (*sgetrune)
|
||||||
__P((const char *, unsigned int, char const **));
|
__P((const char *, size_t, char const **));
|
||||||
int (*sputrune)
|
int (*sputrune)
|
||||||
__P((rune_t, char *, unsigned int, char **));
|
__P((rune_t, char *, size_t, char **));
|
||||||
rune_t invalid_rune;
|
rune_t invalid_rune;
|
||||||
|
|
||||||
unsigned long runetype[_CACHED_RUNES];
|
unsigned long runetype[_CACHED_RUNES];
|
||||||
|
Loading…
Reference in New Issue
Block a user