diff options
author | dgp <dgp@noemail.net> | 2011-04-28 16:00:16 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2011-04-28 16:00:16 (GMT) |
commit | 3337177e6e32b2612123d0d262e914561fa7b789 (patch) | |
tree | 594d7927db197d025019ed1ed78bb8de85e4d4ed /generic | |
parent | ca63cde889bfbb8f70a3a8972374c20ba53112a1 (diff) | |
download | tcl-3337177e6e32b2612123d0d262e914561fa7b789.zip tcl-3337177e6e32b2612123d0d262e914561fa7b789.tar.gz tcl-3337177e6e32b2612123d0d262e914561fa7b789.tar.bz2 |
More isspace() callers.
FossilOrigin-Name: 88095bbde01c7ae249326f391cd8e8f071a9b4c6
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclUtf.c | 2 | ||||
-rw-r--r-- | generic/tclUtil.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/generic/tclUtf.c b/generic/tclUtf.c index c545e66..00b652e 100644 --- a/generic/tclUtf.c +++ b/generic/tclUtf.c @@ -1526,7 +1526,7 @@ Tcl_UniCharIsSpace( */ if (ch < 0x80) { - return isspace(UCHAR(ch)); /* INTL: ISO space */ + return TclIsSpaceProc((char)ch); } else { category = (GetUniCharInfo(ch) & UNICODE_CATEGORY_MASK); return ((SPACE_BITS >> category) & 1); diff --git a/generic/tclUtil.c b/generic/tclUtil.c index 4a7f79f..d542b52 100644 --- a/generic/tclUtil.c +++ b/generic/tclUtil.c @@ -2723,7 +2723,7 @@ TclGetIntForIndex( * Leading whitespace is acceptable in an index. */ - while (length && isspace(UCHAR(*bytes))) { /* INTL: ISO space. */ + while (length && TclIsSpaceProc(*bytes)) { bytes++; length--; } @@ -2736,7 +2736,7 @@ TclGetIntForIndex( if ((savedOp != '+') && (savedOp != '-')) { goto parseError; } - if (isspace(UCHAR(opPtr[1]))) { + if (TclIsSpaceProc(opPtr[1])) { goto parseError; } *opPtr = '\0'; @@ -2882,7 +2882,7 @@ SetEndOffsetFromAny( * after "end-" to Tcl_GetInt, then reverse for offset. */ - if (isspace(UCHAR(bytes[4]))) { + if (TclIsSpaceProc(bytes[4])) { return TCL_ERROR; } if (Tcl_GetInt(interp, bytes+4, &offset) != TCL_OK) { @@ -2947,7 +2947,7 @@ TclCheckBadOctal( * zero. Try to generate a meaningful error message. */ - while (isspace(UCHAR(*p))) { /* INTL: ISO space. */ + while (TclIsSpaceProc(*p)) { p++; } if (*p == '+' || *p == '-') { @@ -2960,7 +2960,7 @@ TclCheckBadOctal( while (isdigit(UCHAR(*p))) { /* INTL: digit. */ p++; } - while (isspace(UCHAR(*p))) { /* INTL: ISO space. */ + while (TclIsSpaceProc(*p)) { p++; } if (*p == '\0') { |