diff options
author | dgp <dgp@noemail.net> | 2011-04-28 16:02:09 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2011-04-28 16:02:09 (GMT) |
commit | 0315fe7e50562f08cd3d8d63bc66af510559bdac (patch) | |
tree | 3d0a3378ba018b21c5ba3eca74a04c79da39a7a9 /generic/tclUtil.c | |
parent | 4790d8b304d62477e3b3a0e9e4ba0bb84496c066 (diff) | |
parent | 3337177e6e32b2612123d0d262e914561fa7b789 (diff) | |
download | tcl-0315fe7e50562f08cd3d8d63bc66af510559bdac.zip tcl-0315fe7e50562f08cd3d8d63bc66af510559bdac.tar.gz tcl-0315fe7e50562f08cd3d8d63bc66af510559bdac.tar.bz2 |
More isspace() callers.
FossilOrigin-Name: 41acfe91eae4a425fa99d8d60b26e32d775a2bc6
Diffstat (limited to 'generic/tclUtil.c')
-rw-r--r-- | generic/tclUtil.c | 10 |
1 files changed, 5 insertions, 5 deletions
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') { |