tclVar.c File Reference#include "tclInt.h"
Go to the source code of this file.
|
Defines |
#define | VarHashGetValue(hPtr) ((Var *) ((char *)hPtr - TclOffset(VarInHash, entry))) |
#define | VarHashFindVar(tablePtr, key) VarHashCreateVar((tablePtr), (key), NULL) |
#define | VarHashInvalidateEntry(varPtr) ((varPtr)->flags |= VAR_DEAD_HASH) |
#define | VarHashDeleteEntry(varPtr) Tcl_DeleteHashEntry(&(((VarInHash *) varPtr)->entry)) |
#define | VarHashFirstEntry(tablePtr, searchPtr) Tcl_FirstHashEntry((Tcl_HashTable *) (tablePtr), (searchPtr)) |
#define | VarHashNextEntry(searchPtr) Tcl_NextHashEntry((searchPtr)) |
#define | VarHashGetKey(varPtr) (((VarInHash *)(varPtr))->entry.key.objPtr) |
#define | VarHashDeleteTable(tablePtr) Tcl_DeleteHashTable((Tcl_HashTable *) (tablePtr)) |
#define | HasLocalVars(framePtr) ((framePtr)->isProcCallFrame & FRAME_IS_PROC) |
#define | ENABLE_NS_VARNAME_CACHING 0 |
#define | AVOID_RESOLVERS 0x40000 |
Functions |
MODULE_SCOPE Var * | TclLookupSimpleVar (Tcl_Interp *interp, Tcl_Obj *varNamePtr, int flags, const int create, const char **errMsgPtr, int *indexPtr) |
Var * | TclVarHashCreateVar (TclVarHashTable *tablePtr, const char *key, int *newPtr) |
void | TclCleanupVar (Var *varPtr, Var *arrayPtr) |
Var * | TclLookupVar (Tcl_Interp *interp, const char *part1, const char *part2, int flags, const char *msg, int createPart1, int createPart2, Var **arrayPtrPtr) |
Var * | TclObjLookupVar (Tcl_Interp *interp, register Tcl_Obj *part1Ptr, const char *part2, int flags, const char *msg, const int createPart1, const int createPart2, Var **arrayPtrPtr) |
Var * | TclObjLookupVarEx (Tcl_Interp *interp, Tcl_Obj *part1Ptr, Tcl_Obj *part2Ptr, int flags, const char *msg, const int createPart1, const int createPart2, Var **arrayPtrPtr) |
Var * | TclLookupArrayElement (Tcl_Interp *interp, Tcl_Obj *arrayNamePtr, Tcl_Obj *elNamePtr, const int flags, const char *msg, const int createArray, const int createElem, Var *arrayPtr, int index) |
const char * | Tcl_GetVar (Tcl_Interp *interp, const char *varName, int flags) |
const char * | Tcl_GetVar2 (Tcl_Interp *interp, const char *part1, const char *part2, int flags) |
Tcl_Obj * | Tcl_GetVar2Ex (Tcl_Interp *interp, const char *part1, const char *part2, int flags) |
Tcl_Obj * | Tcl_ObjGetVar2 (Tcl_Interp *interp, register Tcl_Obj *part1Ptr, register Tcl_Obj *part2Ptr, int flags) |
Tcl_Obj * | TclPtrGetVar (Tcl_Interp *interp, register Var *varPtr, Var *arrayPtr, Tcl_Obj *part1Ptr, Tcl_Obj *part2Ptr, const int flags, int index) |
int | Tcl_SetObjCmd (ClientData dummy, register Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) |
const char * | Tcl_SetVar (Tcl_Interp *interp, const char *varName, const char *newValue, int flags) |
const char * | Tcl_SetVar2 (Tcl_Interp *interp, const char *part1, const char *part2, const char *newValue, int flags) |
Tcl_Obj * | Tcl_SetVar2Ex (Tcl_Interp *interp, const char *part1, const char *part2, Tcl_Obj *newValuePtr, int flags) |
Tcl_Obj * | Tcl_ObjSetVar2 (Tcl_Interp *interp, register Tcl_Obj *part1Ptr, register Tcl_Obj *part2Ptr, Tcl_Obj *newValuePtr, int flags) |
Tcl_Obj * | TclPtrSetVar (Tcl_Interp *interp, register Var *varPtr, Var *arrayPtr, Tcl_Obj *part1Ptr, Tcl_Obj *part2Ptr, Tcl_Obj *newValuePtr, const int flags, int index) |
Tcl_Obj * | TclIncrObjVar2 (Tcl_Interp *interp, Tcl_Obj *part1Ptr, Tcl_Obj *part2Ptr, Tcl_Obj *incrPtr, int flags) |
Tcl_Obj * | TclPtrIncrObjVar (Tcl_Interp *interp, Var *varPtr, Var *arrayPtr, Tcl_Obj *part1Ptr, Tcl_Obj *part2Ptr, Tcl_Obj *incrPtr, const int flags, int index) |
int | Tcl_UnsetVar (Tcl_Interp *interp, const char *varName, int flags) |
int | Tcl_UnsetVar2 (Tcl_Interp *interp, const char *part1, const char *part2, int flags) |
int | TclObjUnsetVar2 (Tcl_Interp *interp, Tcl_Obj *part1Ptr, Tcl_Obj *part2Ptr, int flags) |
int | Tcl_UnsetObjCmd (ClientData dummy, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) |
int | Tcl_AppendObjCmd (ClientData dummy, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) |
int | Tcl_LappendObjCmd (ClientData dummy, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) |
int | Tcl_ArrayObjCmd (ClientData dummy, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) |
int | TclArraySet (Tcl_Interp *interp, Tcl_Obj *arrayNameObj, Tcl_Obj *arrayElemObj) |
int | TclPtrMakeUpvar (Tcl_Interp *interp, Var *otherPtr, const char *myName, int myFlags, int index) |
int | TclPtrObjMakeUpvar (Tcl_Interp *interp, Var *otherPtr, Tcl_Obj *myNamePtr, int myFlags, int index) |
int | Tcl_UpVar (Tcl_Interp *interp, const char *frameName, const char *varName, const char *localName, int flags) |
int | Tcl_UpVar2 (Tcl_Interp *interp, const char *frameName, const char *part1, const char *part2, const char *localName, int flags) |
void | Tcl_GetVariableFullName (Tcl_Interp *interp, Tcl_Var variable, Tcl_Obj *objPtr) |
int | Tcl_GlobalObjCmd (ClientData dummy, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) |
int | Tcl_VariableObjCmd (ClientData dummy, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) |
int | Tcl_UpvarObjCmd (ClientData dummy, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) |
void | TclDeleteNamespaceVars (Namespace *nsPtr) |
void | TclDeleteVars (Interp *iPtr, TclVarHashTable *tablePtr) |
void | TclDeleteCompiledLocalVars (Interp *iPtr, CallFrame *framePtr) |
void | TclVarErrMsg (Tcl_Interp *interp, const char *part1, const char *part2, const char *operation, const char *reason) |
void | TclObjVarErrMsg (Tcl_Interp *interp, Tcl_Obj *part1Ptr, Tcl_Obj *part2Ptr, const char *operation, const char *reason, int index) |
Tcl_Var | Tcl_FindNamespaceVar (Tcl_Interp *interp, const char *name, Tcl_Namespace *contextNsPtr, int flags) |
int | TclInfoVarsCmd (ClientData dummy, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) |
int | TclInfoGlobalsCmd (ClientData dummy, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) |
int | TclInfoLocalsCmd (ClientData dummy, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) |
void | TclInitVarHashTable (TclVarHashTable *tablePtr, Namespace *nsPtr) |
Variables |
Tcl_ObjType | tclArraySearchType |
Define Documentation
#define AVOID_RESOLVERS 0x40000 |
#define ENABLE_NS_VARNAME_CACHING 0 |
#define HasLocalVars |
( |
framePtr |
|
) |
((framePtr)->isProcCallFrame & FRAME_IS_PROC) |
#define VarHashDeleteEntry |
( |
varPtr |
|
) |
Tcl_DeleteHashEntry(&(((VarInHash *) varPtr)->entry)) |
#define VarHashDeleteTable |
( |
tablePtr |
|
) |
Tcl_DeleteHashTable((Tcl_HashTable *) (tablePtr)) |
#define VarHashFindVar |
( |
tablePtr, |
|
|
key |
|
) |
VarHashCreateVar((tablePtr), (key), NULL) |
#define VarHashFirstEntry |
( |
tablePtr, |
|
|
searchPtr |
|
) |
Tcl_FirstHashEntry((Tcl_HashTable *) (tablePtr), (searchPtr)) |
#define VarHashInvalidateEntry |
( |
varPtr |
|
) |
((varPtr)->flags |= VAR_DEAD_HASH) |
#define VarHashNextEntry |
( |
searchPtr |
|
) |
Tcl_NextHashEntry((searchPtr)) |
Function Documentation
int Tcl_AppendObjCmd |
( |
ClientData |
dummy, |
|
|
Tcl_Interp * |
interp, |
|
|
int |
objc, |
|
|
Tcl_Obj *const |
objv[] | |
|
) |
| | |
int Tcl_ArrayObjCmd |
( |
ClientData |
dummy, |
|
|
Tcl_Interp * |
interp, |
|
|
int |
objc, |
|
|
Tcl_Obj *const |
objv[] | |
|
) |
| | |
Definition at line 2711 of file tclVar.c.
References ckalloc, ckfree, ExecEnv::constants, Interp::execEnvPtr, Var::flags, ArraySearch::id, ArraySearch::nextEntry, ArraySearch::nextPtr, ArraySearch::search, Var::tablePtr, Tcl_AppendResult(), Tcl_CreateHashEntry, Tcl_DeleteHashEntry(), Tcl_DictObjPut(), TCL_ERROR, Tcl_FindHashEntry, Tcl_GetHashValue, Tcl_GetIndexFromObj(), TCL_GLOBAL_ONLY, Tcl_HashStats(), Tcl_IncrRefCount, TCL_INTEGER_SPACE, TCL_LEAVE_ERR_MSG, Tcl_ListObjAppendElement(), Tcl_ListObjGetElements(), TCL_NAMESPACE_ONLY, Tcl_NewIntObj(), Tcl_NewStringObj(), Tcl_NextHashEntry(), Tcl_ObjGetVar2(), TCL_OK, Tcl_RegExpMatch(), Tcl_SetHashValue, Tcl_SetObjResult(), Tcl_SetResult(), TCL_STATIC, Tcl_StringMatch(), TCL_TRACE_ARRAY, Tcl_WrongNumArgs(), TclArraySet(), TclDecrRefCount, TclFormatInt, TclGetString, TclIsVarArray, TclIsVarInHash, TclIsVarUndefined, TclMatchIsTrivial, TclNewObj, TclObjCallVarTraces(), TclObjLookupVarEx(), TclObjUnsetVar2(), Var::value, VAR_SEARCH_ACTIVE, VAR_TRACED_ARRAY, VarHashFindVar, VarHashFirstEntry, VarHashGetKey, VarHashGetValue, VarHashRefCount, ArraySearch::varPtr, and Interp::varSearches.
const char* Tcl_GetVar |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
varName, |
|
|
int |
flags | |
|
) |
| | |
const char* Tcl_GetVar2 |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
part1, |
|
|
const char * |
part2, |
|
|
int |
flags | |
|
) |
| | |
Tcl_Obj* Tcl_GetVar2Ex |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
part1, |
|
|
const char * |
part2, |
|
|
int |
flags | |
|
) |
| | |
Definition at line 3764 of file tclVar.c.
References CallFrame::compiledLocals, Namespace::fullName, Interp::globalNsPtr, localName, CallFrame::numCompiledLocals, CallFrame::procPtr, Tcl_AppendObjToObj(), Tcl_AppendToObj(), TclGetVarNsPtr, TclIsVarArrayElement, TclIsVarDeadHash, TclIsVarInHash, Interp::varFramePtr, and VarHashGetKey.
Referenced by TclInfoVarsCmd().
int Tcl_GlobalObjCmd |
( |
ClientData |
dummy, |
|
|
Tcl_Interp * |
interp, |
|
|
int |
objc, |
|
|
Tcl_Obj *const |
objv[] | |
|
) |
| | |
int Tcl_LappendObjCmd |
( |
ClientData |
dummy, |
|
|
Tcl_Interp * |
interp, |
|
|
int |
objc, |
|
|
Tcl_Obj *const |
objv[] | |
|
) |
| | |
Definition at line 2570 of file tclVar.c.
References Tcl_DuplicateObj(), TCL_ERROR, Tcl_IsShared, TCL_LEAVE_ERR_MSG, Tcl_ListObjReplace(), Tcl_ObjGetVar2(), Tcl_ObjSetVar2(), TCL_OK, Tcl_SetObjResult(), Tcl_WrongNumArgs(), TclDecrRefCount, TclIsVarInHash, TclListObjLength, TclNewObj, TclObjLookupVarEx(), TclPtrGetVar(), TclPtrSetVar(), and VarHashRefCount.
int Tcl_SetObjCmd |
( |
ClientData |
dummy, |
|
|
register Tcl_Interp * |
interp, |
|
|
int |
objc, |
|
|
Tcl_Obj *const |
objv[] | |
|
) |
| | |
const char* Tcl_SetVar |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
varName, |
|
|
const char * |
newValue, |
|
|
int |
flags | |
|
) |
| | |
const char* Tcl_SetVar2 |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
part1, |
|
|
const char * |
part2, |
|
|
const char * |
newValue, |
|
|
int |
flags | |
|
) |
| | |
Tcl_Obj* Tcl_SetVar2Ex |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
part1, |
|
|
const char * |
part2, |
|
|
Tcl_Obj * |
newValuePtr, |
|
|
int |
flags | |
|
) |
| | |
int Tcl_UnsetObjCmd |
( |
ClientData |
dummy, |
|
|
Tcl_Interp * |
interp, |
|
|
int |
objc, |
|
|
Tcl_Obj *const |
objv[] | |
|
) |
| | |
int Tcl_UnsetVar |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
varName, |
|
|
int |
flags | |
|
) |
| | |
int Tcl_UnsetVar2 |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
part1, |
|
|
const char * |
part2, |
|
|
int |
flags | |
|
) |
| | |
int Tcl_UpVar |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
frameName, |
|
|
const char * |
varName, |
|
|
const char * |
localName, |
|
|
int |
flags | |
|
) |
| | |
int Tcl_UpVar2 |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
frameName, |
|
|
const char * |
part1, |
|
|
const char * |
part2, |
|
|
const char * |
localName, |
|
|
int |
flags | |
|
) |
| | |
int Tcl_UpvarObjCmd |
( |
ClientData |
dummy, |
|
|
Tcl_Interp * |
interp, |
|
|
int |
objc, |
|
|
Tcl_Obj *const |
objv[] | |
|
) |
| | |
int Tcl_VariableObjCmd |
( |
ClientData |
dummy, |
|
|
Tcl_Interp * |
interp, |
|
|
int |
objc, |
|
|
Tcl_Obj *const |
objv[] | |
|
) |
| | |
Definition at line 3934 of file tclVar.c.
References HasLocalVars, Tcl_DecrRefCount, TCL_ERROR, Tcl_IncrRefCount, TCL_LEAVE_ERR_MSG, Tcl_NewStringObj(), TCL_OK, Tcl_WrongNumArgs(), TclGetString, TclObjLookupVarEx(), TclObjVarErrMsg(), TclPtrSetVar(), TclSetVarNamespaceVar, and Interp::varFramePtr.
Definition at line 3262 of file tclVar.c.
References ckalloc, Var::tablePtr, Tcl_DecrRefCount, Tcl_DictObjDone(), Tcl_DictObjFirst(), Tcl_DictObjNext(), Tcl_DictObjSize(), TCL_ERROR, TCL_LEAVE_ERR_MSG, Tcl_NewStringObj(), TCL_OK, Tcl_SetObjResult(), tclDictType, TclGetVarNsPtr, TclInitVarHashTable(), TclIsVarArray, TclIsVarArrayElement, TclIsVarUndefined, TclListObjCopy(), TclListObjGetElements, TclLookupArrayElement(), TclObjLookupVarEx(), TclObjVarErrMsg(), TclPtrSetVar(), TclSetVarArray, Tcl_Obj::typePtr, and Var::value.
Referenced by Tcl_ArrayObjCmd(), and TclSetupEnv().
void TclCleanupVar |
( |
Var * |
varPtr, |
|
|
Var * |
arrayPtr | |
|
) |
| | |
void TclDeleteNamespaceVars |
( |
Namespace * |
nsPtr |
) |
|
Definition at line 4341 of file tclVar.c.
References Interp::globalNsPtr, Namespace::interp, VarTrace::nextPtr, Tcl_DeleteHashEntry(), TCL_DYNAMIC, Tcl_EventuallyFree(), Tcl_FindHashEntry, Tcl_GetHashValue, TCL_GLOBAL_ONLY, TclGetCurrentNamespace, TclIsVarTraced, VAR_ALL_TRACES, VarHashDeleteEntry, VarHashDeleteTable, VarHashGetKey, VarHashRefCount, Namespace::varTable, and Interp::varTraces.
Referenced by Tcl_DeleteNamespace(), and TclTeardownNamespace().
int TclInfoGlobalsCmd |
( |
ClientData |
dummy, |
|
|
Tcl_Interp * |
interp, |
|
|
int |
objc, |
|
|
Tcl_Obj *const |
objv[] | |
|
) |
| | |
Definition at line 5229 of file tclVar.c.
References Tcl_DecrRefCount, TCL_ERROR, Tcl_GetGlobalNamespace(), Tcl_IncrRefCount, Tcl_ListObjAppendElement(), Tcl_NewListObj(), Tcl_NewStringObj(), TCL_OK, Tcl_SetObjResult(), Tcl_StringMatch(), Tcl_WrongNumArgs(), TclGetString, TclIsVarUndefined, TclMatchIsTrivial, VarHashFindVar, VarHashGetKey, and Namespace::varTable.
int TclInfoLocalsCmd |
( |
ClientData |
dummy, |
|
|
Tcl_Interp * |
interp, |
|
|
int |
objc, |
|
|
Tcl_Obj *const |
objv[] | |
|
) |
| | |
int TclInfoVarsCmd |
( |
ClientData |
dummy, |
|
|
Tcl_Interp * |
interp, |
|
|
int |
objc, |
|
|
Tcl_Obj *const |
objv[] | |
|
) |
| | |
Definition at line 5035 of file tclVar.c.
References FRAME_IS_PROC, CallFrame::isProcCallFrame, CallFrame::procPtr, Tcl_DecrRefCount, TCL_ERROR, Tcl_GetCurrentNamespace(), Tcl_GetGlobalNamespace(), Tcl_GetVariableFullName(), Tcl_IncrRefCount, Tcl_ListObjAppendElement(), Tcl_NewListObj(), Tcl_NewObj(), Tcl_NewStringObj(), TCL_OK, Tcl_SetObjResult(), Tcl_StringMatch(), Tcl_WrongNumArgs(), TclGetNamespaceForQualName(), TclGetString, TclIsVarNamespaceVar, TclIsVarUndefined, TclMatchIsTrivial, Interp::varFramePtr, VarHashFindVar, VarHashGetKey, and Namespace::varTable.
Var* TclLookupArrayElement |
( |
Tcl_Interp * |
interp, |
|
|
Tcl_Obj * |
arrayNamePtr, |
|
|
Tcl_Obj * |
elNamePtr, |
|
|
const int |
flags, |
|
|
const char * |
msg, |
|
|
const int |
createArray, |
|
|
const int |
createElem, |
|
|
Var * |
arrayPtr, |
|
|
int |
index | |
|
) |
| | |
Definition at line 1077 of file tclVar.c.
References ckalloc, Var::flags, Var::tablePtr, TCL_LEAVE_ERR_MSG, Tcl_SetErrorCode(), TclGetString, TclGetVarNsPtr, TclInitVarHashTable(), TclIsVarArray, TclIsVarArrayElement, TclIsVarDeadHash, TclIsVarInHash, TclIsVarUndefined, TclObjVarErrMsg(), TclSetVarArray, TclSetVarArrayElement, Var::value, VAR_SEARCH_ACTIVE, and VarHashFindVar.
Referenced by TclArraySet(), TclExecuteByteCode(), and TclObjLookupVarEx().
Var * TclLookupSimpleVar |
( |
Tcl_Interp * |
interp, |
|
|
Tcl_Obj * |
varNamePtr, |
|
|
int |
flags, |
|
|
const int |
create, |
|
|
const char ** |
errMsgPtr, |
|
|
int * |
indexPtr | |
|
) |
| | |
Definition at line 848 of file tclVar.c.
References AVOID_RESOLVERS, ckalloc, CallFrame::compiledLocals, Interp::globalNsPtr, HasLocalVars, iPtr, CallFrame::localCachePtr, localName, ResolverScheme::nextPtr, CallFrame::nsPtr, Proc::numCompiledLocals, CallFrame::procPtr, Interp::resolverPtr, TCL_CONTINUE, TCL_GLOBAL_ONLY, TCL_LEAVE_ERR_MSG, TCL_NAMESPACE_ONLY, Tcl_NewStringObj(), TCL_OK, TclGetNamespaceForQualName(), TclGetString, TclInitVarHashTable(), Interp::varFramePtr, VarHashFindVar, LocalCache::varName0, ResolverScheme::varResProc, Namespace::varResProc, Namespace::varTable, and CallFrame::varTablePtr.
Referenced by TclObjLookupVarEx(), and TclPtrObjMakeUpvar().
Var* TclLookupVar |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
part1, |
|
|
const char * |
part2, |
|
|
int |
flags, |
|
|
const char * |
msg, |
|
|
int |
createPart1, |
|
|
int |
createPart2, |
|
|
Var ** |
arrayPtrPtr | |
|
) |
| | |
Var* TclObjLookupVar |
( |
Tcl_Interp * |
interp, |
|
|
register Tcl_Obj * |
part1Ptr, |
|
|
const char * |
part2, |
|
|
int |
flags, |
|
|
const char * |
msg, |
|
|
const int |
createPart1, |
|
|
const int |
createPart2, |
|
|
Var ** |
arrayPtrPtr | |
|
) |
| | |
Var* TclObjLookupVarEx |
( |
Tcl_Interp * |
interp, |
|
|
Tcl_Obj * |
part1Ptr, |
|
|
Tcl_Obj * |
part2Ptr, |
|
|
int |
flags, |
|
|
const char * |
msg, |
|
|
const int |
createPart1, |
|
|
const int |
createPart2, |
|
|
Var ** |
arrayPtrPtr | |
|
) |
| | |
Definition at line 486 of file tclVar.c.
References ckalloc, CallFrame::compiledLocals, Interp::globalNsPtr, HasLocalVars, Tcl_Obj::internalRep, iPtr, Var::linkPtr, localName, CallFrame::nsPtr, Tcl_Obj::ptrAndLongRep, Tcl_DecrRefCount, TCL_GLOBAL_ONLY, Tcl_IncrRefCount, TCL_LEAVE_ERR_MSG, TCL_NAMESPACE_ONLY, Tcl_NewStringObj(), TclFreeIntRep, TclGetString, TclGetStringFromObj, TclIsVarDeadHash, TclIsVarLink, TclIsVarUndefined, TclLookupArrayElement(), TclLookupSimpleVar(), TclNewStringObj, TclObjVarErrMsg(), Tcl_Obj::twoPtrValue, Tcl_Obj::typePtr, Var::value, and Interp::varFramePtr.
Referenced by Tcl_AppendObjCmd(), Tcl_ArrayObjCmd(), Tcl_LappendObjCmd(), Tcl_LogCommandInfo(), Tcl_ObjGetVar2(), Tcl_ObjSetVar2(), Tcl_VariableObjCmd(), TclArraySet(), TclExecuteByteCode(), TclIncrObjVar2(), TclObjLookupVar(), and TclObjUnsetVar2().
Definition at line 2182 of file tclVar.c.
References iPtr, TCL_ERROR, TCL_LEAVE_ERR_MSG, TCL_OK, TclFreeIntRep, TclIsVarInHash, TclIsVarUndefined, TclObjLookupVarEx(), TclObjVarErrMsg(), Tcl_Obj::typePtr, and VarHashRefCount.
Referenced by Tcl_ArrayObjCmd(), Tcl_UnsetObjCmd(), Tcl_UnsetVar2(), and TclExecuteByteCode().
void TclObjVarErrMsg |
( |
Tcl_Interp * |
interp, |
|
|
Tcl_Obj * |
part1Ptr, |
|
|
Tcl_Obj * |
part2Ptr, |
|
|
const char * |
operation, |
|
|
const char * |
reason, |
|
|
int |
index | |
|
) |
| | |
Definition at line 4638 of file tclVar.c.
References localName, Tcl_AppendResult(), Tcl_ResetResult(), and TclGetString.
Referenced by Tcl_VariableObjCmd(), TclArraySet(), TclLookupArrayElement(), TclObjLookupVarEx(), TclObjUnsetVar2(), TclPtrGetVar(), TclPtrObjMakeUpvar(), TclPtrSetVar(), and TclVarErrMsg().
Definition at line 1378 of file tclVar.c.
References Var::flags, iPtr, TCL_ERROR, TCL_GLOBAL_ONLY, TCL_LEAVE_ERR_MSG, TCL_NAMESPACE_ONLY, TCL_TRACE_READS, TclCleanupVar(), TclIsVarArray, TclIsVarScalar, TclIsVarUndefined, TclObjCallVarTraces(), TclObjVarErrMsg(), and VAR_TRACED_READ.
Definition at line 2018 of file tclVar.c.
References Tcl_DecrRefCount, Tcl_DuplicateObj(), Tcl_IsShared, Tcl_NewIntObj(), TCL_OK, TclIncrObj(), TclIsVarInHash, TclPtrGetVar(), TclPtrSetVar(), and VarHashRefCount.
Referenced by TclExecuteByteCode(), and TclIncrObjVar2().
int TclPtrMakeUpvar |
( |
Tcl_Interp * |
interp, |
|
|
Var * |
otherPtr, |
|
|
const char * |
myName, |
|
|
int |
myFlags, |
|
|
int |
index | |
|
) |
| | |
int TclPtrObjMakeUpvar |
( |
Tcl_Interp * |
interp, |
|
|
Var * |
otherPtr, |
|
|
Tcl_Obj * |
myNamePtr, |
|
|
int |
myFlags, |
|
|
int |
index | |
|
) |
| | |
Definition at line 3548 of file tclVar.c.
References AVOID_RESOLVERS, CallFrame::compiledLocals, HasLocalVars, Var::linkPtr, localName, Tcl_AppendResult(), TCL_ERROR, TCL_OK, Tcl_Panic(), Tcl_SetResult(), TCL_STATIC, TclGetString, TclIsVarInHash, TclIsVarLink, TclIsVarTraced, TclIsVarUndefined, TclLookupSimpleVar(), TclObjVarErrMsg(), TclSetVarLink, Var::value, Interp::varFramePtr, and VarHashRefCount.
Referenced by TclExecuteByteCode(), and TclPtrMakeUpvar().
Definition at line 1749 of file tclVar.c.
References Interp::emptyObjPtr, Var::flags, iPtr, Tcl_Obj::refCount, TCL_APPEND_VALUE, Tcl_AppendObjToObj(), Tcl_DecrRefCount, Tcl_DuplicateObj(), TCL_ERROR, TCL_GLOBAL_ONLY, Tcl_IncrRefCount, Tcl_IsShared, TCL_LEAVE_ERR_MSG, TCL_LIST_ELEMENT, Tcl_ListObjAppendElement(), TCL_NAMESPACE_ONLY, TCL_OK, TCL_TRACE_READS, TCL_TRACE_WRITES, TclCleanupVar(), TclDecrRefCount, TclIsVarArray, TclIsVarArrayElement, TclIsVarDeadHash, TclIsVarScalar, TclIsVarUndefined, TclNewObj, TclObjCallVarTraces(), TclObjVarErrMsg(), Tcl_Obj::value, VAR_TRACED_READ, and VAR_TRACED_WRITE.
void TclVarErrMsg |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
part1, |
|
|
const char * |
part2, |
|
|
const char * |
operation, |
|
|
const char * |
reason | |
|
) |
| | |
Variable Documentation
Initial value: {
"array search",
NULL, NULL, NULL, SetArraySearchObj
}
Definition at line 245 of file tclVar.c.
Generated on Wed Mar 12 12:18:34 2008 by
1.5.1
|