get rid of debugging info.
routines are only define with wctype.h
This commit is contained in:
parent
f3b6a044f6
commit
950abd136e
@ -48,6 +48,9 @@
|
|||||||
#if HAVE_STRING_H
|
#if HAVE_STRING_H
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#endif
|
#endif
|
||||||
|
#if HAVE_WCTYPE_H
|
||||||
|
#include <wctype.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/* You just can't trust some machines */
|
/* You just can't trust some machines */
|
||||||
#define my_isxdigit(C,SU,SL) (chtype(C) == NU || (C >= 'A' && \
|
#define my_isxdigit(C,SU,SL) (chtype(C) == NU || (C >= 'A' && \
|
||||||
@ -124,12 +127,14 @@ char *Yap_chtype = chtype0+1;
|
|||||||
|
|
||||||
int
|
int
|
||||||
Yap_wide_chtype(Int ch) {
|
Yap_wide_chtype(Int ch) {
|
||||||
|
#if HAVE_WCTYPE_H
|
||||||
if (iswalnum(ch)) {
|
if (iswalnum(ch)) {
|
||||||
if (iswlower(ch)) return LC;
|
if (iswlower(ch)) return LC;
|
||||||
if (iswdigit(ch)) return NU;
|
if (iswdigit(ch)) return NU;
|
||||||
return UC;
|
return UC;
|
||||||
}
|
}
|
||||||
if (iswpunct(ch)) return SY;
|
if (iswpunct(ch)) return SY;
|
||||||
|
#endif
|
||||||
return BS;
|
return BS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user