tclBasic.c File Reference#include "tclInt.h"
#include "tclCompile.h"
#include <float.h>
#include <limits.h>
#include <math.h>
#include "tommath.h"
Go to the source code of this file.
|
Data Structures |
struct | OldMathFuncData |
struct | CmdInfo |
struct | BuiltinFuncDef |
struct | OpCmdInfo |
Defines |
#define | GetCStackParams(iPtr) TclpGetCStackParams(&((iPtr)->stackBound)) |
#define | CheckCStack(iPtr, localIntPtr) ((localIntPtr) > (iPtr)->stackBound) |
#define | MATH_FUNC_PREFIX_LEN 17 |
#define | MATH_OP_PREFIX_LEN 15 |
#define | RAND_IA 16807 |
#define | RAND_IM 2147483647 |
#define | RAND_IQ 127773 |
#define | RAND_IR 2836 |
#define | RAND_MASK 123459876 |
Functions |
Tcl_Interp * | Tcl_CreateInterp (void) |
int | TclHideUnsafeCommands (Tcl_Interp *interp) |
void | Tcl_CallWhenDeleted (Tcl_Interp *interp, Tcl_InterpDeleteProc *proc, ClientData clientData) |
void | Tcl_DontCallWhenDeleted (Tcl_Interp *interp, Tcl_InterpDeleteProc *proc, ClientData clientData) |
void | Tcl_SetAssocData (Tcl_Interp *interp, const char *name, Tcl_InterpDeleteProc *proc, ClientData clientData) |
void | Tcl_DeleteAssocData (Tcl_Interp *interp, const char *name) |
ClientData | Tcl_GetAssocData (Tcl_Interp *interp, const char *name, Tcl_InterpDeleteProc **procPtr) |
int | Tcl_InterpDeleted (Tcl_Interp *interp) |
void | Tcl_DeleteInterp (Tcl_Interp *interp) |
int | Tcl_HideCommand (Tcl_Interp *interp, const char *cmdName, const char *hiddenCmdToken) |
int | Tcl_ExposeCommand (Tcl_Interp *interp, const char *hiddenCmdToken, const char *cmdName) |
Tcl_Command | Tcl_CreateCommand (Tcl_Interp *interp, const char *cmdName, Tcl_CmdProc *proc, ClientData clientData, Tcl_CmdDeleteProc *deleteProc) |
Tcl_Command | Tcl_CreateObjCommand (Tcl_Interp *interp, const char *cmdName, Tcl_ObjCmdProc *proc, ClientData clientData, Tcl_CmdDeleteProc *deleteProc) |
int | TclInvokeStringCommand (ClientData clientData, Tcl_Interp *interp, register int objc, Tcl_Obj *const objv[]) |
int | TclInvokeObjectCommand (ClientData clientData, Tcl_Interp *interp, int argc, register const char **argv) |
int | TclRenameCommand (Tcl_Interp *interp, const char *oldName, const char *newName) |
int | Tcl_SetCommandInfo (Tcl_Interp *interp, const char *cmdName, const Tcl_CmdInfo *infoPtr) |
int | Tcl_SetCommandInfoFromToken (Tcl_Command cmd, const Tcl_CmdInfo *infoPtr) |
int | Tcl_GetCommandInfo (Tcl_Interp *interp, const char *cmdName, Tcl_CmdInfo *infoPtr) |
int | Tcl_GetCommandInfoFromToken (Tcl_Command cmd, Tcl_CmdInfo *infoPtr) |
const char * | Tcl_GetCommandName (Tcl_Interp *interp, Tcl_Command command) |
void | Tcl_GetCommandFullName (Tcl_Interp *interp, Tcl_Command command, Tcl_Obj *objPtr) |
int | Tcl_DeleteCommand (Tcl_Interp *interp, const char *cmdName) |
int | Tcl_DeleteCommandFromToken (Tcl_Interp *interp, Tcl_Command cmd) |
void | TclCleanupCommand (register Command *cmdPtr) |
void | Tcl_CreateMathFunc (Tcl_Interp *interp, const char *name, int numArgs, Tcl_ValueType *argTypes, Tcl_MathProc *proc, ClientData clientData) |
int | Tcl_GetMathFuncInfo (Tcl_Interp *interp, const char *name, int *numArgsPtr, Tcl_ValueType **argTypesPtr, Tcl_MathProc **procPtr, ClientData *clientDataPtr) |
Tcl_Obj * | Tcl_ListMathFuncs (Tcl_Interp *interp, const char *pattern) |
int | TclInterpReady (Tcl_Interp *interp) |
int | TclEvalObjvInternal (Tcl_Interp *interp, int objc, Tcl_Obj *const objv[], const char *command, int length, int flags) |
int | Tcl_EvalObjv (Tcl_Interp *interp, int objc, Tcl_Obj *const objv[], int flags) |
int | Tcl_EvalTokensStandard (Tcl_Interp *interp, Tcl_Token *tokenPtr, int count) |
Tcl_Obj * | Tcl_EvalTokens (Tcl_Interp *interp, Tcl_Token *tokenPtr, int count) |
int | Tcl_EvalEx (Tcl_Interp *interp, const char *script, int numBytes, int flags) |
int | TclEvalEx (Tcl_Interp *interp, const char *script, int numBytes, int flags, int line) |
void | TclAdvanceLines (int *line, const char *start, const char *end) |
int | Tcl_Eval (Tcl_Interp *interp, const char *script) |
int | Tcl_EvalObj (Tcl_Interp *interp, Tcl_Obj *objPtr) |
int | Tcl_GlobalEvalObj (Tcl_Interp *interp, Tcl_Obj *objPtr) |
int | Tcl_EvalObjEx (Tcl_Interp *interp, register Tcl_Obj *objPtr, int flags) |
int | TclEvalObjEx (Tcl_Interp *interp, register Tcl_Obj *objPtr, int flags, const CmdFrame *invoker, int word) |
int | Tcl_ExprLong (Tcl_Interp *interp, const char *exprstring, long *ptr) |
int | Tcl_ExprDouble (Tcl_Interp *interp, const char *exprstring, double *ptr) |
int | Tcl_ExprBoolean (Tcl_Interp *interp, const char *exprstring, int *ptr) |
int | Tcl_ExprLongObj (Tcl_Interp *interp, register Tcl_Obj *objPtr, long *ptr) |
int | Tcl_ExprDoubleObj (Tcl_Interp *interp, register Tcl_Obj *objPtr, double *ptr) |
int | Tcl_ExprBooleanObj (Tcl_Interp *interp, register Tcl_Obj *objPtr, int *ptr) |
int | TclObjInvokeNamespace (Tcl_Interp *interp, int objc, Tcl_Obj *const objv[], Tcl_Namespace *nsPtr, int flags) |
int | TclObjInvoke (Tcl_Interp *interp, int objc, Tcl_Obj *const objv[], int flags) |
int | Tcl_ExprString (Tcl_Interp *interp, const char *expr) |
void | Tcl_AppendObjToErrorInfo (Tcl_Interp *interp, Tcl_Obj *objPtr) |
void | Tcl_AddErrorInfo (Tcl_Interp *interp, const char *message) |
void | Tcl_AddObjErrorInfo (Tcl_Interp *interp, const char *message, int length) |
int | Tcl_VarEvalVA (Tcl_Interp *interp, va_list argList) |
int | Tcl_VarEval (Tcl_Interp *interp,...) |
int | Tcl_GlobalEval (Tcl_Interp *interp, const char *command) |
int | Tcl_SetRecursionLimit (Tcl_Interp *interp, int depth) |
void | Tcl_AllowExceptions (Tcl_Interp *interp) |
void | Tcl_GetVersion (int *majorV, int *minorV, int *patchLevelV, int *type) |
Variables |
TclStubs | tclStubs |
Define Documentation
#define CheckCStack |
( |
iPtr, |
|
|
localIntPtr |
|
) |
((localIntPtr) > (iPtr)->stackBound) |
#define GetCStackParams |
( |
iPtr |
|
) |
TclpGetCStackParams(&((iPtr)->stackBound)) |
#define MATH_FUNC_PREFIX_LEN 17 |
#define MATH_OP_PREFIX_LEN 15 |
#define RAND_IM 2147483647 |
#define RAND_MASK 123459876 |
Function Documentation
void Tcl_AddErrorInfo |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
message | |
|
) |
| | |
void Tcl_AddObjErrorInfo |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
message, |
|
|
int |
length | |
|
) |
| | |
Definition at line 5341 of file tclBasic.c.
References ERR_LEGACY_COPY, Interp::errorCode, Interp::errorInfo, Interp::flags, Interp::objResultPtr, Tcl_Interp::result, Interp::result, Tcl_AppendToObj(), Tcl_DecrRefCount, Tcl_DuplicateObj(), Tcl_IncrRefCount, Tcl_IsShared, Tcl_NewStringObj(), and Tcl_SetErrorCode().
Referenced by Tcl_AddErrorInfo(), Tcl_AppendObjToErrorInfo(), Tcl_GetReturnOptions(), TclExecuteByteCode(), and TclIncrObjVar2().
Definition at line 5279 of file tclBasic.c.
References Tcl_AddObjErrorInfo(), Tcl_DecrRefCount, and TclGetStringFromObj.
Referenced by Tcl_CaseObjCmd(), Tcl_CatchObjCmd(), Tcl_EvalObjCmd(), Tcl_ForeachObjCmd(), Tcl_ForObjCmd(), Tcl_FSEvalFileEx(), Tcl_LogCommandInfo(), Tcl_LsearchObjCmd(), Tcl_LsortObjCmd(), Tcl_SwitchObjCmd(), Tcl_UplevelObjCmd(), Tcl_WhileObjCmd(), TclDefaultBgErrorHandlerObjCmd(), and TclEvalEx().
void Tcl_CallWhenDeleted |
( |
Tcl_Interp * |
interp, |
|
|
Tcl_InterpDeleteProc * |
proc, |
|
|
ClientData |
clientData | |
|
) |
| | |
Definition at line 889 of file tclBasic.c.
References Interp::assocData, ckalloc, AssocData::clientData, iPtr, AssocData::proc, Tcl_CreateHashEntry, Tcl_GetThreadData(), Tcl_InitHashTable(), TCL_INTEGER_SPACE, Tcl_SetHashValue, and TCL_STRING_KEYS.
Referenced by TclInterpInit().
Tcl_Command Tcl_CreateCommand |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
cmdName, |
|
|
Tcl_CmdProc * |
proc, |
|
|
ClientData |
clientData, |
|
|
Tcl_CmdDeleteProc * |
deleteProc | |
|
) |
| | |
Definition at line 1767 of file tclBasic.c.
References ckalloc, ckfree, Command::clientData, Command::cmdEpoch, Namespace::cmdTable, Command::compileProc, DELETED, Command::deleteData, Command::deleteProc, Command::flags, Interp::flags, Interp::globalNsPtr, Command::hPtr, ImportRef::importedCmdPtr, Command::importRefPtr, ImportRef::nextPtr, Command::nsPtr, Command::objClientData, Command::objProc, Command::proc, ImportedCmdData::realCmdPtr, Command::refCount, TCL_CREATE_NS_IF_UNKNOWN, Tcl_CreateHashEntry, Tcl_DeleteCommandFromToken(), Tcl_GetHashValue, Tcl_SetHashValue, TclGetNamespaceForQualName(), TclInvalidateNsCmdLookup, TclInvalidateNsPath(), TclInvokeStringCommand(), TclResetShadowedCmdRefs(), and Command::tracePtr.
Referenced by TclplatformtestInit(), Tcltest_Init(), and Tclxttest_Init().
Definition at line 383 of file tclBasic.c.
References Interp::activeCmdTracePtr, Interp::activeInterpTracePtr, Interp::activeVarTracePtr, Interp::allocCache, Interp::appendAvl, Interp::appendResult, Interp::appendUsed, Interp::assocData, Interp::asyncReadyPtr, Interp::chanMsg, ckalloc, Command::clientData, Interp::cmdCount, Command::cmdEpoch, Interp::cmdFramePtr, Namespace::cmdTable, Interp::compiledProcPtr, Interp::compileEpoch, CmdInfo::compileProc, Command::compileProc, Command::deleteData, Command::deleteProc, Interp::ecVar, Interp::eiVar, Interp::emptyObjPtr, Interp::ensembleRewrite, Interp::errorCode, Interp::errorInfo, Interp::errorLine, Interp::evalFlags, Interp::execEnvPtr, Interp::flags, Command::flags, Interp::framePtr, Interp::freeProc, GetCStackParams, Interp::globalNsPtr, Interp::handle, Interp::hiddenCmdTablePtr, Command::hPtr, Command::importRefPtr, Interp::interpInfo, iPtr, Interp::lineBCPtr, Interp::linePBodyPtr, Interp::literalTable, Interp::lookupNsPtr, MAX_NESTING_DEPTH, Interp::maxNestingDepth, CmdInfo::name, Command::nsPtr, Interp::numInsertedObjs, Interp::numLevels, Interp::numRemovedObjs, Command::objClientData, CmdInfo::objProc, Command::objProc, Interp::objResultPtr, Interp::packagePrefer, Interp::packageTable, Interp::packageUnknown, Interp::pendingObjDataPtr, PKG_PREFER_LATEST, PKG_PREFER_STABLE, Command::proc, Command::refCount, Interp::resolverPtr, Interp::result, Interp::resultSpace, Interp::returnCode, Interp::returnLevel, Interp::returnOpts, Interp::rootFramePtr, Interp::scriptFile, Interp::sourceObjs, Interp::stubTable, Tcl_CreateHashEntry, Tcl_CreateNamespace(), Tcl_GetCurrentThread(), Tcl_IncrRefCount, Tcl_InitHashTable(), Tcl_NewObj(), TCL_OK, TCL_ONE_WORD_KEYS, Tcl_Panic(), Tcl_PushCallFrame(), Tcl_SetHashValue, TCL_STRING_KEYS, TclCreateExecEnv(), TclGetAsyncReadyPtr(), TclHandleCreate(), TclInitLimitSupport(), TclInitLiteralTable(), TclInitSubsystems(), TclInvokeObjectCommand(), TclNewLiteralStringObj, tclStubs, Interp::threadId, Interp::tracePtr, Command::tracePtr, Interp::tracesForbiddingInline, Interp::varFramePtr, Interp::varSearches, and Interp::varTraces.
Referenced by Tcl_Main().
void Tcl_CreateMathFunc |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
name, |
|
|
int |
numArgs, |
|
|
Tcl_ValueType * |
argTypes, |
|
|
Tcl_MathProc * |
proc, |
|
|
ClientData |
clientData | |
|
) |
| | |
Tcl_Command Tcl_CreateObjCommand |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
cmdName, |
|
|
Tcl_ObjCmdProc * |
proc, |
|
|
ClientData |
clientData, |
|
|
Tcl_CmdDeleteProc * |
deleteProc | |
|
) |
| | |
Definition at line 1921 of file tclBasic.c.
References ckalloc, ckfree, Command::clientData, Command::cmdEpoch, Namespace::cmdTable, Command::compileProc, DELETED, Command::deleteData, Command::deleteProc, Command::flags, Interp::flags, Interp::globalNsPtr, Command::hPtr, ImportRef::importedCmdPtr, Command::importRefPtr, ImportRef::nextPtr, Command::nsPtr, Command::objClientData, Command::objProc, Command::proc, ImportedCmdData::realCmdPtr, Command::refCount, TCL_CREATE_NS_IF_UNKNOWN, Tcl_CreateHashEntry, Tcl_DeleteCommandFromToken(), Tcl_GetHashValue, Tcl_SetHashValue, TclGetNamespaceForQualName(), TclInvalidateNsCmdLookup, TclInvalidateNsPath(), TclInvokeObjectCommand(), TclInvokeStringCommand(), TclResetShadowedCmdRefs(), and Command::tracePtr.
Referenced by Pkga_Init(), Pkgb_Init(), Pkgb_SafeInit(), Pkgc_Init(), Pkgc_SafeInit(), Pkgd_Init(), Pkgd_SafeInit(), Pkgua_Init(), Tcl_CreateEnsemble(), Tcl_CreateMathFunc(), Tcl_ProcObjCmd(), Tcl_RegisterConfig(), TclClockInit(), TclInterpInit(), TclMakeEnsemble(), TclObjTest_Init(), and Tcltest_Init().
void Tcl_DeleteAssocData |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
name | |
|
) |
| | |
int Tcl_DeleteCommand |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
cmdName | |
|
) |
| | |
Definition at line 2682 of file tclBasic.c.
References ckfree, CMD_IS_DELETED, Command::cmdEpoch, Interp::compileEpoch, Command::compileProc, Command::deleteData, Command::deleteProc, Command::flags, Command::hPtr, ImportRef::importedCmdPtr, Command::importRefPtr, CommandTrace::nextPtr, ImportRef::nextPtr, Command::nsPtr, Command::objProc, CommandTrace::refCount, Tcl_DeleteCommandFromToken(), Tcl_DeleteHashEntry(), TCL_TRACE_DELETE, TclCleanupCommandMacro, TclInvalidateNsCmdLookup, and Command::tracePtr.
Referenced by Pkgua_Unload(), Tcl_CreateCommand(), Tcl_CreateObjCommand(), Tcl_DeleteCommand(), Tcl_DeleteCommandFromToken(), Tcl_DeleteNamespace(), Tcl_ForgetImport(), Tcl_InterpObjCmd(), TclRenameCommand(), and TclTeardownNamespace().
void Tcl_DontCallWhenDeleted |
( |
Tcl_Interp * |
interp, |
|
|
Tcl_InterpDeleteProc * |
proc, |
|
|
ClientData |
clientData | |
|
) |
| | |
int Tcl_Eval |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
script | |
|
) |
| | |
int Tcl_EvalEx |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
script, |
|
|
int |
numBytes, |
|
|
int |
flags | |
|
) |
| | |
Definition at line 3827 of file tclBasic.c.
References Interp::evalFlags, Interp::numLevels, TCL_ALLOW_EXCEPTIONS, Tcl_DecrRefCount, TCL_ERROR, TCL_EVAL_INVOKE, Tcl_GetStringFromObj(), Tcl_LogCommandInfo(), Tcl_NewListObj(), TCL_OK, TCL_RETURN, TclEvalObjvInternal(), and TclUpdateReturnInfo().
Referenced by Tcl_ApplyObjCmd(), Tcl_Import(), TclDefaultBgErrorHandlerObjCmd(), and TclEvalObjEx().
int Tcl_ExposeCommand |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
hiddenCmdToken, |
|
|
const char * |
cmdName | |
|
) |
| | |
Definition at line 1607 of file tclBasic.c.
References Namespace::cmdTable, Interp::compileEpoch, Command::compileProc, DELETED, Interp::flags, Interp::globalNsPtr, Interp::hiddenCmdTablePtr, Command::hPtr, Command::nsPtr, Tcl_AppendResult(), Tcl_CreateHashEntry, Tcl_DeleteHashEntry(), TCL_ERROR, Tcl_FindHashEntry, Tcl_GetHashValue, TCL_OK, Tcl_SetHashValue, and TclInvalidateNsCmdLookup.
int Tcl_ExprBoolean |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
exprstring, |
|
|
int * |
ptr | |
|
) |
| | |
int Tcl_ExprDouble |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
exprstring, |
|
|
double * |
ptr | |
|
) |
| | |
int Tcl_ExprDoubleObj |
( |
Tcl_Interp * |
interp, |
|
|
register Tcl_Obj * |
objPtr, |
|
|
double * |
ptr | |
|
) |
| | |
int Tcl_ExprLong |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
exprstring, |
|
|
long * |
ptr | |
|
) |
| | |
Definition at line 4960 of file tclBasic.c.
References Tcl_DecrRefCount, TCL_ERROR, Tcl_ExprObj(), Tcl_GetDoubleFromObj(), Tcl_InitBignumFromDouble(), Tcl_NewBignumObj(), TCL_NUMBER_BIG, TCL_NUMBER_DOUBLE, TCL_NUMBER_LONG, TCL_NUMBER_NAN, TCL_NUMBER_WIDE, TCL_OK, TclGetLongFromObj, and TclGetNumberFromObj().
Referenced by Tcl_ExprLong().
int Tcl_ExprString |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
expr | |
|
) |
| | |
ClientData Tcl_GetAssocData |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
name, |
|
|
Tcl_InterpDeleteProc ** |
procPtr | |
|
) |
| | |
Definition at line 1072 of file tclBasic.c.
References Interp::assocData, AssocData::clientData, iPtr, AssocData::proc, Tcl_FindHashEntry, and Tcl_GetHashValue.
Referenced by Tcl_AfterObjCmd(), Tcl_IsChannelRegistered(), Tcl_LoadObjCmd(), Tcl_UnloadObjCmd(), TclBackgroundException(), TclGetBgErrorHandler(), TclGetLoadedPackages(), and TclSetBgErrorHandler().
Definition at line 2504 of file tclBasic.c.
References Tcl_CmdInfo::clientData, Command::clientData, Tcl_CmdInfo::deleteData, Command::deleteData, Tcl_CmdInfo::deleteProc, Command::deleteProc, Tcl_CmdInfo::isNativeObjectProc, Tcl_CmdInfo::namespacePtr, Command::nsPtr, Tcl_CmdInfo::objClientData, Command::objClientData, Command::objProc, Tcl_CmdInfo::objProc, Tcl_CmdInfo::proc, Command::proc, and TclInvokeStringCommand().
Referenced by Tcl_ForgetImport(), and Tcl_GetCommandInfo().
int Tcl_GetMathFuncInfo |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
name, |
|
|
int * |
numArgsPtr, |
|
|
Tcl_ValueType ** |
argTypesPtr, |
|
|
Tcl_MathProc ** |
procPtr, |
|
|
ClientData * |
clientDataPtr | |
|
) |
| | |
Definition at line 3261 of file tclBasic.c.
References OldMathFuncData::argTypes, OldMathFuncData::clientData, Command::clientData, OldMathFuncData::numArgs, Command::objProc, OldMathFuncData::proc, Tcl_AppendToObj(), Tcl_DecrRefCount, TCL_ERROR, Tcl_GetCommandFromObj(), Tcl_IncrRefCount, TCL_OK, Tcl_SetObjResult(), and TclNewLiteralStringObj.
void Tcl_GetVersion |
( |
int * |
majorV, |
|
|
int * |
minorV, |
|
|
int * |
patchLevelV, |
|
|
int * |
type | |
|
) |
| | |
int Tcl_GlobalEval |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
command | |
|
) |
| | |
int Tcl_HideCommand |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
cmdName, |
|
|
const char * |
hiddenCmdToken | |
|
) |
| | |
Definition at line 1442 of file tclBasic.c.
References ckalloc, Command::cmdEpoch, Interp::compileEpoch, Command::compileProc, DELETED, Interp::flags, Interp::globalNsPtr, Interp::hiddenCmdTablePtr, Command::hPtr, Command::nsPtr, Tcl_AppendResult(), Tcl_CreateHashEntry, Tcl_DeleteHashEntry(), TCL_ERROR, Tcl_FindCommand(), TCL_GLOBAL_ONLY, Tcl_InitHashTable(), TCL_LEAVE_ERR_MSG, TCL_OK, Tcl_SetHashValue, TCL_STRING_KEYS, and TclInvalidateNsCmdLookup.
Referenced by TclHideUnsafeCommands().
Definition at line 3342 of file tclBasic.c.
References Namespace::cmdTable, TCL_FIND_ONLY_NS, Tcl_FindHashEntry, Tcl_FirstHashEntry(), Tcl_GetGlobalNamespace(), Tcl_GetHashKey, TCL_GLOBAL_ONLY, Tcl_ListObjAppendElement(), Tcl_NewObj(), Tcl_NewStringObj(), Tcl_NextHashEntry(), Tcl_StringMatch(), TclGetNamespaceForQualName(), and TclMatchIsTrivial.
void Tcl_SetAssocData |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
name, |
|
|
Tcl_InterpDeleteProc * |
proc, |
|
|
ClientData |
clientData | |
|
) |
| | |
Definition at line 984 of file tclBasic.c.
References Interp::assocData, ckalloc, AssocData::clientData, iPtr, AssocData::proc, Tcl_CreateHashEntry, Tcl_GetHashValue, Tcl_InitHashTable(), Tcl_SetHashValue, and TCL_STRING_KEYS.
Referenced by Tcl_AfterObjCmd(), and TclSetBgErrorHandler().
Definition at line 2424 of file tclBasic.c.
References Tcl_CmdInfo::clientData, Command::clientData, Tcl_CmdInfo::deleteData, Command::deleteData, Tcl_CmdInfo::deleteProc, Command::deleteProc, Tcl_CmdInfo::objClientData, Command::objClientData, Command::objProc, Tcl_CmdInfo::objProc, Tcl_CmdInfo::proc, Command::proc, and TclInvokeStringCommand().
Referenced by Tcl_SetCommandInfo().
int Tcl_SetRecursionLimit |
( |
Tcl_Interp * |
interp, |
|
|
int |
depth | |
|
) |
| | |
int Tcl_VarEvalVA |
( |
Tcl_Interp * |
interp, |
|
|
va_list |
argList | |
|
) |
| | |
void TclAdvanceLines |
( |
int * |
line, |
|
|
const char * |
start, |
|
|
const char * |
end | |
|
) |
| | |
void TclCleanupCommand |
( |
register Command * |
cmdPtr |
) |
|
int TclEvalEx |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
script, |
|
|
int |
numBytes, |
|
|
int |
flags, |
|
|
int |
line | |
|
) |
| | |
Definition at line 4004 of file tclBasic.c.
References ckalloc, ckfree, CmdFrame::cmd, Interp::cmdFramePtr, Tcl_Parse::commandSize, Tcl_Parse::commandStart, CmdFrame::data, ERR_ALREADY_LOGGED, CmdFrame::eval, Interp::evalFlags, Interp::flags, CmdFrame::framePtr, Interp::framePtr, Interp::invokeCmdFramePtr, CmdFrame::level, CmdFrame::line, CmdFrame::nextPtr, CmdFrame::nline, Tcl_Token::numComponents, Interp::numLevels, Tcl_Parse::numWords, Interp::rootFramePtr, Interp::scriptFile, Tcl_Token::start, TCL_ALLOW_EXCEPTIONS, Tcl_AppendObjToErrorInfo(), Tcl_DecrRefCount, TCL_ERROR, TCL_EVAL_CTX, TCL_EVAL_FILE, TCL_EVAL_GLOBAL, Tcl_FreeParse(), Tcl_FSGetNormalizedPath(), Tcl_GetObjResult(), Tcl_IncrRefCount, Tcl_ListObjGetElements(), TCL_LOCATION_EVAL, TCL_LOCATION_SOURCE, Tcl_LogCommandInfo(), Tcl_ObjPrintf(), TCL_OK, Tcl_ParseCommand(), Tcl_ResetResult(), TCL_RETURN, TCL_TOKEN_EXPAND_WORD, TclAdvanceLines(), TclEvalObjvInternal(), TclListObjLength, TclNewLiteralStringObj, TclStackAlloc(), TclStackFree(), TclSubstTokens(), TclUpdateReturnInfo(), TclWordKnownAtCompileTime(), Tcl_Parse::term, Tcl_Parse::tokenPtr, CmdFrame::type, Tcl_Token::type, and Interp::varFramePtr.
Referenced by Tcl_EvalEx(), TclEvalObjEx(), and TclSubstTokens().
Definition at line 4557 of file tclBasic.c.
References List::canonicalFlag, ckalloc, ckfree, CmdFrame::cmd, Interp::cmdFramePtr, CmdFrame::data, CmdFrame::eval, Interp::evalFlags, Interp::framePtr, CmdFrame::framePtr, Interp::invokeCmdFramePtr, CmdFrame::level, CmdFrame::line, CmdFrame::nextPtr, CmdFrame::nline, Interp::numLevels, Interp::rootFramePtr, TCL_ALLOW_EXCEPTIONS, Tcl_DecrRefCount, TCL_ERROR, TCL_EVAL_CTX, TCL_EVAL_DIRECT, TCL_EVAL_GLOBAL, Tcl_EvalEx(), Tcl_EvalObjv(), Tcl_GetStringFromObj(), Tcl_IncrRefCount, Tcl_ListObjGetElements(), TCL_LOCATION_BC, TCL_LOCATION_EVAL_LIST, TCL_LOCATION_SOURCE, Tcl_LogCommandInfo(), TCL_OK, TCL_RETURN, TclAdvanceLines(), TclCompEvalObj(), TclDecrRefCount, TclEvalEx(), TclGetSrcInfoForPc(), TclGetString, TclListObjCopy(), tclListType, TclStackAlloc(), TclStackFree(), TclUpdateReturnInfo(), CmdFrame::type, and Interp::varFramePtr.
Referenced by Tcl_CatchObjCmd(), Tcl_EvalObjCmd(), Tcl_EvalObjEx(), Tcl_ForeachObjCmd(), Tcl_ForObjCmd(), Tcl_IfObjCmd(), Tcl_SwitchObjCmd(), and Tcl_WhileObjCmd().
int TclEvalObjvInternal |
( |
Tcl_Interp * |
interp, |
|
|
int |
objc, |
|
|
Tcl_Obj *const |
objv[], |
|
|
const char * |
command, |
|
|
int |
length, |
|
|
int |
flags | |
|
) |
| | |
Definition at line 3474 of file tclBasic.c.
References CMD_HAS_EXEC_TRACES, CMD_IS_DELETED, Interp::cmdCount, Command::cmdEpoch, Interp::cmdFramePtr, Interp::ensembleRewrite, Command::flags, Interp::globalNsPtr, Interp::limit, Interp::lookupNsPtr, CallFrame::nsPtr, Interp::numLevels, Command::objClientData, Command::objProc, Command::refCount, Interp::result, Interp::rootFramePtr, Interp::sourceObjs, Tcl_AppendResult(), Tcl_AsyncInvoke(), Tcl_DecrRefCount, TCL_DTRACE_CMD_ARGS, TCL_DTRACE_CMD_ARGS_ENABLED, TCL_DTRACE_CMD_ENTRY, TCL_DTRACE_CMD_ENTRY_ENABLED, TCL_DTRACE_CMD_INFO, TCL_DTRACE_CMD_INFO_ENABLED, TCL_DTRACE_CMD_RESULT, TCL_DTRACE_CMD_RESULT_ENABLED, TCL_DTRACE_CMD_RETURN, TCL_DTRACE_CMD_RETURN_ENABLED, TCL_ERROR, TCL_EVAL_GLOBAL, TCL_EVAL_INVOKE, Tcl_GetCommandFromObj(), Tcl_GetObjResult(), Tcl_IncrRefCount, Tcl_LimitCheck(), Tcl_ListObjGetElements(), TCL_OK, Tcl_Panic(), TCL_TRACE_ENTER_EXEC, TCL_TRACE_LEAVE_EXEC, TclAsyncReady, TclCheckExecutionTraces(), TclCheckInterpTraces(), TclCleanupCommandMacro, TclDecrRefCount, TclDTraceInfo, TclGetString, TclGetStringFromObj, TclInfoFrame(), TclInterpReady(), TclLimitExceeded, TclLimitReady, TclNewLiteralStringObj, TclStackAlloc(), TclStackFree(), Interp::tracePtr, Namespace::unknownHandlerPtr, and Interp::varFramePtr.
Referenced by Tcl_EvalObjv(), TclEvalEx(), and TclExecuteByteCode().
Definition at line 3403 of file tclBasic.c.
References CheckCStack, DELETED, Interp::flags, Interp::maxNestingDepth, Interp::numLevels, Tcl_AppendResult(), TCL_ERROR, TCL_OK, Tcl_ResetResult(), and Tcl_SetErrorCode().
Referenced by TclCompEvalObj(), TclEvalObjvInternal(), TclObjInterpProcCore(), TclObjInvoke(), and TclSubstTokens().
int TclInvokeObjectCommand |
( |
ClientData |
clientData, |
|
|
Tcl_Interp * |
interp, |
|
|
int |
argc, |
|
|
register const char ** |
argv | |
|
) |
| | |
int TclInvokeStringCommand |
( |
ClientData |
clientData, |
|
|
Tcl_Interp * |
interp, |
|
|
register int |
objc, |
|
|
Tcl_Obj *const |
objv[] | |
|
) |
| | |
Definition at line 5131 of file tclBasic.c.
References Interp::cmdCount, ERR_ALREADY_LOGGED, Interp::flags, Interp::hiddenCmdTablePtr, Command::objClientData, Command::objProc, Tcl_AppendResult(), Tcl_DecrRefCount, TCL_ERROR, Tcl_FindHashEntry, Tcl_GetHashValue, Tcl_GetStringFromObj(), Tcl_IncrRefCount, TCL_INVOKE_HIDDEN, TCL_INVOKE_NO_TRACEBACK, Tcl_LogCommandInfo(), Tcl_NewListObj(), Tcl_Panic(), TclGetString, and TclInterpReady().
Referenced by TclDefaultBgErrorHandlerObjCmd(), and TclObjInvokeNamespace().
int TclRenameCommand |
( |
Tcl_Interp * |
interp, |
|
|
const char * |
oldName, |
|
|
const char * |
newName | |
|
) |
| | |
Definition at line 2203 of file tclBasic.c.
References Namespace::cmdTable, Interp::compileEpoch, Namespace::fullName, Interp::globalNsPtr, Command::hPtr, Command::nsPtr, Tcl_AppendResult(), TCL_CREATE_NS_IF_UNKNOWN, Tcl_CreateHashEntry, Tcl_DeleteCommandFromToken(), Tcl_DeleteHashEntry(), Tcl_DStringAppend(), Tcl_DStringFree(), Tcl_DStringInit(), Tcl_DStringValue, TCL_ERROR, Tcl_FindCommand(), Tcl_FindHashEntry, Tcl_GetCommandFullName(), Tcl_GetString(), Tcl_IncrRefCount, Tcl_NewObj(), TCL_OK, Tcl_SetHashValue, TCL_TRACE_RENAME, TclCleanupCommandMacro, TclDecrRefCount, TclGetNamespaceForQualName(), TclInvalidateNsCmdLookup, TclPreventAliasLoop(), and TclResetShadowedCmdRefs().
Referenced by Tcl_RenameObjCmd().
Variable Documentation
Generated on Wed Mar 12 12:18:28 2008 by
1.5.1
|