mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 01:43:00 +02:00
TCL9: CmdLQ.c Tcl_AppendResult(... (char*)NULL) cast sentinal
In the TCL8 to TCL9 porting information it was indicated the sentinal NULL termination should be cast (char *) with API call Tcl_AppendResult(). This was already in place for most of the codebase this resolves the last few places.
This commit is contained in:
committed by
Tim Edwards
parent
4a32a82841
commit
c339e9b845
+4
-4
@@ -1875,7 +1875,7 @@ CmdPort(
|
||||
{
|
||||
#ifdef MAGIC_WRAPPER
|
||||
Tcl_AppendResult(magicinterp, cmdPortClassTypes[idx],
|
||||
NULL);
|
||||
(char *)NULL);
|
||||
#else
|
||||
TxPrintf("Class = %s\n", cmdPortClassTypes[idx]);
|
||||
#endif
|
||||
@@ -1920,7 +1920,7 @@ CmdPort(
|
||||
{
|
||||
#ifdef MAGIC_WRAPPER
|
||||
Tcl_AppendResult(magicinterp, cmdPortUseTypes[idx],
|
||||
NULL);
|
||||
(char *)NULL);
|
||||
#else
|
||||
TxPrintf("Use = %s\n", cmdPortUseTypes[idx]);
|
||||
#endif
|
||||
@@ -1965,7 +1965,7 @@ CmdPort(
|
||||
{
|
||||
#ifdef MAGIC_WRAPPER
|
||||
Tcl_AppendResult(magicinterp, cmdPortShapeTypes[idx],
|
||||
NULL);
|
||||
(char *)NULL);
|
||||
#else
|
||||
TxPrintf("Shape = %s\n", cmdPortShapeTypes[idx]);
|
||||
#endif
|
||||
@@ -2044,7 +2044,7 @@ CmdPort(
|
||||
if (pos & PORT_DIR_SOUTH) strcat(cdir, "s");
|
||||
if (pos & PORT_DIR_WEST) strcat(cdir, "w");
|
||||
#ifdef MAGIC_WRAPPER
|
||||
Tcl_AppendResult(magicinterp, cdir, NULL);
|
||||
Tcl_AppendResult(magicinterp, cdir, (char *)NULL);
|
||||
#else
|
||||
TxPrintf("Directions = %s\n", cdir);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user