summaryrefslogtreecommitdiffstats
path: root/generic/tclStringObj.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-10-17 06:02:36 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-10-17 06:02:36 (GMT)
commit6def0d48c1fff35f9f5b3bfbe1ddbe6cedd2c247 (patch)
tree764a634adc0ddab6d9a9456d74fc449175c34275 /generic/tclStringObj.c
parentfdb568c35f1cd6de7f1acd05fdbd4f8b6cf5aee1 (diff)
downloadtcl-6def0d48c1fff35f9f5b3bfbe1ddbe6cedd2c247.zip
tcl-6def0d48c1fff35f9f5b3bfbe1ddbe6cedd2c247.tar.gz
tcl-6def0d48c1fff35f9f5b3bfbe1ddbe6cedd2c247.tar.bz2
Handle sentinels for any C++ compiler
Diffstat (limited to 'generic/tclStringObj.c')
-rw-r--r--generic/tclStringObj.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/generic/tclStringObj.c b/generic/tclStringObj.c
index 2b6d7c2..b307cd6 100644
--- a/generic/tclStringObj.c
+++ b/generic/tclStringObj.c
@@ -2872,7 +2872,7 @@ Tcl_AppendFormatToObj(
if (interp != NULL) {
Tcl_SetObjResult(interp,
Tcl_ObjPrintf("bad field specifier \"%c\"", ch));
- Tcl_SetErrorCode(interp, "TCL", "FORMAT", "BADTYPE", NULL);
+ Tcl_SetErrorCode(interp, "TCL", "FORMAT", "BADTYPE", (void *)NULL);
}
goto error;
}
@@ -2932,7 +2932,7 @@ Tcl_AppendFormatToObj(
errorMsg:
if (interp != NULL) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(msg, -1));
- Tcl_SetErrorCode(interp, "TCL", "FORMAT", errCode, NULL);
+ Tcl_SetErrorCode(interp, "TCL", "FORMAT", errCode, (void *)NULL);
}
error:
Tcl_SetObjLength(appendObj, originalLength);
@@ -3325,7 +3325,7 @@ TclStringRepeat(
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"max size for a Tcl value (%" TCL_SIZE_MODIFIER
"d bytes) exceeded", TCL_SIZE_MAX));
- Tcl_SetErrorCode(interp, "TCL", "MEMORY", NULL);
+ Tcl_SetErrorCode(interp, "TCL", "MEMORY", (void *)NULL);
}
return NULL;
}
@@ -3362,7 +3362,7 @@ TclStringRepeat(
"string size overflow: unable to alloc %"
TCL_Z_MODIFIER "u bytes",
UNICHAR_STRING_SIZE(count*length)));
- Tcl_SetErrorCode(interp, "TCL", "MEMORY", NULL);
+ Tcl_SetErrorCode(interp, "TCL", "MEMORY", (void *)NULL);
}
return NULL;
}
@@ -3389,7 +3389,7 @@ TclStringRepeat(
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"string size overflow: unable to alloc %" TCL_SIZE_MODIFIER "d bytes",
count*length));
- Tcl_SetErrorCode(interp, "TCL", "MEMORY", NULL);
+ Tcl_SetErrorCode(interp, "TCL", "MEMORY", (void *)NULL);
}
return NULL;
}
@@ -3696,7 +3696,7 @@ TclStringCat(
"concatenation failed: unable to alloc %"
TCL_Z_MODIFIER "u bytes",
UNICHAR_STRING_SIZE(length)));
- Tcl_SetErrorCode(interp, "TCL", "MEMORY", NULL);
+ Tcl_SetErrorCode(interp, "TCL", "MEMORY", (void *)NULL);
}
return NULL;
}
@@ -3713,7 +3713,7 @@ TclStringCat(
"concatenation failed: unable to alloc %"
TCL_Z_MODIFIER "u bytes",
UNICHAR_STRING_SIZE(length)));
- Tcl_SetErrorCode(interp, "TCL", "MEMORY", NULL);
+ Tcl_SetErrorCode(interp, "TCL", "MEMORY", (void *)NULL);
}
return NULL;
}
@@ -3744,7 +3744,7 @@ TclStringCat(
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"concatenation failed: unable to alloc %" TCL_SIZE_MODIFIER "d bytes",
length));
- Tcl_SetErrorCode(interp, "TCL", "MEMORY", NULL);
+ Tcl_SetErrorCode(interp, "TCL", "MEMORY", (void *)NULL);
}
return NULL;
}
@@ -3760,7 +3760,7 @@ TclStringCat(
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"concatenation failed: unable to alloc %" TCL_SIZE_MODIFIER "d bytes",
length));
- Tcl_SetErrorCode(interp, "TCL", "MEMORY", NULL);
+ Tcl_SetErrorCode(interp, "TCL", "MEMORY", (void *)NULL);
}
return NULL;
}
@@ -3786,7 +3786,7 @@ TclStringCat(
if (interp) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"max size for a Tcl value (%" TCL_SIZE_MODIFIER "d bytes) exceeded", TCL_SIZE_MAX));
- Tcl_SetErrorCode(interp, "TCL", "MEMORY", NULL);
+ Tcl_SetErrorCode(interp, "TCL", "MEMORY", (void *)NULL);
}
return NULL;
}
@@ -4427,7 +4427,7 @@ TclStringReplace(
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"max size for a Tcl value (%" TCL_SIZE_MODIFIER "d bytes) exceeded",
TCL_SIZE_MAX));
- Tcl_SetErrorCode(interp, "TCL", "MEMORY", NULL);
+ Tcl_SetErrorCode(interp, "TCL", "MEMORY", (void *)NULL);
}
return NULL;
}