diff options
author | dgp <dgp@users.sourceforge.net> | 2011-04-28 16:02:09 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2011-04-28 16:02:09 (GMT) |
commit | 478c4f27117f1923b27c8554447db7902a573c6f (patch) | |
tree | 3d0a3378ba018b21c5ba3eca74a04c79da39a7a9 /generic | |
parent | 2df55486c49d238b2f888339b84efa9766b4d94a (diff) | |
parent | 92906a53a74eaca4671e76dcf8789db8c565c082 (diff) | |
download | tcl-478c4f27117f1923b27c8554447db7902a573c6f.zip tcl-478c4f27117f1923b27c8554447db7902a573c6f.tar.gz tcl-478c4f27117f1923b27c8554447db7902a573c6f.tar.bz2 |
More isspace() callers.
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 efaccb7..ab26779 100644 --- a/generic/tclUtf.c +++ b/generic/tclUtf.c @@ -1527,7 +1527,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 e8eee7a..fdfb190 100644 --- a/generic/tclUtil.c +++ b/generic/tclUtil.c @@ -2730,7 +2730,7 @@ TclGetIntForIndex( * Leading whitespace is acceptable in an index. */ - while (length && isspace(UCHAR(*bytes))) { /* INTL: ISO space. */ + while (length && TclIsSpaceProc(*bytes)) { bytes++; length--; } @@ -2743,7 +2743,7 @@ TclGetIntForIndex( if ((savedOp != '+') && (savedOp != '-')) { goto parseError; } - if (isspace(UCHAR(opPtr[1]))) { + if (TclIsSpaceProc(opPtr[1])) { goto parseError; } *opPtr = '\0'; @@ -2890,7 +2890,7 @@ SetEndOffsetFromAny( * after "end-" to Tcl_GetInt, then reverse for offset. */ - if (isspace(UCHAR(bytes[4]))) { + if (TclIsSpaceProc(bytes[4])) { goto badIndexFormat; } if (Tcl_GetInt(interp, bytes+4, &offset) != TCL_OK) { @@ -2957,7 +2957,7 @@ TclCheckBadOctal( * zero. Try to generate a meaningful error message. */ - while (isspace(UCHAR(*p))) { /* INTL: ISO space. */ + while (TclIsSpaceProc(*p)) { p++; } if (*p == '+' || *p == '-') { @@ -2970,7 +2970,7 @@ TclCheckBadOctal( while (isdigit(UCHAR(*p))) { /* INTL: digit. */ p++; } - while (isspace(UCHAR(*p))) { /* INTL: ISO space. */ + while (TclIsSpaceProc(*p)) { p++; } if (*p == '\0') { |