Sync with ctype.h (remove EOF handling)
This commit is contained in:
parent
09b133a008
commit
bac719f599
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3457
@ -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