summaryrefslogtreecommitdiffstats
path: root/generic/tclParse.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-01-26 16:50:21 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-01-26 16:50:21 (GMT)
commitfa64afb29a232d853b04e8e7bb5ad53c3d02f019 (patch)
tree3fff9cc7c897fa0e1aa2cecc65aaf232211dd03b /generic/tclParse.c
parent5f4d72886372eacd51d78f6431e812a978dae48f (diff)
downloadtcl-fa64afb29a232d853b04e8e7bb5ad53c3d02f019.zip
tcl-fa64afb29a232d853b04e8e7bb5ad53c3d02f019.tar.gz
tcl-fa64afb29a232d853b04e8e7bb5ad53c3d02f019.tar.bz2
Replace isspace() -> TclIsSpaceProc() _everywhere_.
Change TclIsSpaceProc() and TclIsBareWord so it works with both signed and unsigned characters. Actually, this is not a signature change, as "char" arguments are enlarged to "int" by the C-compiler anyway.
Diffstat (limited to 'generic/tclParse.c')
-rw-r--r--generic/tclParse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclParse.c b/generic/tclParse.c
index f26f933..74b02ce 100644
--- a/generic/tclParse.c
+++ b/generic/tclParse.c
@@ -613,7 +613,7 @@ Tcl_ParseCommand(
int
TclIsSpaceProc(
- char byte)
+ int byte)
{
return CHAR_TYPE(byte) & (TYPE_SPACE) || byte == '\n';
}
@@ -642,7 +642,7 @@ TclIsSpaceProc(
int
TclIsBareword(
- char byte)
+ int byte)
{
if (byte < '0' || byte > 'z') {
return 0;