tclInt.h File Reference

#include "tcl.h"
#include <stdio.h>
#include <ctype.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include "tclIntDecls.h"

Include dependency graph for tclInt.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Tcl_ResolvedVarInfo
struct  Tcl_ResolverInfo
struct  Namespace
struct  VarTrace
struct  CommandTrace
struct  ActiveCommandTrace
struct  ActiveVarTrace
struct  ArraySearch
struct  Var
struct  CompiledLocal
struct  Proc
struct  Trace
struct  ActiveInterpTrace
struct  AssocData
struct  CallFrame
struct  MathFunc
struct  ExecEnv
struct  LiteralEntry
struct  LiteralTable
struct  ImportRef
struct  ImportedCmdData
struct  Command
struct  ResolverScheme
struct  Interp
struct  List
struct  TclFileAttrProcs

Defines

#define TCL_STORAGE_CLASS   DLLIMPORT
#define NS_DYING   0x01
#define NS_DEAD   0x02
#define CREATE_NS_IF_UNKNOWN   0x800
#define VAR_SCALAR   0x1
#define VAR_ARRAY   0x2
#define VAR_LINK   0x4
#define VAR_UNDEFINED   0x8
#define VAR_IN_HASHTABLE   0x10
#define VAR_TRACE_ACTIVE   0x20
#define VAR_ARRAY_ELEMENT   0x40
#define VAR_NAMESPACE_VAR   0x80
#define VAR_ARGUMENT   0x100
#define VAR_TEMPORARY   0x200
#define VAR_RESOLVED   0x400
#define TclSetVarScalar(varPtr)   (varPtr)->flags = ((varPtr)->flags & ~(VAR_ARRAY|VAR_LINK)) | VAR_SCALAR
#define TclSetVarArray(varPtr)   (varPtr)->flags = ((varPtr)->flags & ~(VAR_SCALAR|VAR_LINK)) | VAR_ARRAY
#define TclSetVarLink(varPtr)   (varPtr)->flags = ((varPtr)->flags & ~(VAR_SCALAR|VAR_ARRAY)) | VAR_LINK
#define TclSetVarArrayElement(varPtr)   (varPtr)->flags = ((varPtr)->flags & ~VAR_ARRAY) | VAR_ARRAY_ELEMENT
#define TclSetVarUndefined(varPtr)   (varPtr)->flags |= VAR_UNDEFINED
#define TclClearVarUndefined(varPtr)   (varPtr)->flags &= ~VAR_UNDEFINED
#define TclIsVarScalar(varPtr)   ((varPtr)->flags & VAR_SCALAR)
#define TclIsVarLink(varPtr)   ((varPtr)->flags & VAR_LINK)
#define TclIsVarArray(varPtr)   ((varPtr)->flags & VAR_ARRAY)
#define TclIsVarUndefined(varPtr)   ((varPtr)->flags & VAR_UNDEFINED)
#define TclIsVarArrayElement(varPtr)   ((varPtr)->flags & VAR_ARRAY_ELEMENT)
#define TclIsVarTemporary(varPtr)   ((varPtr)->flags & VAR_TEMPORARY)
#define TclIsVarArgument(varPtr)   ((varPtr)->flags & VAR_ARGUMENT)
#define TclIsVarResolved(varPtr)   ((varPtr)->flags & VAR_RESOLVED)
#define MAX_MATH_ARGS   5
#define TCL_TSD_INIT(keyPtr)   (ThreadSpecificData *)Tcl_GetThreadData((keyPtr), sizeof(ThreadSpecificData))
#define TCL_OUT_LINE_COMPILE   (TCL_CONTINUE + 1)
#define CMD_IS_DELETED   0x1
#define CMD_TRACE_ACTIVE   0x2
#define CMD_HAS_EXEC_TRACES   0x4
#define TCL_BRACKET_TERM   1
#define TCL_ALLOW_EXCEPTIONS   4
#define DELETED   1
#define ERR_IN_PROGRESS   2
#define ERR_ALREADY_LOGGED   4
#define ERROR_CODE_SET   8
#define EXPR_INITIALIZED   0x10
#define DONT_COMPILE_CMDS_INLINE   0x20
#define RAND_SEED_INITIALIZED   0x40
#define SAFE_INTERP   0x80
#define USE_EVAL_DIRECT   0x100
#define INTERP_TRACE_IN_PROGRESS   0x200
#define MAX_NESTING_DEPTH   1000
#define UCHAR(c)   ((unsigned char) (c))
#define TCL_ALIGN(x)   (((int)(x) + 7) & ~7)
#define TCL_INVOKE_HIDDEN   (1<<0)
#define TCL_INVOKE_NO_UNKNOWN   (1<<1)
#define TCL_INVOKE_NO_TRACEBACK   (1<<2)
#define TCL_GLOBMODE_NO_COMPLAIN   1
#define TCL_GLOBMODE_JOIN   2
#define TCL_GLOBMODE_DIR   4
#define TCL_GLOBMODE_TAILS   8
#define TclIncrObjsAllocated()
#define TclIncrObjsFreed()
#define TclNewObj(objPtr)
#define TclDecrRefCount(objPtr)
#define TclAllocObjStorage(objPtr)
#define TclFreeObjStorage(objPtr)
#define TclInitStringRep(objPtr, bytePtr, len)
#define TclGetString(objPtr)   ((objPtr)->bytes? (objPtr)->bytes : Tcl_GetString((objPtr)))
#define TclGetWide(resultVar, objPtr)   (resultVar) = (objPtr)->internalRep.wideValue
#define TclGetLongFromWide(resultVar, objPtr)   (resultVar) = Tcl_WideAsLong((objPtr)->internalRep.wideValue)
#define TclUtfToUniChar(str, chPtr)
#define TclUniCharNcmp   Tcl_UniCharNcmp
#define TCL_STORAGE_CLASS   DLLIMPORT

Typedefs

