summaryrefslogtreecommitdiffstats
path: root/generic/tclEvent.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2015-10-08 14:41:46 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2015-10-08 14:41:46 (GMT)
commit404bcc3435d7a5ce178b4b84c86833285d3aa1d4 (patch)
tree6536ed8e4e2b792c8a24b07fe63701c5f7bde8c1 /generic/tclEvent.c
parentdbb3b8800c3ddc4749f02953e684ae4104631be1 (diff)
downloadtcl-404bcc3435d7a5ce178b4b84c86833285d3aa1d4.zip
tcl-404bcc3435d7a5ce178b4b84c86833285d3aa1d4.tar.gz
tcl-404bcc3435d7a5ce178b4b84c86833285d3aa1d4.tar.bz2
Decorate Tcl_Exit() and Tcl_SetExitProc()'s argument with TCL_NORETURN as appropriate, as already done with Tcl_Panic() earlier.
Fix minor msvc compiler warning in tclWinFile.c
Diffstat (limited to 'generic/tclEvent.c')
-rw-r--r--generic/tclEvent.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclEvent.c b/generic/tclEvent.c
index 281ff6c..8305410 100644
--- a/generic/tclEvent.c
+++ b/generic/tclEvent.c
@@ -89,7 +89,7 @@ static int subsystemsInitialized = 0;
* non-NULL value.
*/
-static Tcl_ExitProc *appExitPtr = NULL;
+static TCL_NORETURN1 Tcl_ExitProc *appExitPtr = NULL;
typedef struct ThreadSpecificData {
ExitHandler *firstExitPtr; /* First in list of all exit handlers for this
@@ -857,7 +857,7 @@ Tcl_DeleteThreadExitHandler(
Tcl_ExitProc *
Tcl_SetExitProc(
- Tcl_ExitProc *proc) /* New exit handler for app or NULL */
+ TCL_NORETURN1 Tcl_ExitProc *proc) /* New exit handler for app or NULL */
{
Tcl_ExitProc *prevExitProc;
@@ -933,12 +933,12 @@ InvokeExitHandlers(void)
*----------------------------------------------------------------------
*/
-void
+TCL_NORETURN void
Tcl_Exit(
int status) /* Exit status for application; typically 0
* for normal return, 1 for error return. */
{
- Tcl_ExitProc *currentAppExitPtr;
+ TCL_NORETURN1 Tcl_ExitProc *currentAppExitPtr;
Tcl_MutexLock(&exitMutex);
currentAppExitPtr = appExitPtr;