summaryrefslogtreecommitdiffstats
path: root/generic/tclNamesp.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-05-10 07:50:31 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-05-10 07:50:31 (GMT)
commita2a03ea8fb6718cc472cc7dcb44f8e68aadb24ba (patch)
treeb27d28ac5054d661fb8510ac1b75127cbf036c79 /generic/tclNamesp.c
parent740e938393791a7c1fe675b21ece901fa6cbdd74 (diff)
parent216ea63416cffd9c521476d74fce958860d2acf9 (diff)
downloadtcl-a2a03ea8fb6718cc472cc7dcb44f8e68aadb24ba.zip
tcl-a2a03ea8fb6718cc472cc7dcb44f8e68aadb24ba.tar.gz
tcl-a2a03ea8fb6718cc472cc7dcb44f8e68aadb24ba.tar.bz2
Merge trunk
Diffstat (limited to 'generic/tclNamesp.c')
-rw-r--r--generic/tclNamesp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/generic/tclNamesp.c b/generic/tclNamesp.c
index 3c23b97..426fd16 100644
--- a/generic/tclNamesp.c
+++ b/generic/tclNamesp.c
@@ -1086,6 +1086,13 @@ Tcl_DeleteNamespace(
}
TclNsDecrRefCount(nsPtr);
}
+
+int
+TclNamespaceDeleted(
+ Namespace *nsPtr)
+{
+ return (nsPtr->flags & NS_DYING) ? 1 : 0;
+}
/*
*----------------------------------------------------------------------