typedef Tcl_ResolvedVarInfovinfoPtr
typedef CONST84 char * name
typedef CONST84 char int length
typedef CONST84 char int Tcl_Namespacecontext
typedef CONST84 char int Tcl_Namespace
Tcl_ResolvedVarInfo ** 
rPtr
typedef CONST84 char * name
typedef CONST84 char Tcl_Namespacecontext
typedef CONST84 char Tcl_Namespace
int 
flags
typedef CONST84 char Tcl_Namespace
int Tcl_Var * 
rPtr
typedef CONST84 char * name
typedef CONST84 char Tcl_Namespacecontext
typedef CONST84 char Tcl_Namespace
int 
flags
typedef CONST84 char Tcl_Namespace
int Tcl_Command
rPtr
typedef VOID ** TclHandle
typedef Tcl_ParseparsePtr
typedef Tcl_Parse struct CompileEnv * compEnvPtr
typedef CompileEnv * compEnvPtr
typedef CompileEnv ClientData clientData
typedef int objIndex
typedef int Tcl_ObjfileName
typedef int Tcl_Obj Tcl_Obj ** attrObjPtrPtr
typedef int objIndex
typedef int Tcl_ObjfileName
typedef int Tcl_Obj Tcl_ObjattrObjPtr
typedef TclFile_ * TclFile
typedef TclpTime_t_ * TclpTime_t
typedef stat * buf
typedef int mode
typedef CONST char * fileName
typedef CONST char CONST char * modeString
typedef CONST char CONST char
int 
permissions
typedef Tcl_CmdProc * TclCmdProcType
typedef Tcl_ObjCmdProc * TclObjCmdProcType

Enumerations

enum  TclPlatformType { TCL_PLATFORM_UNIX, TCL_PLATFORM_MAC, TCL_PLATFORM_WINDOWS }
enum  TclEolTranslation { TCL_TRANSLATE_AUTO, TCL_TRANSLATE_CR, TCL_TRANSLATE_LF, TCL_TRANSLATE_CRLF }

Functions

