no point to compare wint_t and EOF.

This commit is contained in:
yamt 2003-03-04 15:09:54 +00:00
parent da2254b6db
commit 4ff37a4920
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ___runetype_mb.c,v 1.6 2003/03/02 22:18:12 tshiozak Exp $ */
/* $NetBSD: ___runetype_mb.c,v 1.7 2003/03/04 15:09:54 yamt Exp $ */
/*-
* Copyright (c) 1993
@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: ___runetype_mb.c,v 1.6 2003/03/02 22:18:12 tshiozak Exp $");
__RCSID("$NetBSD: ___runetype_mb.c,v 1.7 2003/03/04 15:09:54 yamt Exp $");
#endif /* LIBC_SCCS and not lint */
#include <wctype.h>
@ -53,7 +53,7 @@ ___runetype_mb(c)
_RuneRange *rr = &_CurrentRuneLocale->rl_runetype_ext;
_RuneEntry *re = rr->rr_rune_ranges;
if (c < 0 || c == EOF)
if (c < 0 || c == WEOF)
return(0U);
for (x = 0; x < rr->rr_nranges; ++x, ++re) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: _wctrans.c,v 1.1 2003/03/02 22:18:13 tshiozak Exp $ */
/* $NetBSD: _wctrans.c,v 1.2 2003/03/04 15:09:54 yamt Exp $ */
/*-
* Copyright (c)2003 Citrus Project,
@ -64,7 +64,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: _wctrans.c,v 1.1 2003/03/02 22:18:13 tshiozak Exp $");
__RCSID("$NetBSD: _wctrans.c,v 1.2 2003/03/04 15:09:54 yamt Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@ -103,7 +103,7 @@ _towctrans_ext(wint_t c, struct _WCTransEntry *te)
_RuneRange *rr = te->te_extmap;
_RuneEntry *re = rr->rr_rune_ranges;
if (c < 0 || c == EOF)
if (c < 0 || c == WEOF)
return(c);
for (x = 0; x < rr->rr_nranges; ++x, ++re) {