diff options
author | dgp <dgp@users.sourceforge.net> | 2013-02-21 02:15:58 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2013-02-21 02:15:58 (GMT) |
commit | f85e814a8bfeecccb8dbf087ac826c48b2e55444 (patch) | |
tree | 21c3ec05c893326f76cf5e48091ca6e98717ae33 | |
parent | 472e10b23285f3b4869e2cb5234a9e8d9f872412 (diff) | |
download | tcl-f85e814a8bfeecccb8dbf087ac826c48b2e55444.zip tcl-f85e814a8bfeecccb8dbf087ac826c48b2e55444.tar.gz tcl-f85e814a8bfeecccb8dbf087ac826c48b2e55444.tar.bz2 |
The flag TCL_LEAVE_ERR_MSG has no effect on the routine
TclGetNamespaceForQualName() so for goodness sake stop making any
special efforts to add it in when making calls.
-rw-r--r-- | generic/tclNamesp.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/generic/tclNamesp.c b/generic/tclNamesp.c index f6827aa..be7c4cd 100644 --- a/generic/tclNamesp.c +++ b/generic/tclNamesp.c @@ -454,8 +454,7 @@ Tcl_CreateNamespace(interp, name, clientData, deleteProc) * Find the parent for the new namespace. */ - TclGetNamespaceForQualName(interp, name, (Namespace *) NULL, - /*flags*/ (CREATE_NS_IF_UNKNOWN | TCL_LEAVE_ERR_MSG), + TclGetNamespaceForQualName(interp, name, NULL, CREATE_NS_IF_UNKNOWN, &parentPtr, &dummy1Ptr, &dummy2Ptr, &simpleName); /* @@ -930,8 +929,7 @@ Tcl_Export(interp, namespacePtr, pattern, resetListFirst) * Check that the pattern doesn't have namespace qualifiers. */ - TclGetNamespaceForQualName(interp, pattern, nsPtr, - /*flags*/ (TCL_LEAVE_ERR_MSG | TCL_NAMESPACE_ONLY), + TclGetNamespaceForQualName(interp, pattern, nsPtr, TCL_NAMESPACE_ONLY, &exportNsPtr, &dummyPtr, &dummyPtr, &simplePattern); if ((exportNsPtr != nsPtr) || (strcmp(pattern, simplePattern) != 0)) { @@ -1158,8 +1156,7 @@ Tcl_Import(interp, namespacePtr, pattern, allowOverwrite) "empty import pattern", -1); return TCL_ERROR; } - TclGetNamespaceForQualName(interp, pattern, nsPtr, - /*flags*/ (TCL_LEAVE_ERR_MSG | TCL_NAMESPACE_ONLY), + TclGetNamespaceForQualName(interp, pattern, nsPtr, TCL_NAMESPACE_ONLY, &importNsPtr, &dummyPtr, &dummyPtr, &simplePattern); if (importNsPtr == NULL) { @@ -1363,8 +1360,7 @@ Tcl_ForgetImport(interp, namespacePtr, pattern) * and the simple pattern. */ - TclGetNamespaceForQualName(interp, pattern, nsPtr, - /*flags*/ (TCL_LEAVE_ERR_MSG | TCL_NAMESPACE_ONLY), + TclGetNamespaceForQualName(interp, pattern, nsPtr, TCL_NAMESPACE_ONLY, &sourceNsPtr, &dummyPtr, &dummyPtr, &simplePattern); if (sourceNsPtr == NULL) { |