typedef Tcl_Var (Tcl_ResolveRuntimeVarProc) _ANSI_ARGS_((Tcl_Interp *interp
typedef void (Tcl_ResolveVarDeleteProc) _ANSI_ARGS_((struct Tcl_ResolvedVarInfo *vinfoPtr))
typedef int (Tcl_ResolveCompiledVarProc) _ANSI_ARGS_((Tcl_Interp *interp
typedef int (Tcl_ResolveVarProc) _ANSI_ARGS_((Tcl_Interp *interp
typedef int (Tcl_ResolveCmdProc) _ANSI_ARGS_((Tcl_Interp *interp
EXTERN VOID *TclThreadDataKeyGet _ANSI_ARGS_ ((Tcl_ThreadDataKey *keyPtr))
EXTERN void TclThreadDataKeySet _ANSI_ARGS_ ((Tcl_ThreadDataKey *keyPtr, VOID *data))
typedef int (CompileProc) _ANSI_ARGS_((Tcl_Interp *interp
typedef int (CompileHookProc) _ANSI_ARGS_((Tcl_Interp *interp
typedef int (TclGetFileAttrProc) _ANSI_ARGS_((Tcl_Interp *interp
typedef int (TclSetFileAttrProc) _ANSI_ARGS_((Tcl_Interp *interp
typedef int (TclStatProc_) _ANSI_ARGS_((CONST char *path
typedef int (TclAccessProc_) _ANSI_ARGS_((CONST char *path
typedef Tcl_Channel (TclOpenFileChannelProc_) _ANSI_ARGS_((Tcl_Interp *interp
EXTERN int TclArraySet _ANSI_ARGS_ ((Tcl_Interp *interp, Tcl_Obj *arrayNameObj, Tcl_Obj *arrayElemObj))
EXTERN int TclCheckBadOctal _ANSI_ARGS_ ((Tcl_Interp *interp, CONST char *value))
EXTERN void TclExpandTokenArray _ANSI_ARGS_ ((Tcl_Parse *parsePtr))
EXTERN int TclFileAttrsCmd _ANSI_ARGS_ ((Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]))
EXTERN void TclFinalizeAllocSubsystem _ANSI_ARGS_ ((void))
EXTERN void TclFindEncodings _ANSI_ARGS_ ((CONST char *argv0))
EXTERN int TclGlob _ANSI_ARGS_ ((Tcl_Interp *interp, char *pattern, Tcl_Obj *unquotedPrefix, int globFlags, Tcl_GlobTypeData *types))
EXTERN int TclIsLocalScalar _ANSI_ARGS_ ((CONST char *src, int len))
EXTERN int TclJoinThread _ANSI_ARGS_ ((Tcl_ThreadId id, int *result))
EXTERN Tcl_Obj *TclLindexList _ANSI_ARGS_ ((Tcl_Interp *interp, Tcl_Obj *listPtr, Tcl_Obj *argPtr))
EXTERN Tcl_Obj *TclLindexFlat _ANSI_ARGS_ ((Tcl_Interp *interp, Tcl_Obj *listPtr, int indexCount, Tcl_Obj *CONST indexArray[]))
EXTERN Tcl_Obj *TclLsetList _ANSI_ARGS_ ((Tcl_Interp *interp, Tcl_Obj *listPtr, Tcl_Obj *indexPtr, Tcl_Obj *valuePtr))
EXTERN Tcl_Obj *TclLsetFlat _ANSI_ARGS_ ((Tcl_Interp *interp, Tcl_Obj *listPtr, int indexCount, Tcl_Obj *CONST indexArray[], Tcl_Obj *valuePtr))
EXTERN int TclParseBackslash _ANSI_ARGS_ ((CONST char *src, int numBytes, int *readPtr, char *dst))
EXTERN int TclParseHex _ANSI_ARGS_ ((CONST char *src, int numBytes, Tcl_UniChar *resultPtr))
EXTERN int TclParseInteger _ANSI_ARGS_ ((CONST char *string, int numBytes))
EXTERN int TclParseWhiteSpace _ANSI_ARGS_ ((CONST char *src, int numBytes, Tcl_Parse *parsePtr, char *typePtr))
EXTERN int TclpObjAccess _ANSI_ARGS_ ((Tcl_Obj *filename, int mode))
EXTERN int TclpObjLstat _ANSI_ARGS_ ((Tcl_Obj *pathPtr, Tcl_StatBuf *buf))
EXTERN Tcl_Obj *TclNewFSPathObj _ANSI_ARGS_ ((Tcl_Obj *dirPtr, CONST char *addStrRep, int len))
EXTERN int TclpDeleteFile _ANSI_ARGS_ ((CONST char *path))
EXTERN void TclpFinalizeCondition _ANSI_ARGS_ ((Tcl_Condition *condPtr))
EXTERN void TclpFinalizeMutex _ANSI_ARGS_ ((Tcl_Mutex *mutexPtr))
EXTERN int TclpFindVariable _ANSI_ARGS_ ((CONST char *name, int *lengthPtr))
EXTERN int TclpLoadFile _ANSI_ARGS_ ((Tcl_Interp *interp, Tcl_Obj *pathPtr, CONST char *sym1, CONST char *sym2, Tcl_PackageInitProc **proc1Ptr, Tcl_PackageInitProc **proc2Ptr, ClientData *clientDataPtr, Tcl_FSUnloadFileProc **unloadProcPtr))
EXTERN int TclpMatchFiles _ANSI_ARGS_ ((Tcl_Interp *interp, char *separators, Tcl_DString *dirPtr, char *pattern, char *tail))
EXTERN int TclpObjNormalizePath _ANSI_ARGS_ ((Tcl_Interp *interp, Tcl_Obj *pathPtr, int nextCheckpoint))
EXTERN int TclpObjCreateDirectory _ANSI_ARGS_ ((Tcl_Obj *pathPtr))
EXTERN void TclpNativeJoinPath _ANSI_ARGS_ ((Tcl_Obj *prefix, char *joining))
EXTERN Tcl_Obj *TclpNativeSplitPath _ANSI_ARGS_ ((Tcl_Obj *pathPtr, int *lenPtr))
EXTERN Tcl_PathType TclpGetNativePathType _ANSI_ARGS_ ((Tcl_Obj *pathObjPtr, int *driveNameLengthPtr, Tcl_Obj **driveNameRef))
EXTERN int TclCrossFilesystemCopy _ANSI_ARGS_ ((Tcl_Interp *interp, Tcl_Obj *source, Tcl_Obj *target))
EXTERN int TclpObjCopyDirectory _ANSI_ARGS_ ((Tcl_Obj *srcPathPtr, Tcl_Obj *destPathPtr, Tcl_Obj **errorPtr))
EXTERN int TclpObjCopyFile _ANSI_ARGS_ ((Tcl_Obj *srcPathPtr, Tcl_Obj *destPathPtr))
EXTERN int TclpObjRemoveDirectory _ANSI_ARGS_ ((Tcl_Obj *pathPtr, int recursive, Tcl_Obj **errorPtr))
EXTERN int TclpMatchInDirectory _ANSI_ARGS_ ((Tcl_Interp *interp, Tcl_Obj *resultPtr, Tcl_Obj *pathPtr, CONST char *pattern, Tcl_GlobTypeData *types))
EXTERN Tcl_Obj *TclpObjGetCwd _ANSI_ARGS_ ((Tcl_Interp *interp))
EXTERN Tcl_Obj *TclpObjLink _ANSI_ARGS_ ((Tcl_Obj *pathPtr, Tcl_Obj *toPtr, int linkType))
EXTERN Tcl_Obj *TclFileDirname _ANSI_ARGS_ ((Tcl_Interp *interp, Tcl_Obj *pathPtr))
EXTERN Tcl_Channel TclpOpenFileChannel _ANSI_ARGS_ ((Tcl_Interp *interp, Tcl_Obj *pathPtr, int mode, int permissions))
EXTERN void TclpCutFileChannel _ANSI_ARGS_ ((Tcl_Channel chan))
EXTERN void TclpPanic _ANSI_ARGS_ (TCL_VARARGS(CONST char *, format))
EXTERN char *TclpReadlink _ANSI_ARGS_ ((CONST char *fileName, Tcl_DString *linkPtr))
EXTERN void TclpReleaseFile _ANSI_ARGS_ ((TclFile file))
EXTERN void TclpUnloadFile _ANSI_ARGS_ ((Tcl_LoadHandle loadHandle))
EXTERN void TclpThreadExit _ANSI_ARGS_ ((int status))
EXTERN void TclRememberCondition _ANSI_ARGS_ ((Tcl_Condition *mutex))
EXTERN void TclRememberDataKey _ANSI_ARGS_ ((Tcl_ThreadDataKey *mutex))
EXTERN VOID TclRememberJoinableThread _ANSI_ARGS_ ((Tcl_ThreadId id))
EXTERN void TclRememberMutex _ANSI_ARGS_ ((Tcl_Mutex *mutex))
EXTERN VOID TclSignalExitThread _ANSI_ARGS_ ((Tcl_ThreadId id, int result))
EXTERN void TclTransferResult _ANSI_ARGS_ ((Tcl_Interp *sourceInterp, int result, Tcl_Interp *targetInterp))
EXTERN Tcl_Obj *TclpNativeToNormalized _ANSI_ARGS_ ((ClientData clientData))
EXTERN Tcl_Obj *TclpFilesystemPathType _ANSI_ARGS_ ((Tcl_Obj *pathObjPtr))
EXTERN Tcl_PackageInitProc
*TclpFindSymbol 
_ANSI_ARGS_ ((Tcl_Interp *interp, Tcl_LoadHandle loadHandle, CONST char *symbol))
EXTERN int TclpDlopen _ANSI_ARGS_ ((Tcl_Interp *interp, Tcl_Obj *pathPtr, Tcl_LoadHandle *loadHandle, Tcl_FSUnloadFileProc **unloadProcPtr))
EXTERN int TclpUtime _ANSI_ARGS_ ((Tcl_Obj *pathPtr, struct utimbuf *tval))
EXTERN int Tcl_AfterObjCmd _ANSI_ARGS_ ((ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]))
EXTERN int Tcl_FcopyObjCmd _ANSI_ARGS_ ((ClientData dummy, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]))
EXTERN int Tcl_InterpObjCmd _ANSI_ARGS_ ((ClientData clientData, Tcl_Interp *interp, int argc, Tcl_Obj *CONST objv[]))
EXTERN int TclCompileAppendCmd _ANSI_ARGS_ ((Tcl_Interp *interp, Tcl_Parse *parsePtr, struct CompileEnv *envPtr))
EXTERN Var *TclLookupArrayElement _ANSI_ARGS_ ((Tcl_Interp *interp, CONST char *arrayName, CONST char *elName, CONST int flags, CONST char *msg, CONST int createPart1, CONST int createPart2, Var *arrayPtr))
EXTERN Var *TclObjLookupVar _ANSI_ARGS_ ((Tcl_Interp *interp, Tcl_Obj *part1Ptr, CONST char *part2, int flags, CONST char *msg, CONST int createPart1, CONST int createPart2, Var **arrayPtrPtr))
EXTERN Tcl_Obj *TclPtrGetVar _ANSI_ARGS_ ((Tcl_Interp *interp, Var *varPtr, Var *arrayPtr, CONST char *part1, CONST char *part2, CONST int flags))
EXTERN Tcl_Obj *TclPtrSetVar _ANSI_ARGS_ ((Tcl_Interp *interp, Var *varPtr, Var *arrayPtr, CONST char *part1, CONST char *part2, Tcl_Obj *newValuePtr, CONST int flags))
EXTERN Tcl_Obj *TclPtrIncrVar _ANSI_ARGS_ ((Tcl_Interp *interp, Var *varPtr, Var *arrayPtr, CONST char *part1, CONST char *part2, CONST long i, CONST int flags))

Variables

Tcl_Time tclBlockTime
int tclBlockTimeSet
char * tclExecutableName
char * tclNativeExecutableName
char * tclDefaultEncodingDir
Tcl_ChannelType tclFileChannelType
char * tclMemDumpFileName
TclPlatformType tclPlatform
Tcl_NotifierProcs tclOriginalNotifier
Tcl_ObjType tclBooleanType
Tcl_ObjType tclByteArrayType
Tcl_ObjType tclByteCodeType
Tcl_ObjType tclDoubleType
Tcl_ObjType tclEndOffsetType
Tcl_ObjType tclIntType
Tcl_ObjType tclListType
Tcl_ObjType tclProcBodyType
Tcl_ObjType tclStringType
Tcl_ObjType tclArraySearchType
Tcl_ObjType tclIndexType
Tcl_ObjType tclNsNameType
Tcl_ObjType tclWideIntType
Tcl_HashKeyType tclArrayHashKeyType
Tcl_HashKeyType tclOneWordHashKeyType
Tcl_HashKeyType tclStringHashKeyType
Tcl_HashKeyType tclObjHashKeyType
Tcl_ObjtclFreeObjList
char * tclEmptyStringRep
char tclEmptyString


Define Documentation

#define TCL_STORAGE_CLASS   DLLIMPORT
 

Definition at line 2269 of file tclInt.h.

#define NS_DYING   0x01
 

Definition at line 236 of file tclInt.h.

#define NS_DEAD   0x02
 

Definition at line 237 of file tclInt.h.

#define CREATE_NS_IF_UNKNOWN   0x800
 

Definition at line 248 of file tclInt.h.

#define VAR_SCALAR   0x1
 

Definition at line 479 of file tclInt.h.

#define VAR_ARRAY   0x2
 

Definition at line 480 of file tclInt.h.

#define VAR_LINK   0x4
 

Definition at line 481 of file tclInt.h.

#define VAR_UNDEFINED   0x8
 

Definition at line 482 of file tclInt.h.

#define VAR_IN_HASHTABLE   0x10
 

Definition at line 483 of file tclInt.h.

#define VAR_TRACE_ACTIVE   0x20
 

Definition at line 484 of file tclInt.h.

#define VAR_ARRAY_ELEMENT   0x40
 

Definition at line 485 of file tclInt.h.

#define VAR_NAMESPACE_VAR   0x80
 

Definition at line 486 of file tclInt.h.

#define VAR_ARGUMENT   0x100
 

Definition at line 488 of file tclInt.h.

#define VAR_TEMPORARY   0x200
 

Definition at line 489 of file tclInt.h.

#define VAR_RESOLVED   0x400
 

Definition at line 490 of file tclInt.h.

#define TclSetVarScalar varPtr   )     (varPtr)->flags = ((varPtr)->flags & ~(VAR_ARRAY|VAR_LINK)) | VAR_SCALAR
 

Definition at line 504 of file tclInt.h.

#define TclSetVarArray varPtr   )     (varPtr)->flags = ((varPtr)->flags & ~(VAR_SCALAR|VAR_LINK)) | VAR_ARRAY
 

Definition at line 507 of file tclInt.h.

#define TclSetVarLink varPtr   )     (varPtr)->flags = ((varPtr)->flags & ~(VAR_SCALAR|VAR_ARRAY)) | VAR_LINK
 

Definition at line 510 of file tclInt.h.

#define TclSetVarArrayElement varPtr   )     (varPtr)->flags = ((varPtr)->flags & ~VAR_ARRAY) | VAR_ARRAY_ELEMENT
 

Definition at line 513 of file tclInt.h.

#define TclSetVarUndefined varPtr   )     (varPtr)->flags |= VAR_UNDEFINED
 

Definition at line 516 of file tclInt.h.

#define TclClearVarUndefined varPtr   )     (varPtr)->flags &= ~VAR_UNDEFINED
 

Definition at line 519 of file tclInt.h.

#define TclIsVarScalar varPtr   )     ((varPtr)->flags & VAR_SCALAR)
 

Definition at line 536 of file tclInt.h.

#define TclIsVarLink varPtr   )     ((varPtr)->flags & VAR_LINK)
 

Definition at line 539 of file tclInt.h.

#define TclIsVarArray varPtr   )     ((varPtr)->flags & VAR_ARRAY)
 

Definition at line 542 of file tclInt.h.

#define TclIsVarUndefined varPtr   )     ((varPtr)->flags & VAR_UNDEFINED)
 

Definition at line 545 of file tclInt.h.

#define TclIsVarArrayElement varPtr   )     ((varPtr)->flags & VAR_ARRAY_ELEMENT)
 

Definition at line 548 of file tclInt.h.

#define TclIsVarTemporary varPtr   )     ((varPtr)->flags & VAR_TEMPORARY)
 

Definition at line 551 of file tclInt.h.

#define TclIsVarArgument varPtr   )     ((varPtr)->flags & VAR_ARGUMENT)
 

Definition at line 554 of file tclInt.h.

#define TclIsVarResolved varPtr   )     ((varPtr)->flags & VAR_RESOLVED)
 

Definition at line 557 of file tclInt.h.

#define MAX_MATH_ARGS   5
 

Definition at line 783 of file tclInt.h.

#define TCL_TSD_INIT keyPtr   )     (ThreadSpecificData *)Tcl_GetThreadData((keyPtr), sizeof(ThreadSpecificData))
 

Definition at line 814 of file tclInt.h.

#define TCL_OUT_LINE_COMPILE   (TCL_CONTINUE + 1)
 

Definition at line 850 of file tclInt.h.

#define CMD_IS_DELETED   0x1
 

Definition at line 1082 of file tclInt.h.

#define CMD_TRACE_ACTIVE   0x2
 

Definition at line 1083 of file tclInt.h.

#define CMD_HAS_EXEC_TRACES   0x4
 

Definition at line 1084 of file tclInt.h.

#define TCL_BRACKET_TERM   1
 

Definition at line 1330 of file tclInt.h.

#define TCL_ALLOW_EXCEPTIONS   4
 

Definition at line 1331 of file tclInt.h.

#define DELETED   1
 

Definition at line 1372 of file tclInt.h.

#define ERR_IN_PROGRESS   2
 

Definition at line 1373 of file tclInt.h.

#define ERR_ALREADY_LOGGED   4
 

Definition at line 1374 of file tclInt.h.

#define ERROR_CODE_SET   8
 

Definition at line 1375 of file tclInt.h.

#define EXPR_INITIALIZED   0x10
 

Definition at line 1376 of file tclInt.h.

#define DONT_COMPILE_CMDS_INLINE   0x20
 

Definition at line 1377 of file tclInt.h.

#define RAND_SEED_INITIALIZED   0x40
 

Definition at line 1378 of file tclInt.h.

#define SAFE_INTERP   0x80
 

Definition at line 1379 of file tclInt.h.

#define USE_EVAL_DIRECT   0x100
 

Definition at line 1380 of file tclInt.h.

#define INTERP_TRACE_IN_PROGRESS   0x200
 

Definition at line 1381 of file tclInt.h.

#define MAX_NESTING_DEPTH   1000
 

Definition at line 1388 of file tclInt.h.

#define UCHAR  )     ((unsigned char) (c))
 

Definition at line 1396 of file tclInt.h.

#define TCL_ALIGN x   )     (((int)(x) + 7) & ~7)
 

Definition at line 1410 of file tclInt.h.

#define TCL_INVOKE_HIDDEN   (1<<0)
 

Definition at line 1452 of file tclInt.h.

#define TCL_INVOKE_NO_UNKNOWN   (1<<1)
 

Definition at line 1453 of file tclInt.h.

#define TCL_INVOKE_NO_TRACEBACK   (1<<2)
 

Definition at line 1454 of file tclInt.h.

#define TCL_GLOBMODE_NO_COMPLAIN   1
 

Definition at line 1508 of file tclInt.h.

#define TCL_GLOBMODE_JOIN   2
 

Definition at line 1509 of file tclInt.h.

#define TCL_GLOBMODE_DIR   4
 

Definition at line 1510 of file tclInt.h.

#define TCL_GLOBMODE_TAILS   8
 

Definition at line 1511 of file tclInt.h.

 
#define TclIncrObjsAllocated  ) 
 

Definition at line 2066 of file tclInt.h.

 
#define TclIncrObjsFreed  ) 
 

Definition at line 2067 of file tclInt.h.

#define TclNewObj objPtr   ) 
 

Value:

TclAllocObjStorage(objPtr); \
    TclIncrObjsAllocated(); \
    (objPtr)->refCount = 0; \
    (objPtr)->bytes    = tclEmptyStringRep; \
    (objPtr)->length   = 0; \
    (objPtr)->typePtr  = NULL

Definition at line 2070 of file tclInt.h.

#define TclDecrRefCount objPtr   ) 
 

Value:

if (--(objPtr)->refCount <= 0) { \
        if (((objPtr)->typePtr != NULL) \
                && ((objPtr)->typePtr->freeIntRepProc != NULL)) { \
            (objPtr)->typePtr->freeIntRepProc(objPtr); \
        } \
        if (((objPtr)->bytes != NULL) \
                && ((objPtr)->bytes != tclEmptyStringRep)) { \
            ckfree((char *) (objPtr)->bytes); \
        } \
        TclFreeObjStorage(objPtr); \
        TclIncrObjsFreed(); \
    }

Definition at line 2078 of file tclInt.h.

#define TclAllocObjStorage objPtr   ) 
 

Value:

Tcl_MutexLock(&tclObjMutex); \
       if (tclFreeObjList == NULL) { \
           TclAllocateFreeObjects(); \
       } \
       (objPtr) = tclFreeObjList; \
       tclFreeObjList = (Tcl_Obj *) \
           tclFreeObjList->internalRep.otherValuePtr; \
       Tcl_MutexUnlock(&tclObjMutex)

Definition at line 2150 of file tclInt.h.

#define TclFreeObjStorage objPtr   ) 
 

Value:

Tcl_MutexLock(&tclObjMutex); \
       (objPtr)->internalRep.otherValuePtr = (VOID *) tclFreeObjList; \
       tclFreeObjList = (objPtr); \
       Tcl_MutexUnlock(&tclObjMutex)

Definition at line 2160 of file tclInt.h.

#define TclInitStringRep objPtr,
bytePtr,
len   ) 
 

Value:

if ((len) == 0) { \
        (objPtr)->bytes  = tclEmptyStringRep; \
        (objPtr)->length = 0; \
    } else { \
        (objPtr)->bytes = (char *) ckalloc((unsigned) ((len) + 1)); \
        memcpy((VOID *) (objPtr)->bytes, (VOID *) (bytePtr), \
                (unsigned) (len)); \
        (objPtr)->bytes[len] = '\0'; \
        (objPtr)->length = (len); \
    }

Definition at line 2182 of file tclInt.h.

#define TclGetString objPtr   )     ((objPtr)->bytes? (objPtr)->bytes : Tcl_GetString((objPtr)))
 

Definition at line 2207 of file tclInt.h.

#define TclGetWide resultVar,
objPtr   )     (resultVar) = (objPtr)->internalRep.wideValue
 

Definition at line 2224 of file tclInt.h.

#define TclGetLongFromWide resultVar,
objPtr   )     (resultVar) = Tcl_WideAsLong((objPtr)->internalRep.wideValue)
 

Definition at line 2226 of file tclInt.h.

#define TclUtfToUniChar str,
chPtr   ) 
 

Value:

((((unsigned char) *(str)) < 0xC0) ? \
            ((*(chPtr) = (Tcl_UniChar) *(str)), 1) \
            : Tcl_UtfToUniChar(str, chPtr))

Definition at line 2244 of file tclInt.h.

#define TclUniCharNcmp   Tcl_UniCharNcmp
 

Definition at line 2263 of file tclInt.h.

#define TCL_STORAGE_CLASS   DLLIMPORT
 

Definition at line 2269 of file tclInt.h.


Typedef Documentation

typedef struct Tcl_ResolvedVarInfo* vinfoPtr
 

Definition at line 74 of file tclInt.h.

typedef CONST84 char* name
 

Definition at line 94 of file tclInt.h.

typedef CONST84 char int length
 

Definition at line 94 of file tclInt.h.

typedef CONST84 char int Tcl_Namespace* context
 

Definition at line 94 of file tclInt.h.

typedef CONST84 char int Tcl_Namespace Tcl_ResolvedVarInfo** rPtr
 

Definition at line 94 of file tclInt.h.

typedef CONST84 char* name
 

Definition at line 98 of file tclInt.h.

typedef CONST84 char Tcl_Namespace* context
 

Definition at line 98 of file tclInt.h.

typedef CONST84 char Tcl_Namespace int flags
 

Definition at line 98 of file tclInt.h.

typedef CONST84 char Tcl_Namespace int Tcl_Var* rPtr
 

Definition at line 98 of file tclInt.h.

typedef CONST84 char* name
 

Definition at line 102 of file tclInt.h.

typedef CONST84 char Tcl_Namespace* context
 

Definition at line 102 of file tclInt.h.

typedef CONST84 char Tcl_Namespace int flags
 

Definition at line 102 of file tclInt.h.

typedef CONST84 char Tcl_Namespace int Tcl_Command* rPtr
 

Definition at line 102 of file tclInt.h.

typedef VOID** TclHandle
 

Definition at line 769 of file tclInt.h.

typedef Tcl_Parse* parsePtr
 

Definition at line 853 of file tclInt.h.

typedef Tcl_Parse struct CompileEnv* compEnvPtr
 

Definition at line 853 of file tclInt.h.

typedef struct CompileEnv* compEnvPtr
 

Definition at line 861 of file tclInt.h.

typedef struct CompileEnv ClientData clientData
 

Definition at line 861 of file tclInt.h.

typedef int objIndex
 

Definition at line 1481 of file tclInt.h.

typedef int Tcl_Obj* fileName
 

Definition at line 1481 of file tclInt.h.

typedef int Tcl_Obj Tcl_Obj** attrObjPtrPtr
 

Definition at line 1481 of file tclInt.h.

typedef int objIndex
 

Definition at line 1483 of file tclInt.h.

typedef int Tcl_Obj* fileName
 

Definition at line 1483 of file tclInt.h.

typedef int Tcl_Obj Tcl_Obj* attrObjPtr
 

Definition at line 1483 of file tclInt.h.

typedef struct TclFile_* TclFile
 

Definition at line 1495 of file tclInt.h.

typedef struct TclpTime_t_* TclpTime_t
 

Definition at line 1501 of file tclInt.h.

typedef struct stat* buf
 

Definition at line 1519 of file tclInt.h.

typedef int mode
 

Definition at line 1520 of file tclInt.h.

typedef CONST char* fileName
 

Definition at line 1522 of file tclInt.h.

typedef CONST char CONST char* modeString
 

Definition at line 1522 of file tclInt.h.

typedef CONST char CONST char int permissions
 

Definition at line 1522 of file tclInt.h.

typedef Tcl_CmdProc* TclCmdProcType
 

Definition at line 1532 of file tclInt.h.

typedef Tcl_ObjCmdProc* TclObjCmdProcType
 

Definition at line 1533 of file tclInt.h.


Enumeration Type Documentation

enum TclPlatformType
 

Enumerator:
TCL_PLATFORM_UNIX 
TCL_PLATFORM_MAC 
TCL_PLATFORM_WINDOWS 

Definition at line 1417 of file tclInt.h.

enum TclEolTranslation
 

Enumerator:
TCL_TRANSLATE_AUTO 
TCL_TRANSLATE_CR 
TCL_TRANSLATE_LF 
TCL_TRANSLATE_CRLF 

Definition at line 1429 of file tclInt.h.


Function Documentation

typedef Tcl_Var Tcl_ResolveRuntimeVarProc   ) 
 

typedef void Tcl_ResolveVarDeleteProc   ) 
 

typedef int Tcl_ResolveCompiledVarProc   ) 
 

typedef int Tcl_ResolveVarProc   ) 
 

typedef int Tcl_ResolveCmdProc   ) 
 

EXTERN VOID* TclThreadDataKeyGet _ANSI_ARGS_ (Tcl_ThreadDataKey *keyPtr  ) 
 

EXTERN void TclThreadDataKeySet _ANSI_ARGS_ (Tcl_ThreadDataKey *keyPtr, VOID *data  ) 
 

typedef int CompileProc   ) 
 

typedef int CompileHookProc   ) 
 

typedef int TclGetFileAttrProc   ) 
 

typedef int TclSetFileAttrProc   ) 
 

typedef int TclStatProc_   ) 
 

typedef int TclAccessProc_   ) 
 

typedef Tcl_Channel TclOpenFileChannelProc_   ) 
 

EXTERN int TclArraySet _ANSI_ARGS_ (Tcl_Interp *interp, Tcl_Obj *arrayNameObj, Tcl_Obj *arrayElemObj)   ) 
 

EXTERN int TclCheckBadOctal _ANSI_ARGS_ (Tcl_Interp *interp, CONST char *value  ) 
 

EXTERN void TclExpandTokenArray _ANSI_ARGS_ (Tcl_Parse *parsePtr  ) 
 

EXTERN int TclFileAttrsCmd _ANSI_ARGS_ (Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])   ) 
 

