summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1994-10-09 11:18:44 +0000
committerache <ache@FreeBSD.org>1994-10-09 11:18:44 +0000
commit738848484c62a2be41e6239a0715f0e44843f89a (patch)
tree94228c70dde4b55a9af300db22309e30e02959a9
parenteb3b7db32ddd17f7ead15ccef9a7693b230256e4 (diff)
downloadFreeBSD-src-738848484c62a2be41e6239a0715f0e44843f89a.zip
FreeBSD-src-738848484c62a2be41e6239a0715f0e44843f89a.tar.gz
Remove EOF handling after Bruce explanation. This step returns
to 4.4 way to not allow EOF in ctype and now all signed chars (including '\377' which becomes EOF) converted to (unsigned char) properly.
-rw-r--r--include/_ctype.h13
-rw-r--r--include/ctype.h13
2 files changed, 0 insertions, 26 deletions
diff --git a/include/_ctype.h b/include/_ctype.h
index 0a34886..671c107 100644
--- a/include/_ctype.h
+++ b/include/_ctype.h
@@ -103,16 +103,9 @@ __END_DECLS
#endif
#if defined(_USE_CTYPE_INLINE_)
-
-#ifndef EOF
-#define EOF (-1)
-#endif
-
static __inline int
__istype(_BSD_RUNE_T_ c, unsigned long f)
{
- if (c == EOF)
- return 0;
if (c < 0)
c = (unsigned char) c;
return((((c & _CRMASK) ? ___runetype(c) :
@@ -122,8 +115,6 @@ __istype(_BSD_RUNE_T_ c, unsigned long f)
static __inline int
__isctype(_BSD_RUNE_T_ c, unsigned long f)
{
- if (c == EOF)
- return 0;
if (c < 0)
c = (unsigned char) c;
return((((c & _CRMASK) ? 0 :
@@ -135,8 +126,6 @@ __isctype(_BSD_RUNE_T_ c, unsigned long f)
static __inline _BSD_RUNE_T_
toupper(_BSD_RUNE_T_ c)
{
- if (c == EOF)
- return EOF;
if (c < 0)
c = (unsigned char) c;
return((c & _CRMASK) ?
@@ -146,8 +135,6 @@ toupper(_BSD_RUNE_T_ c)
static __inline _BSD_RUNE_T_
tolower(_BSD_RUNE_T_ c)
{
- if (c == EOF)
- return EOF;
if (c < 0)
c = (unsigned char) c;
return((c & _CRMASK) ?
diff --git a/include/ctype.h b/include/ctype.h
index 0a34886..671c107 100644
--- a/include/ctype.h
+++ b/include/ctype.h
@@ -103,16 +103,9 @@ __END_DECLS
#endif
#if defined(_USE_CTYPE_INLINE_)
-
-#ifndef EOF
-#define EOF (-1)
-#endif
-
static __inline int
__istype(_BSD_RUNE_T_ c, unsigned long f)
{
- if (c == EOF)
- return 0;
if (c < 0)
c = (unsigned char) c;
return((((c & _CRMASK) ? ___runetype(c) :
@@ -122,8 +115,6 @@ __istype(_BSD_RUNE_T_ c, unsigned long f)
static __inline int
__isctype(_BSD_RUNE_T_ c, unsigned long f)
{
- if (c == EOF)
- return 0;
if (c < 0)
c = (unsigned char) c;
return((((c & _CRMASK) ? 0 :
@@ -135,8 +126,6 @@ __isctype(_BSD_RUNE_T_ c, unsigned long f)
static __inline _BSD_RUNE_T_
toupper(_BSD_RUNE_T_ c)
{
- if (c == EOF)
- return EOF;
if (c < 0)
c = (unsigned char) c;
return((c & _CRMASK) ?
@@ -146,8 +135,6 @@ toupper(_BSD_RUNE_T_ c)
static __inline _BSD_RUNE_T_
tolower(_BSD_RUNE_T_ c)
{
- if (c == EOF)
- return EOF;
if (c < 0)
c = (unsigned char) c;
return((c & _CRMASK) ?
OpenPOWER on IntegriCloud