summaryrefslogtreecommitdiffstats
path: root/generic/tclVar.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2005-06-07 21:46:08 (GMT)
committerdgp <dgp@users.sourceforge.net>2005-06-07 21:46:08 (GMT)
commit3d9cb3d71e47525ba2c3176b8c64e6133ed9dd75 (patch)
tree862a66f9d58f2b9acc7bb0b43fc6f7f932dcc8a4 /generic/tclVar.c
parentc2e9dac276543c87f90a314405d70427e7a9e642 (diff)
downloadtcl-3d9cb3d71e47525ba2c3176b8c64e6133ed9dd75.zip
tcl-3d9cb3d71e47525ba2c3176b8c64e6133ed9dd75.tar.gz
tcl-3d9cb3d71e47525ba2c3176b8c64e6133ed9dd75.tar.bz2
* generic/tclInt.h: Reduced the Tcl_ObjTypes "index",
* generic/tclIndexObj.c: "enembleCmd", "localVarName", and * generic/tclNamesp.c: "levelReference" to file static scope. * generic/tclProc.c: * generic/tclVar.c:
Diffstat (limited to 'generic/tclVar.c')
-rw-r--r--generic/tclVar.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/generic/tclVar.c b/generic/tclVar.c
index 6cdedc9..58de446 100644
--- a/generic/tclVar.c
+++ b/generic/tclVar.c
@@ -15,7 +15,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclVar.c,v 1.106 2005/05/10 18:34:52 kennykb Exp $
+ * RCS: @(#) $Id: tclVar.c,v 1.107 2005/06/07 21:46:19 dgp Exp $
*/
#include "tclInt.h"
@@ -94,7 +94,7 @@ static Tcl_SetFromAnyProc PanicOnSetVarName;
* it is a scalar variable
*/
-Tcl_ObjType tclLocalVarNameType = {
+static Tcl_ObjType localVarNameType = {
"localVarName",
NULL, DupLocalVarName, PanicOnUpdateVarName, PanicOnSetVarName
};
@@ -324,7 +324,7 @@ TclLookupVar(interp, part1, part2, flags, msg, createPart1, createPart2,
* Side effects:
* New hashtable entries may be created if createPart1 or createPart2
* are 1.
- * The object part1Ptr is converted to one of tclLocalVarNameType,
+ * The object part1Ptr is converted to one of localVarNameType,
* tclNsVarNameType or tclParsedVarNameType and caches as much of the
* lookup as it can.
*
@@ -400,7 +400,7 @@ TclObjLookupVar(interp, part1Ptr, part2, flags, msg, createPart1, createPart2,
goto doParse;
}
- if (typePtr == &tclLocalVarNameType) {
+ if (typePtr == &localVarNameType) {
int localIndex = (int) part1Ptr->internalRep.longValue;
if ((varFramePtr != NULL)
@@ -544,7 +544,7 @@ TclObjLookupVar(interp, part1Ptr, part2, flags, msg, createPart1, createPart2,
* An indexed local variable.
*/
- part1Ptr->typePtr = &tclLocalVarNameType;
+ part1Ptr->typePtr = &localVarNameType;
part1Ptr->internalRep.longValue = (long) index;
#if ENABLE_NS_VARNAME_CACHING
} else if (index > -3) {
@@ -4585,7 +4585,7 @@ DupLocalVarName(srcPtr, dupPtr)
Tcl_Obj *dupPtr;
{
dupPtr->internalRep.longValue = srcPtr->internalRep.longValue;
- dupPtr->typePtr = &tclLocalVarNameType;
+ dupPtr->typePtr = &localVarNameType;
}
#if ENABLE_NS_VARNAME_CACHING