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_ObjTcl_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_ObjTcl_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

enum returnKeys

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_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_DiscardInterpState ( Tcl_InterpState  state  ) 

void Tcl_DiscardResult ( Tcl_SavedResult statePtr  ) 

Definition at line 360 of file tclResult.c.

References ckfree, TCL_DYNAMIC, and TclDecrRefCount.

void Tcl_FreeResult ( register Tcl_Interp interp  ) 

Definition at line 854 of file tclResult.c.

References ckfree, Interp::freeProc, Interp::result, and TCL_DYNAMIC.

CONST char* Tcl_GetStringResult ( register Tcl_Interp interp  ) 

Definition at line 466 of file tclResult.c.

References Tcl_GetObjResult(), Tcl_SetResult(), TCL_VOLATILE, and TclGetString.

void Tcl_ResetResult ( register Tcl_Interp interp  ) 

void Tcl_SetErrorCodeVA ( Tcl_Interp interp,
va_list  argList 
)

void Tcl_SetObjErrorCode ( Tcl_Interp interp,
Tcl_Obj errorObjPtr 
)

void Tcl_SetObjResult ( Tcl_Interp interp,
register Tcl_Obj objPtr 
)

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 
)

void TclTransferResult ( Tcl_Interp sourceInterp,
int  result,
Tcl_Interp targetInterp 
)



Generated on Wed Mar 12 12:18:33 2008 by  doxygen 1.5.1