diff options
Diffstat (limited to 'newlib/libc/ctype/iswpunct.c')
-rw-r--r-- | newlib/libc/ctype/iswpunct.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/newlib/libc/ctype/iswpunct.c b/newlib/libc/ctype/iswpunct.c index c6a4eda83..716fe5f62 100644 --- a/newlib/libc/ctype/iswpunct.c +++ b/newlib/libc/ctype/iswpunct.c @@ -29,7 +29,7 @@ /* FUNCTION - <<iswpunct>>---punctuation wide character test + <<iswpunct>>---punctuation wide-character test INDEX iswpunct @@ -48,7 +48,7 @@ DESCRIPTION are punctuation. RETURNS -<<iswpunct>> returns non-zero if <[c]> is a punctuation wide character. +<<iswpunct>> returns non-zero if <[c]> is a punctuation wide-character. PORTABILITY <<iswpunct>> is C99. @@ -56,15 +56,14 @@ PORTABILITY No supporting OS subroutines are required. */ #include <_ansi.h> -#include <newlib.h> #include <wctype.h> #include <string.h> #include <ctype.h> #include "local.h" -#ifdef _MB_CAPABLE +#ifdef MB_CAPABLE #include "utf8punct.h" -#endif /* _MB_CAPABLE */ +#endif /* MB_CAPABLE */ int _DEFUN(iswpunct,(c), wint_t c) @@ -75,7 +74,7 @@ _DEFUN(iswpunct,(c), wint_t c) unicode = 0; /* fall-through */ } -#ifdef _MB_CAPABLE +#ifdef MB_CAPABLE else if (!strcmp (__lc_ctype, "C-JIS")) { c = __jp2uc (c, JP_JIS); @@ -326,7 +325,7 @@ _DEFUN(iswpunct,(c), wint_t c) /* not in table */ return 0; } -#endif /* _MB_CAPABLE */ +#endif /* MB_CAPABLE */ return (c < (wint_t)0x100 ? ispunct (c) : 0); } |