EXTERN void TclFinalizeAllocSubsystem _ANSI_ARGS_ (void)   ) 
 

EXTERN void TclFindEncodings _ANSI_ARGS_ (CONST char *argv0)   ) 
 

EXTERN int TclGlob _ANSI_ARGS_ (Tcl_Interp *interp, char *pattern, Tcl_Obj *unquotedPrefix, int globFlags, Tcl_GlobTypeData *types  ) 
 

EXTERN int TclIsLocalScalar _ANSI_ARGS_ (CONST char *src, int len)   ) 
 

EXTERN int TclJoinThread _ANSI_ARGS_ (Tcl_ThreadId id, int *result  ) 
 

EXTERN Tcl_Obj* TclLindexList _ANSI_ARGS_ (Tcl_Interp *interp, Tcl_Obj *listPtr, Tcl_Obj *argPtr  ) 
 

EXTERN Tcl_Obj* TclLindexFlat _ANSI_ARGS_ (Tcl_Interp *interp, Tcl_Obj *listPtr, int indexCount, Tcl_Obj *CONST indexArray[])   ) 
 

EXTERN Tcl_Obj* TclLsetList _ANSI_ARGS_ (Tcl_Interp *interp, Tcl_Obj *listPtr, Tcl_Obj *indexPtr, Tcl_Obj *valuePtr)   ) 
 

