wcwidth's argument is wchar_t. not wint_t.

This commit is contained in:
yamt 2002-03-14 21:18:46 +00:00
parent 01702c713d
commit 5d6c7fdf83
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: iswctype.c,v 1.7 2001/02/06 18:48:41 christos Exp $ */ /* $NetBSD: iswctype.c,v 1.8 2002/03/14 21:18:46 yamt Exp $ */
/* /*
* Copyright (c) 1989 The Regents of the University of California. * Copyright (c) 1989 The Regents of the University of California.
@ -40,7 +40,7 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: iswctype.c,v 1.7 2001/02/06 18:48:41 christos Exp $"); __RCSID("$NetBSD: iswctype.c,v 1.8 2002/03/14 21:18:46 yamt Exp $");
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
#include <wchar.h> #include <wchar.h>
@ -200,7 +200,7 @@ towlower(c)
#undef wcwidth #undef wcwidth
int int
wcwidth(c) wcwidth(c)
wint_t c; wchar_t c;
{ {
return ((unsigned)__maskrune_w((c), _CTYPE_SWM) >> _CTYPE_SWS); return ((unsigned)__maskrune_w((c), _CTYPE_SWM) >> _CTYPE_SWS);
} }

View File

@ -1,4 +1,4 @@
/* $NetBSD: iswctype_sb.c,v 1.1 2000/12/25 23:30:58 itojun Exp $ */ /* $NetBSD: iswctype_sb.c,v 1.2 2002/03/14 21:18:46 yamt Exp $ */
/* /*
* Copyright (c) 1989 The Regents of the University of California. * Copyright (c) 1989 The Regents of the University of California.
@ -40,7 +40,7 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: iswctype_sb.c,v 1.1 2000/12/25 23:30:58 itojun Exp $"); __RCSID("$NetBSD: iswctype_sb.c,v 1.2 2002/03/14 21:18:46 yamt Exp $");
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
#include <wchar.h> #include <wchar.h>
@ -162,7 +162,7 @@ towlower(c)
#undef wcwidth #undef wcwidth
int int
wcwidth(c) wcwidth(c)
wint_t c; wchar_t c;
{ {
return 1; return 1;
} }