summaryrefslogtreecommitdiffstats
path: root/generic/tclEncoding.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclEncoding.c')
-rw-r--r--generic/tclEncoding.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/generic/tclEncoding.c b/generic/tclEncoding.c
index 80a37d2..e461db2 100644
--- a/generic/tclEncoding.c
+++ b/generic/tclEncoding.c
@@ -1292,7 +1292,7 @@ Tcl_ExternalToUtfDStringEx(
Tcl_NewStringObj(
"Parameter error: TCL_ENCODING_{START,STOP} bits set in flags.",
TCL_INDEX_NONE));
- Tcl_SetErrorCode(interp, "TCL", "ENCODING", "ILLEGALFLAGS", NULL);
+ Tcl_SetErrorCode(interp, "TCL", "ENCODING", "ILLEGALFLAGS", (void *)NULL);
errno = EINVAL;
return TCL_ERROR;
}
@@ -1345,7 +1345,7 @@ Tcl_ExternalToUtfDStringEx(
nBytesProcessed,
UCHAR(srcStart[nBytesProcessed])));
Tcl_SetErrorCode(
- interp, "TCL", "ENCODING", "ILLEGALSEQUENCE", buf, NULL);
+ interp, "TCL", "ENCODING", "ILLEGALSEQUENCE", buf, (void *)NULL);
}
}
if (result != TCL_OK) {
@@ -1596,7 +1596,7 @@ Tcl_UtfToExternalDStringEx(
Tcl_NewStringObj(
"Parameter error: TCL_ENCODING_{START,STOP} bits set in flags.",
TCL_INDEX_NONE));
- Tcl_SetErrorCode(interp, "TCL", "ENCODING", "ILLEGALFLAGS", NULL);
+ Tcl_SetErrorCode(interp, "TCL", "ENCODING", "ILLEGALFLAGS", (void *)NULL);
errno = EINVAL;
return TCL_ERROR;
}
@@ -1651,7 +1651,7 @@ Tcl_UtfToExternalDStringEx(
pos,
ucs4));
Tcl_SetErrorCode(interp, "TCL", "ENCODING", "ILLEGALSEQUENCE",
- buf, NULL);
+ buf, (void *)NULL);
}
}
if (result != TCL_OK) {
@@ -1900,7 +1900,7 @@ OpenEncodingFileChannel(
if ((NULL == chan) && (interp != NULL)) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"unknown encoding \"%s\"", name));
- Tcl_SetErrorCode(interp, "TCL", "LOOKUP", "ENCODING", name, NULL);
+ Tcl_SetErrorCode(interp, "TCL", "LOOKUP", "ENCODING", name, (void *)NULL);
}
Tcl_DecrRefCount(fileNameObj);
Tcl_DecrRefCount(nameObj);
@@ -1975,7 +1975,7 @@ LoadEncodingFile(
if ((encoding == NULL) && (interp != NULL)) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"invalid encoding file \"%s\"", name));
- Tcl_SetErrorCode(interp, "TCL", "LOOKUP", "ENCODING", name, NULL);
+ Tcl_SetErrorCode(interp, "TCL", "LOOKUP", "ENCODING", name, (void *)NULL);
}
Tcl_Close(NULL, chan);
@@ -4451,14 +4451,14 @@ TclEncodingProfileNameToId(
profileName);
for (i = 0; i < (numProfiles - 1); ++i) {
Tcl_AppendStringsToObj(
- errorObj, " ", encodingProfiles[i].name, ",", NULL);
+ errorObj, " ", encodingProfiles[i].name, ",", (void *)NULL);
}
Tcl_AppendStringsToObj(
- errorObj, " or ", encodingProfiles[numProfiles-1].name, NULL);
+ errorObj, " or ", encodingProfiles[numProfiles-1].name, (void *)NULL);
Tcl_SetObjResult(interp, errorObj);
Tcl_SetErrorCode(
- interp, "TCL", "ENCODING", "PROFILE", profileName, NULL);
+ interp, "TCL", "ENCODING", "PROFILE", profileName, (void *)NULL);
}
return TCL_ERROR;
}
@@ -4497,7 +4497,7 @@ TclEncodingProfileIdToName(
"Internal error. Bad profile id \"%d\".",
profileValue));
Tcl_SetErrorCode(
- interp, "TCL", "ENCODING", "PROFILEID", NULL);
+ interp, "TCL", "ENCODING", "PROFILEID", (void *)NULL);
}
return NULL;
}