Skip to content

Commit

Permalink
TIP #662: Un-deprecate Tcl_VarEval. Also remove some useless typecast…
Browse files Browse the repository at this point in the history
…s from documentation
  • Loading branch information
jan.nijtmans committed Sep 28, 2023
2 parents 524d6bb + 551efd8 commit a568c3a
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion doc/AddErrInfo.3
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ int
.sp
\fBTcl_SetObjErrorCode\fR(\fIinterp, errorObjPtr\fR)
.sp
\fBTcl_SetErrorCode\fR(\fIinterp, element, element, ... \fB(char *) NULL\fR)
\fBTcl_SetErrorCode\fR(\fIinterp, element, element, ... \fBNULL\fR)
.sp
\fBTcl_SetErrorCodeVA\fR(\fIinterp, argList\fR)
.sp
Expand Down
6 changes: 3 additions & 3 deletions doc/Eval.3
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ int
\fBTcl_GlobalEvalObj\fR(\fIinterp, objPtr\fR)
.sp
int
\fBTcl_VarEval\fR(\fIinterp, part, part, ... \fB(char *) NULL\fR)
\fBTcl_VarEval\fR(\fIinterp, part, part, ... \fBNULL\fR)
.sp
int
\fBTcl_VarEvalVA\fR(\fIinterp, argList\fR)
Expand Down Expand Up @@ -152,11 +152,11 @@ then calls \fBTcl_Eval\fR to execute that string as a Tcl command.
It returns the result of the command and also modifies
\fIinterp->result\fR in the same way as \fBTcl_Eval\fR.
The last argument to \fBTcl_VarEval\fR must be NULL to indicate the end
of arguments. \fBTcl_VarEval\fR is now deprecated.
of arguments.
.PP
\fBTcl_VarEvalVA\fR is the same as \fBTcl_VarEval\fR except that
instead of taking a variable number of arguments it takes an argument
list. Like \fBTcl_VarEval\fR, \fBTcl_VarEvalVA\fR is deprecated.
list. \fBTcl_VarEvalVA\fR is now deprecated.

.SH "FLAG BITS"
.PP
Expand Down
2 changes: 1 addition & 1 deletion doc/SetResult.3
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Tcl_Obj *
const char *
\fBTcl_GetStringResult\fR(\fIinterp\fR)
.sp
\fBTcl_AppendResult\fR(\fIinterp, result, result, ... , \fB(char *) NULL\fR)
\fBTcl_AppendResult\fR(\fIinterp, result, result, ... , \fBNULL\fR)
.sp
\fBTcl_AppendResultVA\fR(\fIinterp, argList\fR)
.sp
Expand Down
2 changes: 1 addition & 1 deletion doc/StringObj.3
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void
\fBTcl_AppendObjToObj\fR(\fIobjPtr, appendObjPtr\fR)
.sp
void
\fBTcl_AppendStringsToObj\fR(\fIobjPtr, string, string, ... \fB(char *) NULL\fR)
\fBTcl_AppendStringsToObj\fR(\fIobjPtr, string, string, ... \fBNULL\fR)
.sp
void
\fBTcl_AppendStringsToObjVA\fR(\fIobjPtr, argList\fR)
Expand Down
3 changes: 1 addition & 2 deletions win/tclWinDde.c
Original file line number Diff line number Diff line change
Expand Up @@ -1299,8 +1299,7 @@ DdeObjCmd(
Tcl_Obj *const *objv) /* The arguments */
{
static const char *const ddeCommands[] = {
"servername", "execute", "poke", "request", "services", "eval",
(char *) NULL};
"servername", "execute", "poke", "request", "services", "eval", NULL};
enum DdeSubcommands {
DDE_SERVERNAME, DDE_EXECUTE, DDE_POKE, DDE_REQUEST, DDE_SERVICES,
DDE_EVAL
Expand Down
2 changes: 1 addition & 1 deletion win/tclWinFCmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static const int attributeArray[] = {FILE_ATTRIBUTE_ARCHIVE, FILE_ATTRIBUTE_HIDD

const char *const tclpFileAttrStrings[] = {
"-archive", "-hidden", "-longname", "-readonly",
"-shortname", "-system", (char *) NULL
"-shortname", "-system", NULL
};

const TclFileAttrProcs tclpFileAttrProcs[] = {
Expand Down

0 comments on commit a568c3a

Please sign in to comment.