EXTERN Tcl_Obj* TclLsetFlat _ANSI_ARGS_ (Tcl_Interp *interp, Tcl_Obj *listPtr, int indexCount, Tcl_Obj *CONST indexArray[], Tcl_Obj *valuePtr)   ) 
 

EXTERN int TclParseBackslash _ANSI_ARGS_ (CONST char *src, int numBytes, int *readPtr, char *dst  ) 
 

EXTERN int TclParseHex _ANSI_ARGS_ (CONST char *src, int numBytes, Tcl_UniChar *resultPtr  ) 
 

EXTERN int TclParseInteger _ANSI_ARGS_ (CONST char *string, int numBytes)   ) 
 

EXTERN int TclParseWhiteSpace _ANSI_ARGS_ (CONST char *src, int numBytes, Tcl_Parse *parsePtr, char *typePtr  ) 
 

EXTERN int TclpObjAccess _ANSI_ARGS_ (Tcl_Obj *filename, int mode  ) 
 

EXTERN int TclpObjLstat _ANSI_ARGS_ (Tcl_Obj *pathPtr, Tcl_StatBuf *buf  ) 
 

EXTERN Tcl_Obj* TclNewFSPathObj _ANSI_ARGS_ (Tcl_Obj *dirPtr, CONST char *addStrRep, int len)   ) 
 

