tclResult.c File Reference#include "tclInt.h"
Go to the source code of this file.
|
Data Structures |
struct | InterpState |
Enumerations |
enum | returnKeys {
KEY_CODE,
KEY_ERRORCODE,
KEY_ERRORINFO,
KEY_ERRORLINE,
KEY_LEVEL,
KEY_OPTIONS,
KEY_LAST
} |
Functions |
Tcl_InterpState | Tcl_SaveInterpState (Tcl_Interp *interp, int status) |
int | Tcl_RestoreInterpState (Tcl_Interp *interp, Tcl_InterpState state) |
void | Tcl_DiscardInterpState (Tcl_InterpState state) |
void | Tcl_SaveResult (Tcl_Interp *interp, Tcl_SavedResult *statePtr) |
void | Tcl_RestoreResult (Tcl_Interp *interp, Tcl_SavedResult *statePtr) |
void | Tcl_DiscardResult (Tcl_SavedResult *statePtr) |
void | Tcl_SetResult (Tcl_Interp *interp, register char *result, Tcl_FreeProc *freeProc) |
CONST char * | Tcl_GetStringResult (register Tcl_Interp *interp) |
void | Tcl_SetObjResult (Tcl_Interp *interp, register Tcl_Obj *objPtr) |
Tcl_Obj * | Tcl_GetObjResult (Tcl_Interp *interp) |
void | Tcl_AppendResultVA (Tcl_Interp *interp, va_list argList) |
void | Tcl_AppendResult (Tcl_Interp *interp,...) |
void | Tcl_AppendElement (Tcl_Interp *interp, CONST char *element) |
void | Tcl_FreeResult (register Tcl_Interp *interp) |
void | Tcl_ResetResult (register Tcl_Interp *interp) |
void | Tcl_SetErrorCodeVA (Tcl_Interp *interp, va_list argList) |
void | Tcl_SetErrorCode (Tcl_Interp *interp,...) |
void | Tcl_SetObjErrorCode (Tcl_Interp *interp, Tcl_Obj *errorObjPtr) |
int | TclProcessReturn (Tcl_Interp *interp, int code, int level, Tcl_Obj *returnOpts) |
int | TclMergeReturnOptions (Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[], Tcl_Obj **optionsPtrPtr, int *codePtr, int *levelPtr) |
Tcl_Obj * | Tcl_GetReturnOptions (Tcl_Interp *interp, int result) |
int | Tcl_SetReturnOptions (Tcl_Interp *interp, Tcl_Obj *options) |
void | TclTransferResult (Tcl_Interp *sourceInterp, int result, Tcl_Interp *targetInterp) |
Enumeration Type Documentation
- Enumerator:
-
KEY_CODE |
|
KEY_ERRORCODE |
|
KEY_ERRORINFO |
|
KEY_ERRORLINE |
|
KEY_LEVEL |
|
KEY_OPTIONS |
|
KEY_LAST |
|
Definition at line 20 of file tclResult.c.
Function Documentation
void Tcl_AppendElement |
( |
Tcl_Interp * |
interp, |
|
|
CONST char * |
element | |
|
) |
| | |
Definition at line 699 of file tclResult.c.
References Interp::appendAvl, Interp::appendResult, Interp::appendUsed, iPtr, Interp::result, Tcl_ConvertElement(), TCL_DONT_QUOTE_HASH, Tcl_GetStringResult(), Tcl_ScanElement(), and TclNeedSpace().
Referenced by Tcl_AfterObjCmd(), Tcl_GetInterpPath(), Tcl_PackageObjCmd(), TclGetAndDetachPids(), and TclGetLoadedPackages().
void Tcl_AppendResult |
( |
Tcl_Interp * |
interp, |
|
|
|
... | |
|
) |
| | |
Definition at line 665 of file tclResult.c.
References Tcl_AppendResultVA().
Referenced by Tcl_AfterObjCmd(), Tcl_ArrayObjCmd(), Tcl_BadChannelOption(), Tcl_BinaryObjCmd(), Tcl_CaseObjCmd(), Tcl_CatchObjCmd(), Tcl_CdObjCmd(), Tcl_Close(), Tcl_CreateNamespace(), TCL_DECLARE_MUTEX(), Tcl_DisassembleObjCmd(), Tcl_ExecObjCmd(), Tcl_Export(), Tcl_ExposeCommand(), Tcl_FblockedObjCmd(), Tcl_FcopyObjCmd(), Tcl_FileEventObjCmd(), Tcl_FileObjCmd(), Tcl_FindEnsemble(), Tcl_FindNamespace(), Tcl_FlushObjCmd(), Tcl_ForeachObjCmd(), Tcl_ForgetImport(), Tcl_FSEvalFileEx(), Tcl_FSGetCwd(), Tcl_FSOpenFileChannel(), Tcl_GetAlias(), Tcl_GetAliasObj(), Tcl_GetChannel(), Tcl_GetEnsembleFlags(), Tcl_GetEnsembleMappingDict(), Tcl_GetEnsembleNamespace(), Tcl_GetEnsembleSubcommandList(), Tcl_GetEnsembleUnknownHandler(), Tcl_GetOpenFile(), Tcl_GetsObjCmd(), Tcl_GlobObjCmd(), Tcl_HideCommand(), Tcl_IfObjCmd(), Tcl_Import(), Tcl_InterpObjCmd(), Tcl_LimitCheck(), Tcl_LoadObjCmd(), Tcl_LrepeatObjCmd(), Tcl_LreplaceObjCmd(), Tcl_LsearchObjCmd(), Tcl_LsortObjCmd(), Tcl_OpenCommandChannel(), Tcl_OpenObjCmd(), Tcl_ParseBraces(), Tcl_PkgPresentEx(), Tcl_PkgProvideEx(), Tcl_PkgRequireEx(), Tcl_ProcObjCmd(), Tcl_PutsObjCmd(), Tcl_ReadObjCmd(), Tcl_RegexpObjCmd(), Tcl_RegsubObjCmd(), Tcl_ScanObjCmd(), Tcl_SeekObjCmd(), Tcl_SetChannelOption(), Tcl_SetEnsembleFlags(), Tcl_SetEnsembleMappingDict(), Tcl_SetEnsembleSubcommandList(), Tcl_SetEnsembleUnknownHandler(), Tcl_SetReturnOptions(), Tcl_SocketObjCmd(), Tcl_StackChannel(), Tcl_SwitchObjCmd(), Tcl_TraceObjCmd(), Tcl_UnloadObjCmd(), Tcl_UnregisterChannel(), Tcl_UnstackChannel(), Tcl_UpdateObjCmd(), Tcl_VwaitObjCmd(), TclChannelTransform(), TclChanPostEventObjCmd(), TclCheckBadOctal(), TclCleanupChildren(), TclCopyChannel(), TclCreatePipeline(), TclCreateProc(), TclEvalObjvInternal(), TclExecuteByteCode(), TclFileAttrsCmd(), TclFileDeleteCmd(), TclFileMakeDirsCmd(), TclFSMakePathFromNormalized(), TclFSMakePathRelative(), TclGetFrame(), TclGetIntForIndex(), TclGetLoadedPackages(), TclGetOpenModeEx(), TclInterpReady(), TclLoadFile(), TclMergeReturnOptions(), TclObjGetFrame(), TclObjInterpProcCore(), TclObjInvoke(), TclObjVarErrMsg(), TclpCreateProcess(), TclpDlopen(), TclpFindSymbol(), TclpGetCwd(), TclpMatchInDirectory(), TclpOpenFileChannel(), TclPreventAliasLoop(), TclPtrObjMakeUpvar(), TclRegError(), TclRenameCommand(), TclReToGlob(), TclSockGetPort(), TclTomMathInitializeStubs(), and TclTraceDictPath().
void Tcl_AppendResultVA |
( |
Tcl_Interp * |
interp, |
|
|
va_list |
argList | |
|
) |
| | |
void Tcl_FreeResult |
( |
register Tcl_Interp * |
interp |
) |
|
Definition at line 558 of file tclResult.c.
References ckfree, Interp::freeProc, iPtr, Interp::objResultPtr, Interp::result, Interp::resultSpace, TCL_DYNAMIC, and TclInitStringRep.
Referenced by Tcl_AppendResultVA(), Tcl_CatchObjCmd(), Tcl_CloseObjCmd(), Tcl_EvalTokens(), Tcl_ExecObjCmd(), Tcl_ExprObj(), Tcl_GetStringResult(), Tcl_GlobObjCmd(), Tcl_Main(), Tcl_ParseVar(), Tcl_SaveInterpState(), Tcl_SourceRCFile(), Tcl_SubstObj(), Tcl_WrongNumArgs(), TclBackgroundException(), TclChanCreateObjCmd(), TclCompileSyntaxError(), TclDefaultBgErrorHandlerObjCmd(), TclEvalEx(), TclEvalObjvInternal(), TclExecuteByteCode(), TclGlob(), TclObjInterpProcCore(), TclRegAbout(), TclSubstTokens(), and TclTransferResult().
Definition at line 1429 of file tclResult.c.
References Interp::errorCode, Interp::errorInfo, Interp::errorLine, KEY_CODE, KEY_ERRORCODE, KEY_ERRORINFO, KEY_ERRORLINE, KEY_LEVEL, Interp::returnCode, Interp::returnLevel, Interp::returnOpts, Tcl_AddObjErrorInfo(), Tcl_DictObjPut(), Tcl_DuplicateObj(), TCL_ERROR, Tcl_NewIntObj(), Tcl_NewObj(), and TCL_RETURN.
Referenced by Tcl_CatchObjCmd(), Tcl_Main(), TclBackgroundException(), TclCompileSyntaxError(), TclExecuteByteCode(), and TclTransferResult().
CONST char* Tcl_GetStringResult |
( |
register Tcl_Interp * |
interp |
) |
|
void Tcl_ResetResult |
( |
register Tcl_Interp * |
interp |
) |
|
Definition at line 120 of file tclResult.c.
References ERR_ALREADY_LOGGED, Interp::errorCode, Interp::errorInfo, Interp::flags, iPtr, Interp::returnCode, Interp::returnLevel, Interp::returnOpts, Tcl_DecrRefCount, Tcl_DiscardInterpState(), Tcl_IncrRefCount, and Tcl_SetObjResult().
Referenced by TclCheckExecutionTraces(), TclCheckInterpTraces(), and TclDefaultBgErrorHandlerObjCmd().
Definition at line 292 of file tclResult.c.
References Interp::appendAvl, Interp::appendResult, Interp::appendUsed, ckfree, Interp::freeProc, iPtr, Interp::objResultPtr, Interp::result, Interp::resultSpace, Tcl_DecrRefCount, and Tcl_ResetResult().
Definition at line 73 of file tclResult.c.
References ckalloc, ERR_ALREADY_LOGGED, Interp::errorCode, Interp::errorInfo, Interp::flags, iPtr, Interp::returnCode, Interp::returnLevel, Interp::returnOpts, Tcl_GetObjResult(), and Tcl_IncrRefCount.
Referenced by TclCallVarTraces(), TclCheckExecutionTraces(), TclCheckInterpTraces(), and TclDefaultBgErrorHandlerObjCmd().
void Tcl_SetErrorCode |
( |
Tcl_Interp * |
interp, |
|
|
|
... | |
|
) |
| | |
Definition at line 1036 of file tclResult.c.
References Tcl_SetErrorCodeVA().
Referenced by Tcl_AddObjErrorInfo(), Tcl_FindEnsemble(), Tcl_FindNamespace(), Tcl_ForgetImport(), Tcl_GetAlias(), Tcl_GetAliasObj(), Tcl_GetChannel(), Tcl_GetIntFromObj(), Tcl_GetLongFromObj(), Tcl_GetWideIntFromObj(), Tcl_Import(), Tcl_InitBignumFromDouble(), Tcl_InterpObjCmd(), Tcl_PkgPresentEx(), Tcl_PosixError(), TclChanPostEventObjCmd(), TclCleanupChildren(), TclExecuteByteCode(), TclExprFloatError(), TclGetNamespaceFromObj(), TclInterpReady(), TclLookupArrayElement(), TclProcessReturn(), TclRegError(), and TclTraceDictPath().
void Tcl_SetErrorCodeVA |
( |
Tcl_Interp * |
interp, |
|
|
va_list |
argList | |
|
) |
| | |
void Tcl_SetResult |
( |
Tcl_Interp * |
interp, |
|
|
register char * |
result, |
|
|
Tcl_FreeProc * |
freeProc | |
|
) |
| | |
int TclMergeReturnOptions |
( |
Tcl_Interp * |
interp, |
|
|
int |
objc, |
|
|
Tcl_Obj *CONST |
objv[], |
|
|
Tcl_Obj ** |
optionsPtrPtr, |
|
|
int * |
codePtr, |
|
|
int * |
levelPtr | |
|
) |
| | |
Definition at line 1268 of file tclResult.c.
References CONST, KEY_CODE, KEY_LEVEL, KEY_OPTIONS, Tcl_AppendResult(), Tcl_DecrRefCount, Tcl_DictObjFirst(), Tcl_DictObjGet(), Tcl_DictObjNext(), Tcl_DictObjPut(), Tcl_DictObjRemove(), TCL_ERROR, TCL_EXACT, Tcl_GetIndexFromObj(), Tcl_NewObj(), TCL_OK, Tcl_ResetResult(), TCL_RETURN, TclGetIntFromObj, TclGetString, and TclGetStringFromObj.
int TclProcessReturn |
( |
Tcl_Interp * |
interp, |
|
|
int |
code, |
|
|
int |
level, |
|
|
Tcl_Obj * |
returnOpts | |
|
) |
| | |
Definition at line 1188 of file tclResult.c.
References ERR_ALREADY_LOGGED, ERR_LEGACY_COPY, Interp::errorInfo, Interp::errorLine, Interp::flags, KEY_ERRORCODE, KEY_ERRORINFO, KEY_ERRORLINE, Interp::returnCode, Interp::returnLevel, Interp::returnOpts, Tcl_DecrRefCount, Tcl_DictObjGet(), TCL_ERROR, Tcl_IncrRefCount, TCL_RETURN, Tcl_SetErrorCode(), Tcl_SetObjErrorCode(), TclGetIntFromObj, and TclGetStringFromObj.
Referenced by Tcl_ReturnObjCmd(), Tcl_SetReturnOptions(), and TclExecuteByteCode().
Generated on Wed Mar 12 12:18:33 2008 by
1.5.1
|