summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2015-09-23 10:29:00 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2015-09-23 10:29:00 (GMT)
commit401ea793a5691a5dc91795371922de138ea7f68c (patch)
tree453ef7765e2aeaef13b888bb260a18e6298fda26 /win
parentee0b1f4703492cd3d1889551e782882b6b081b46 (diff)
parentcb1f5ad4901220060bc319970cf3434734b3a1aa (diff)
downloadtcl-401ea793a5691a5dc91795371922de138ea7f68c.zip
tcl-401ea793a5691a5dc91795371922de138ea7f68c.tar.gz
tcl-401ea793a5691a5dc91795371922de138ea7f68c.tar.bz2
Micro-optimization handling Tcl_Panic(), suggested by D. Richard Hipp.
As a side-effect, this is as well a fix for [1446864]: segfaults if Tcl_Panic() returns.
Diffstat (limited to 'win')
-rw-r--r--win/tclWinError.c2
-rwxr-xr-xwin/tclWinFile.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/win/tclWinError.c b/win/tclWinError.c
index 4d3250d..30079b9 100644
--- a/win/tclWinError.c
+++ b/win/tclWinError.c
@@ -381,7 +381,7 @@ TclWinConvertError(
*----------------------------------------------------------------------
*/
-void
+TCL_NORETURN void
tclWinDebugPanic(
const char *format, ...)
{
diff --git a/win/tclWinFile.c b/win/tclWinFile.c
index 02927ad..f6e3a4b 100755
--- a/win/tclWinFile.c
+++ b/win/tclWinFile.c
@@ -172,7 +172,7 @@ static int WinLink(const TCHAR *LinkSource,
const TCHAR *LinkTarget, int linkAction);
static int WinSymLinkDirectory(const TCHAR *LinkDirectory,
const TCHAR *LinkTarget);
-MODULE_SCOPE void tclWinDebugPanic(const char *format, ...);
+MODULE_SCOPE TCL_NORETURN void tclWinDebugPanic(const char *format, ...);
/*
*--------------------------------------------------------------------
@@ -789,7 +789,7 @@ NativeWriteReparse(
*----------------------------------------------------------------------
*/
-void
+TCL_NORETURN void
tclWinDebugPanic(
const char *format, ...)
{