EXTERN int TclpDeleteFile _ANSI_ARGS_ (CONST char *path  ) 
 

EXTERN void TclpFinalizeCondition _ANSI_ARGS_ (Tcl_Condition *condPtr)   ) 
 

EXTERN void TclpFinalizeMutex _ANSI_ARGS_ (Tcl_Mutex *mutexPtr)   ) 
 

EXTERN int TclpFindVariable _ANSI_ARGS_ (CONST char *name, int *lengthPtr)   ) 
 

EXTERN int TclpLoadFile _ANSI_ARGS_ (Tcl_Interp *interp, Tcl_Obj *pathPtr, CONST char *sym1, CONST char *sym2, Tcl_PackageInitProc **proc1Ptr, Tcl_PackageInitProc **proc2Ptr, ClientData *clientDataPtr, Tcl_FSUnloadFileProc **unloadProcPtr  ) 
 

EXTERN int TclpMatchFiles _ANSI_ARGS_ (Tcl_Interp *interp, char *separators, Tcl_DString *dirPtr, char *pattern, char *tail  ) 
 

EXTERN int TclpObjNormalizePath _ANSI_ARGS_ (Tcl_Interp *interp, Tcl_Obj *pathPtr, int nextCheckpoint  ) 
 

EXTERN int TclpObjCreateDirectory _ANSI_ARGS_ (Tcl_Obj *pathPtr  ) 
 

