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:
parent
4a32a82841
commit
c339e9b845
|
|
@ -1875,7 +1875,7 @@ CmdPort(
|
||||||
{
|
{
|
||||||
#ifdef MAGIC_WRAPPER
|
#ifdef MAGIC_WRAPPER
|
||||||
Tcl_AppendResult(magicinterp, cmdPortClassTypes[idx],
|
Tcl_AppendResult(magicinterp, cmdPortClassTypes[idx],
|
||||||
NULL);
|
(char *)NULL);
|
||||||
#else
|
#else
|
||||||
TxPrintf("Class = %s\n", cmdPortClassTypes[idx]);
|
TxPrintf("Class = %s\n", cmdPortClassTypes[idx]);
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -1920,7 +1920,7 @@ CmdPort(
|
||||||
{
|
{
|
||||||
#ifdef MAGIC_WRAPPER
|
#ifdef MAGIC_WRAPPER
|
||||||
Tcl_AppendResult(magicinterp, cmdPortUseTypes[idx],
|
Tcl_AppendResult(magicinterp, cmdPortUseTypes[idx],
|
||||||
NULL);
|
(char *)NULL);
|
||||||
#else
|
#else
|
||||||
TxPrintf("Use = %s\n", cmdPortUseTypes[idx]);
|
TxPrintf("Use = %s\n", cmdPortUseTypes[idx]);
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -1965,7 +1965,7 @@ CmdPort(
|
||||||
{
|
{
|
||||||
#ifdef MAGIC_WRAPPER
|
#ifdef MAGIC_WRAPPER
|
||||||
Tcl_AppendResult(magicinterp, cmdPortShapeTypes[idx],
|
Tcl_AppendResult(magicinterp, cmdPortShapeTypes[idx],
|
||||||
NULL);
|
(char *)NULL);
|
||||||
#else
|
#else
|
||||||
TxPrintf("Shape = %s\n", cmdPortShapeTypes[idx]);
|
TxPrintf("Shape = %s\n", cmdPortShapeTypes[idx]);
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -2044,7 +2044,7 @@ CmdPort(
|
||||||
if (pos & PORT_DIR_SOUTH) strcat(cdir, "s");
|
if (pos & PORT_DIR_SOUTH) strcat(cdir, "s");
|
||||||
if (pos & PORT_DIR_WEST) strcat(cdir, "w");
|
if (pos & PORT_DIR_WEST) strcat(cdir, "w");
|
||||||
#ifdef MAGIC_WRAPPER
|
#ifdef MAGIC_WRAPPER
|
||||||
Tcl_AppendResult(magicinterp, cdir, NULL);
|
Tcl_AppendResult(magicinterp, cdir, (char *)NULL);
|
||||||
#else
|
#else
|
||||||
TxPrintf("Directions = %s\n", cdir);
|
TxPrintf("Directions = %s\n", cdir);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue