get rid of debugging info.

routines are only define with wctype.h
This commit is contained in:
Vítor Santos Costa
2010-05-05 12:51:38 +01:00
parent f3b6a044f6
commit 950abd136e
2 changed files with 5 additions and 1 deletions

View File

@@ -48,6 +48,9 @@
#if HAVE_STRING_H
#include <string.h>
#endif
#if HAVE_WCTYPE_H
#include <wctype.h>
#endif
/* You just can't trust some machines */
#define my_isxdigit(C,SU,SL) (chtype(C) == NU || (C >= 'A' && \
@@ -124,12 +127,14 @@ char *Yap_chtype = chtype0+1;
int
Yap_wide_chtype(Int ch) {
#if HAVE_WCTYPE_H
if (iswalnum(ch)) {
if (iswlower(ch)) return LC;
if (iswdigit(ch)) return NU;
return UC;
}
if (iswpunct(ch)) return SY;
#endif
return BS;
}