EXTERN void TclpNativeJoinPath _ANSI_ARGS_ (Tcl_Obj *prefix, char *joining)   ) 
 

EXTERN Tcl_Obj* TclpNativeSplitPath _ANSI_ARGS_ (Tcl_Obj *pathPtr, int *lenPtr)   ) 
 

EXTERN Tcl_PathType TclpGetNativePathType _ANSI_ARGS_ (Tcl_Obj *pathObjPtr, int *driveNameLengthPtr, Tcl_Obj **driveNameRef)   ) 
 

EXTERN int TclCrossFilesystemCopy _ANSI_ARGS_ (Tcl_Interp *interp, Tcl_Obj *source, Tcl_Obj *target)   ) 
 

EXTERN int TclpObjCopyDirectory _ANSI_ARGS_ (Tcl_Obj *srcPathPtr, Tcl_Obj *destPathPtr, Tcl_Obj **errorPtr  ) 
 

EXTERN int TclpObjCopyFile _ANSI_ARGS_ (Tcl_Obj *srcPathPtr, Tcl_Obj *destPathPtr  ) 
 

EXTERN int TclpObjRemoveDirectory _ANSI_ARGS_ (Tcl_Obj *pathPtr, int recursive, Tcl_Obj **errorPtr  ) 
 

EXTERN int TclpMatchInDirectory _ANSI_ARGS_ (Tcl_Interp *interp, Tcl_Obj *resultPtr, Tcl_Obj *pathPtr, CONST char *pattern, Tcl_GlobTypeData *types  ) 
 

EXTERN Tcl_Obj* TclpObjGetCwd _ANSI_ARGS_ (Tcl_Interp *interp  ) 
 

EXTERN Tcl_Obj* TclpObjLink _ANSI_ARGS_ (Tcl_Obj *pathPtr, Tcl_Obj *toPtr, int linkType)   ) 
 

