Sync with ctype.h (remove EOF handling)
This commit is contained in:
parent
9a2892ccba
commit
f5e00a30f6
@ -1,4 +1,3 @@
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
#include <rune.h>
|
||||
|
||||
@ -11,8 +10,6 @@ __istype(c, f)
|
||||
_BSD_RUNE_T_ c;
|
||||
unsigned long f;
|
||||
{
|
||||
if (c == EOF)
|
||||
return 0;
|
||||
if (c < 0)
|
||||
c = (unsigned char) c;
|
||||
return ((((c & _CRMASK) ? ___runetype(c)
|
||||
@ -24,8 +21,6 @@ __isctype(_BSD_RUNE_T_ c, unsigned long f)
|
||||
_BSD_RUNE_T_ c;
|
||||
unsigned long f;
|
||||
{
|
||||
if (c == EOF)
|
||||
return 0;
|
||||
if (c < 0)
|
||||
c = (unsigned char) c;
|
||||
return ((((c & _CRMASK) ? 0
|
||||
@ -36,8 +31,6 @@ _BSD_RUNE_T_
|
||||
toupper(c)
|
||||
_BSD_RUNE_T_ c;
|
||||
{
|
||||
if (c == EOF)
|
||||
return EOF;
|
||||
if (c < 0)
|
||||
c = (unsigned char) c;
|
||||
return ((c & _CRMASK) ?
|
||||
@ -48,8 +41,6 @@ _BSD_RUNE_T_
|
||||
tolower(c)
|
||||
_BSD_RUNE_T_ c;
|
||||
{
|
||||
if (c == EOF)
|
||||
return EOF;
|
||||
if (c < 0)
|
||||
c = (unsigned char) c;
|
||||
return ((c & _CRMASK) ?
|
||||
|
Loading…
Reference in New Issue
Block a user