diff options
author | stanton <stanton> | 1999-02-03 21:28:00 (GMT) |
---|---|---|
committer | stanton <stanton> | 1999-02-03 21:28:00 (GMT) |
commit | d9c25afbfa5babcfcda3ba4dd27cd816106962e2 (patch) | |
tree | 23f598ce769f641aa16383d2432ce6caf760cc7e /generic/tclNamesp.c | |
parent | 51100ef26ab0199626b74c3bd866099610703ee9 (diff) | |
download | tcl-d9c25afbfa5babcfcda3ba4dd27cd816106962e2.zip tcl-d9c25afbfa5babcfcda3ba4dd27cd816106962e2.tar.gz tcl-d9c25afbfa5babcfcda3ba4dd27cd816106962e2.tar.bz2 |
* generic/tclInt.h:
* generic/tclNamesp.c (TclGetNamespaceForQualName): Restored
signature so that TclGetNamespaceForQualName returns an int, even
though it is always TCL_OK. This is needed for forwards
compatibility of tbcload. This should be removed at some point,
when we are willing to break forward compatibility.
Diffstat (limited to 'generic/tclNamesp.c')
-rw-r--r-- | generic/tclNamesp.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/generic/tclNamesp.c b/generic/tclNamesp.c index cc3469d..d3fe249 100644 --- a/generic/tclNamesp.c +++ b/generic/tclNamesp.c @@ -19,7 +19,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclNamesp.c,v 1.9 1999/02/03 00:55:05 stanton Exp $ + * RCS: @(#) $Id: tclNamesp.c,v 1.10 1999/02/03 21:28:01 stanton Exp $ */ #include "tclInt.h" @@ -1554,6 +1554,9 @@ DeleteImportedCmd(clientData) * set to the input context namespace pointer in cxtNsPtr. If cxtNsPtr * is NULL, it is set to the current namespace context. * + * For backwards compatibility with the TclPro byte code loader, + * this function always returns TCL_OK. + * * Side effects: * If "flags" contains CREATE_NS_IF_UNKNOWN, new namespaces may be * created. @@ -1561,7 +1564,7 @@ DeleteImportedCmd(clientData) *---------------------------------------------------------------------- */ -void +int TclGetNamespaceForQualName(interp, qualName, cxtNsPtr, flags, nsPtrPtr, altNsPtrPtr, actualCxtPtrPtr, simpleNamePtr) Tcl_Interp *interp; /* Interpreter in which to find the @@ -1647,7 +1650,7 @@ TclGetNamespaceForQualName(interp, qualName, cxtNsPtr, flags, *altNsPtrPtr = NULL; *actualCxtPtrPtr = globalNsPtr; *simpleNamePtr = start; /* points to empty string */ - return; + return TCL_OK; } } *actualCxtPtrPtr = nsPtr; @@ -1706,7 +1709,7 @@ TclGetNamespaceForQualName(interp, qualName, cxtNsPtr, flags, *altNsPtrPtr = altNsPtr; *simpleNamePtr = start; Tcl_DStringFree(&buffer); - return; + return TCL_OK; } } else { /* @@ -1773,7 +1776,7 @@ TclGetNamespaceForQualName(interp, qualName, cxtNsPtr, flags, *altNsPtrPtr = NULL; *simpleNamePtr = NULL; Tcl_DStringFree(&buffer); - return; + return TCL_OK; } start = end; @@ -1806,7 +1809,7 @@ TclGetNamespaceForQualName(interp, qualName, cxtNsPtr, flags, *nsPtrPtr = nsPtr; *altNsPtrPtr = altNsPtr; Tcl_DStringFree(&buffer); - return; + return TCL_OK; } /* |