diff options
| author | davygrvy@pobox.com <davygrvy> | 2003-12-24 04:18:18 (GMT) |
|---|---|---|
| committer | davygrvy@pobox.com <davygrvy> | 2003-12-24 04:18:18 (GMT) |
| commit | 09f3f1e13de3f29f152261bc48e1175f8897dedf (patch) | |
| tree | eff546c6e792fecd4310f81379419c1d68d63c28 /win/tclWinChan.c | |
| parent | 2bb7451feb141f047c02c5a2a184101da43c3e3a (diff) | |
| download | tcl-09f3f1e13de3f29f152261bc48e1175f8897dedf.zip tcl-09f3f1e13de3f29f152261bc48e1175f8897dedf.tar.gz tcl-09f3f1e13de3f29f152261bc48e1175f8897dedf.tar.bz2 | |
All uses of 'panic' (the macro) changed
to 'Tcl_Panic' (the function). The #define
of panic in tcl.h clearly states it is
deprecated in the comments.
[Patch 865264]
Diffstat (limited to 'win/tclWinChan.c')
| -rw-r--r-- | win/tclWinChan.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/win/tclWinChan.c b/win/tclWinChan.c index 0ab586d..6c5edb2 100644 --- a/win/tclWinChan.c +++ b/win/tclWinChan.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclWinChan.c,v 1.32 2003/12/13 03:11:02 davygrvy Exp $ + * RCS: @(#) $Id: tclWinChan.c,v 1.33 2003/12/24 04:18:22 davygrvy Exp $ */ #include "tclWinInt.h" @@ -779,7 +779,7 @@ TclpOpenFileChannel(interp, pathPtr, mode, permissions) channelPermissions = (TCL_READABLE | TCL_WRITABLE); break; default: - panic("TclpOpenFileChannel: invalid mode value"); + Tcl_Panic("TclpOpenFileChannel: invalid mode value"); break; } @@ -1093,11 +1093,11 @@ Tcl_MakeFileChannel(rawHandle, mode) "=r"(RESTORED_HANDLER) ); if (INITIAL_ESP != RESTORED_ESP) - panic("ESP restored incorrectly"); + Tcl_Panic("ESP restored incorrectly"); if (INITIAL_EBP != RESTORED_EBP) - panic("EBP restored incorrectly"); + Tcl_Panic("EBP restored incorrectly"); if (INITIAL_HANDLER != RESTORED_HANDLER) - panic("HANDLER restored incorrectly"); + Tcl_Panic("HANDLER restored incorrectly"); # endif /* TCL_MEM_DEBUG */ if (result) @@ -1189,7 +1189,7 @@ TclpGetDefaultStdChannel(type) bufMode = "none"; break; default: - panic("TclGetDefaultStdChannel: Unexpected channel type"); + Tcl_Panic("TclGetDefaultStdChannel: Unexpected channel type"); break; } @@ -1388,9 +1388,9 @@ TclpCutFileChannel(chan) * local data in each thread. */ - if (!removed) - panic("file info ptr not on thread channel list"); - + if (!removed) { + Tcl_Panic("file info ptr not on thread channel list"); + } } /* |
