summaryrefslogtreecommitdiffstats
path: root/generic/tclScan.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/tclScan.c
parentfdb568c35f1cd6de7f1acd05fdbd4f8b6cf5aee1 (diff)
downloadtcl-6def0d48c1fff35f9f5b3bfbe1ddbe6cedd2c247.zip
tcl-6def0d48c1fff35f9f5b3bfbe1ddbe6cedd2c247.tar.gz
tcl-6def0d48c1fff35f9f5b3bfbe1ddbe6cedd2c247.tar.bz2
Handle sentinels for any C++ compiler
Diffstat (limited to 'generic/tclScan.c')
-rw-r--r--generic/tclScan.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/generic/tclScan.c b/generic/tclScan.c
index b8c29fa..4c141ab 100644
--- a/generic/tclScan.c
+++ b/generic/tclScan.c
@@ -341,7 +341,7 @@ ValidateFormat(
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"cannot mix \"%\" and \"%n$\" conversion specifiers",
-1));
- Tcl_SetErrorCode(interp, "TCL", "FORMAT", "MIXEDSPECTYPES", NULL);
+ Tcl_SetErrorCode(interp, "TCL", "FORMAT", "MIXEDSPECTYPES", (void *)NULL);
goto error;
}
@@ -390,7 +390,7 @@ ValidateFormat(
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"field width may not be specified in %c conversion",
-1));
- Tcl_SetErrorCode(interp, "TCL", "FORMAT", "BADWIDTH", NULL);
+ Tcl_SetErrorCode(interp, "TCL", "FORMAT", "BADWIDTH", (void *)NULL);
goto error;
}
/* FALLTHRU */
@@ -404,7 +404,7 @@ ValidateFormat(
Tcl_AppendToObj(errorMsg, buf, -1);
Tcl_AppendToObj(errorMsg, " conversion", -1);
Tcl_SetObjResult(interp, errorMsg);
- Tcl_SetErrorCode(interp, "TCL", "FORMAT", "BADSIZE", NULL);
+ Tcl_SetErrorCode(interp, "TCL", "FORMAT", "BADSIZE", (void *)NULL);
goto error;
}
/*
@@ -456,7 +456,7 @@ ValidateFormat(
badSet:
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"unmatched [ in format string", -1));
- Tcl_SetErrorCode(interp, "TCL", "FORMAT", "BRACKET", NULL);
+ Tcl_SetErrorCode(interp, "TCL", "FORMAT", "BRACKET", (void *)NULL);
goto error;
default:
buf[Tcl_UniCharToUtf(ch, buf)] = '\0';
@@ -465,7 +465,7 @@ ValidateFormat(
Tcl_AppendToObj(errorMsg, buf, -1);
Tcl_AppendToObj(errorMsg, "\"", -1);
Tcl_SetObjResult(interp, errorMsg);
- Tcl_SetErrorCode(interp, "TCL", "FORMAT", "BADTYPE", NULL);
+ Tcl_SetErrorCode(interp, "TCL", "FORMAT", "BADTYPE", (void *)NULL);
goto error;
}
if (!(flags & SCAN_SUPPRESS)) {
@@ -512,7 +512,7 @@ ValidateFormat(
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"variable is assigned by multiple \"%n$\" conversion specifiers",
-1));
- Tcl_SetErrorCode(interp, "TCL", "FORMAT", "POLYASSIGNED", NULL);
+ Tcl_SetErrorCode(interp, "TCL", "FORMAT", "POLYASSIGNED", (void *)NULL);
goto error;
} else if (!xpgSize && (nassign[i] == 0)) {
/*
@@ -523,7 +523,7 @@ ValidateFormat(
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"variable is not assigned by any conversion specifiers",
-1));
- Tcl_SetErrorCode(interp, "TCL", "FORMAT", "UNASSIGNED", NULL);
+ Tcl_SetErrorCode(interp, "TCL", "FORMAT", "UNASSIGNED", (void *)NULL);
goto error;
}
}
@@ -535,12 +535,12 @@ ValidateFormat(
if (gotXpg) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"\"%n$\" argument index out of range", -1));
- Tcl_SetErrorCode(interp, "TCL", "FORMAT", "INDEXRANGE", NULL);
+ Tcl_SetErrorCode(interp, "TCL", "FORMAT", "INDEXRANGE", (void *)NULL);
} else {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"different numbers of variable names and field specifiers",
-1));
- Tcl_SetErrorCode(interp, "TCL", "FORMAT", "FIELDVARMISMATCH", NULL);
+ Tcl_SetErrorCode(interp, "TCL", "FORMAT", "FIELDVARMISMATCH", (void *)NULL);
}
error:
@@ -930,7 +930,7 @@ Tcl_ScanObjCmd(
if (mp_init_u64(&big, (Tcl_WideUInt)wideValue) != MP_OKAY) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"insufficient memory to create bignum", -1));
- Tcl_SetErrorCode(interp, "TCL", "MEMORY", NULL);
+ Tcl_SetErrorCode(interp, "TCL", "MEMORY", (void *)NULL);
return TCL_ERROR;
} else {
Tcl_SetBignumObj(objPtr, &big);
@@ -958,7 +958,7 @@ Tcl_ScanObjCmd(
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"unsigned bignum scans are invalid", -1));
Tcl_SetErrorCode(interp, "TCL", "FORMAT",
- "BADUNSIGNED",NULL);
+ "BADUNSIGNED", (void *)NULL);
return TCL_ERROR;
}
}
@@ -976,7 +976,7 @@ Tcl_ScanObjCmd(
if (mp_init_u64(&big, (unsigned long)value) != MP_OKAY) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"insufficient memory to create bignum", -1));
- Tcl_SetErrorCode(interp, "TCL", "MEMORY", NULL);
+ Tcl_SetErrorCode(interp, "TCL", "MEMORY", (void *)NULL);
return TCL_ERROR;
} else {
Tcl_SetBignumObj(objPtr, &big);