EXTERN Tcl_Obj* TclFileDirname _ANSI_ARGS_ (Tcl_Interp *interp, Tcl_Obj *pathPtr  ) 
 

EXTERN Tcl_Channel TclpOpenFileChannel _ANSI_ARGS_ (Tcl_Interp *interp, Tcl_Obj *pathPtr, int mode, int permissions  ) 
 

EXTERN void TclpCutFileChannel _ANSI_ARGS_ (Tcl_Channel chan  ) 
 

EXTERN void TclpPanic _ANSI_ARGS_ TCL_VARARGS(CONST char *, format  ) 
 

EXTERN char* TclpReadlink _ANSI_ARGS_ (CONST char *fileName, Tcl_DString *linkPtr)   ) 
 

EXTERN void TclpReleaseFile _ANSI_ARGS_ (TclFile file)   ) 
 

EXTERN void TclpUnloadFile _ANSI_ARGS_ (Tcl_LoadHandle loadHandle)   ) 
 

EXTERN void TclpThreadExit _ANSI_ARGS_ (int status  ) 
 

EXTERN void TclRememberCondition _ANSI_ARGS_ (Tcl_Condition *mutex)   ) 
 

EXTERN void TclRememberDataKey _ANSI_ARGS_ (Tcl_ThreadDataKey *mutex)   ) 
 

EXTERN VOID TclRememberJoinableThread _ANSI_ARGS_ (Tcl_ThreadId id)   ) 
 

EXTERN void TclRememberMutex _ANSI_ARGS_ (Tcl_Mutex *mutex)   ) 
 

EXTERN VOID TclSignalExitThread _ANSI_ARGS_ (Tcl_ThreadId id, int result  ) 
 

EXTERN void TclTransferResult _ANSI_ARGS_ (Tcl_Interp *sourceInterp, int result, Tcl_Interp *targetInterp)   ) 
 

EXTERN Tcl_Obj* TclpNativeToNormalized _ANSI_ARGS_ (ClientData clientData  ) 
 

EXTERN Tcl_Obj* TclpFilesystemPathType _ANSI_ARGS_ (Tcl_Obj *pathObjPtr)   ) 
 

EXTERN Tcl_PackageInitProc* TclpFindSymbol _ANSI_ARGS_ (Tcl_Interp *interp, Tcl_LoadHandle loadHandle, CONST char *symbol)   ) 
 

EXTERN int TclpDlopen _ANSI_ARGS_ (Tcl_Interp *interp, Tcl_Obj *pathPtr, Tcl_LoadHandle *loadHandle, Tcl_FSUnloadFileProc **unloadProcPtr  ) 
 

EXTERN int TclpUtime _ANSI_ARGS_ (Tcl_Obj *pathPtr, struct utimbuf *tval  ) 
 

EXTERN int Tcl_AfterObjCmd _ANSI_ARGS_ (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])   ) 
 

EXTERN int Tcl_FcopyObjCmd _ANSI_ARGS_ (ClientData dummy, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])   ) 
 

EXTERN int Tcl_InterpObjCmd _ANSI_ARGS_ (ClientData clientData, Tcl_Interp *interp, int argc, Tcl_Obj *CONST objv[])   ) 
 

EXTERN int TclCompileAppendCmd _ANSI_ARGS_ (Tcl_Interp *interp, Tcl_Parse *parsePtr, struct CompileEnv *envPtr)   ) 
 

EXTERN Var* TclLookupArrayElement _ANSI_ARGS_ (Tcl_Interp *interp, CONST char *arrayName, CONST char *elName, CONST int flags, CONST char *msg, CONST int createPart1, CONST int createPart2, Var *arrayPtr)   ) 
 

EXTERN Var* TclObjLookupVar _ANSI_ARGS_ (Tcl_Interp *interp, Tcl_Obj *part1Ptr, CONST char *part2, int flags, CONST char *msg, CONST int createPart1, CONST int createPart2, Var **arrayPtrPtr)   ) 
 

EXTERN Tcl_Obj* TclPtrGetVar _ANSI_ARGS_ (Tcl_Interp *interp, Var *varPtr, Var *arrayPtr, CONST char *part1, CONST char *part2, CONST int flags  ) 
 

EXTERN Tcl_Obj* TclPtrSetVar _ANSI_ARGS_ (Tcl_Interp *interp, Var *varPtr, Var *arrayPtr, CONST char *part1, CONST char *part2, Tcl_Obj *newValuePtr, CONST int flags  ) 
 

EXTERN Tcl_Obj* TclPtrIncrVar _ANSI_ARGS_ (Tcl_Interp *interp, Var *varPtr, Var *arrayPtr, CONST char *part1, CONST char *part2, CONST long i, CONST int flags  ) 
 


Variable Documentation

Tcl_Time tclBlockTime
 

int tclBlockTimeSet
 

char* tclExecutableName
 

char* tclNativeExecutableName
 

char* tclDefaultEncodingDir
 

Tcl_ChannelType tclFileChannelType
 

char* tclMemDumpFileName
 

TclPlatformType tclPlatform
 

Tcl_NotifierProcs tclOriginalNotifier
 

Tcl_ObjType tclBooleanType
 

Tcl_ObjType tclByteArrayType
 

Tcl_ObjType tclByteCodeType
 

Tcl_ObjType tclDoubleType
 

Tcl_ObjType tclEndOffsetType
 

Tcl_ObjType tclIntType
 

Tcl_ObjType tclListType
 

Tcl_ObjType tclProcBodyType
 

Tcl_ObjType tclStringType
 

Tcl_ObjType tclArraySearchType
 

Tcl_ObjType tclIndexType
 

Tcl_ObjType tclNsNameType
 

Tcl_ObjType tclWideIntType
 

Tcl_HashKeyType tclArrayHashKeyType
 

Tcl_HashKeyType tclOneWordHashKeyType
 

Tcl_HashKeyType tclStringHashKeyType
 

Tcl_HashKeyType tclObjHashKeyType
 

Tcl_Obj* tclFreeObjList
 

char* tclEmptyStringRep
 

char tclEmptyString
 


Generated on Mon Sep 18 01:25:01 2006 for BRL-CAD by  doxygen 1.4.6