tclNamesp.c File Reference

#include "tclInt.h"

Go to the source code of this file.

Data Structures

struct  ThreadSpecificData
struct  ResolvedNsName
struct  EnsembleConfig

Defines

#define ENS_DEAD   0x1
#define INIT_EXPORT_PATTERNS   5

Functions

void TclInitNamespaceSubsystem (void)
Tcl_NamespaceTcl_GetCurrentNamespace (register Tcl_Interp *interp)
Tcl_NamespaceTcl_GetGlobalNamespace (register Tcl_Interp *interp)
int Tcl_PushCallFrame (Tcl_Interp *interp, Tcl_CallFrame *callFramePtr, Tcl_Namespace *namespacePtr, int isProcCallFrame)
void Tcl_PopCallFrame (Tcl_Interp *interp)
int TclPushStackFrame (Tcl_Interp *interp, Tcl_CallFrame **framePtrPtr, Tcl_Namespace *namespacePtr, int isProcCallFrame)
void TclPopStackFrame (Tcl_Interp *interp)
Tcl_NamespaceTcl_CreateNamespace (Tcl_Interp *interp, const char *name, ClientData clientData, Tcl_NamespaceDeleteProc *deleteProc)
void Tcl_DeleteNamespace (Tcl_Namespace *namespacePtr)
void TclTeardownNamespace (register Namespace *nsPtr)
int Tcl_Export (Tcl_Interp *interp, Tcl_Namespace *namespacePtr, const char *pattern, int resetListFirst)
int Tcl_AppendExportList (Tcl_Interp *interp, Tcl_Namespace *namespacePtr, Tcl_Obj *objPtr)
int Tcl_Import (Tcl_Interp *interp, Tcl_Namespace *namespacePtr, const char *pattern, int allowOverwrite)
int Tcl_ForgetImport (Tcl_Interp *interp, Tcl_Namespace *namespacePtr, const char *pattern)
Tcl_Command TclGetOriginalCommand (Tcl_Command command)
int TclGetNamespaceForQualName (Tcl_Interp *interp, const char *qualName, Namespace *cxtNsPtr, int flags, Namespace **nsPtrPtr, Namespace **altNsPtrPtr, Namespace **actualCxtPtrPtr, const char **simpleNamePtr)
Tcl_NamespaceTcl_FindNamespace (Tcl_Interp *interp, const char *name, Tcl_Namespace *contextNsPtr, register int flags)
Tcl_Command Tcl_FindCommand (Tcl_Interp *interp, const char *name, Tcl_Namespace *contextNsPtr, int flags)
void TclResetShadowedCmdRefs (Tcl_Interp *interp, Command *newCmdPtr)
int TclGetNamespaceFromObj (Tcl_Interp *interp, Tcl_Obj *objPtr, Tcl_Namespace **nsPtrPtr)
int Tcl_NamespaceObjCmd (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
void TclSetNsPath (Namespace *nsPtr, int pathLength, Tcl_Namespace *pathAry[])
void TclInvalidateNsPath (Namespace *nsPtr)
Tcl_ObjTcl_GetNamespaceUnknownHandler (Tcl_Interp *interp, Tcl_Namespace *nsPtr)
int Tcl_SetNamespaceUnknownHandler (Tcl_Interp *interp, Tcl_Namespace *nsPtr, Tcl_Obj *handlerPtr)
Tcl_Command Tcl_CreateEnsemble (Tcl_Interp *interp, const char *name, Tcl_Namespace *namespacePtr, int flags)
int Tcl_SetEnsembleSubcommandList (Tcl_Interp *interp, Tcl_Command token, Tcl_Obj *subcmdList)
int Tcl_SetEnsembleMappingDict (Tcl_Interp *interp, Tcl_Command token, Tcl_Obj *mapDict)
int Tcl_SetEnsembleUnknownHandler (Tcl_Interp *interp, Tcl_Command token, Tcl_Obj *unknownList)
int Tcl_SetEnsembleFlags (Tcl_Interp *interp, Tcl_Command token, int flags)
int Tcl_GetEnsembleSubcommandList (Tcl_Interp *interp, Tcl_Command token, Tcl_Obj **subcmdListPtr)
int Tcl_GetEnsembleMappingDict (Tcl_Interp *interp, Tcl_Command token, Tcl_Obj **mapDictPtr)
int Tcl_GetEnsembleUnknownHandler (Tcl_Interp *interp, Tcl_Command token, Tcl_Obj **unknownListPtr)
int Tcl_GetEnsembleFlags (Tcl_Interp *interp, Tcl_Command token, int *flagsPtr)
int Tcl_GetEnsembleNamespace (Tcl_Interp *interp, Tcl_Command token, Tcl_Namespace **namespacePtrPtr)
Tcl_Command Tcl_FindEnsemble (Tcl_Interp *interp, Tcl_Obj *cmdNameObj, int flags)
int Tcl_IsEnsemble (Tcl_Command token)
Tcl_Command TclMakeEnsemble (Tcl_Interp *interp, const char *name, const EnsembleImplMap map[])
void Tcl_LogCommandInfo (Tcl_Interp *interp, const char *script, const char *command, int length)

Variables

Tcl_ObjType tclEnsembleCmdType


Define Documentation

#define ENS_DEAD   0x1

Definition at line 144 of file tclNamesp.c.

Referenced by Tcl_SetEnsembleFlags().

#define INIT_EXPORT_PATTERNS   5


Function Documentation

int Tcl_AppendExportList ( Tcl_Interp interp,
Tcl_Namespace namespacePtr,
Tcl_Obj objPtr 
)

Tcl_Command Tcl_FindEnsemble ( Tcl_Interp interp,
Tcl_Obj cmdNameObj,
int  flags 
)

Tcl_Namespace* Tcl_FindNamespace ( Tcl_Interp interp,
const char *  name,
Tcl_Namespace contextNsPtr,
register int  flags 
)

Tcl_Namespace* Tcl_GetCurrentNamespace ( register Tcl_Interp interp  ) 

Definition at line 299 of file tclNamesp.c.

References TclGetCurrentNamespace.

int Tcl_GetEnsembleFlags ( Tcl_Interp interp,
Tcl_Command  token,
int *  flagsPtr 
)

int Tcl_GetEnsembleMappingDict ( Tcl_Interp interp,
Tcl_Command  token,
Tcl_Obj **  mapDictPtr 
)

int Tcl_GetEnsembleNamespace ( Tcl_Interp interp,
Tcl_Command  token,
Tcl_Namespace **  namespacePtrPtr 
)

int Tcl_GetEnsembleSubcommandList ( Tcl_Interp interp,
Tcl_Command  token,
Tcl_Obj **  subcmdListPtr 
)

int Tcl_GetEnsembleUnknownHandler ( Tcl_Interp interp,
Tcl_Command  token,
Tcl_Obj **  unknownListPtr 
)

Tcl_Namespace* Tcl_GetGlobalNamespace ( register Tcl_Interp interp  ) 

Definition at line 323 of file tclNamesp.c.

References TclGetGlobalNamespace.

Tcl_Obj* Tcl_GetNamespaceUnknownHandler ( Tcl_Interp interp,
Tcl_Namespace nsPtr 
)

int Tcl_IsEnsemble ( Tcl_Command  token  ) 

Definition at line 5883 of file tclNamesp.c.

References Command::objProc, and TclGetOriginalCommand().

int Tcl_NamespaceObjCmd ( ClientData  clientData,
Tcl_Interp interp,
int  objc,
Tcl_Obj *const   objv[] 
)

Definition at line 2767 of file tclNamesp.c.

References TCL_ERROR, Tcl_GetIndexFromObj(), TCL_OK, and Tcl_WrongNumArgs().

int Tcl_SetNamespaceUnknownHandler ( Tcl_Interp interp,
Tcl_Namespace nsPtr,
Tcl_Obj handlerPtr 
)

int TclGetNamespaceFromObj ( Tcl_Interp interp,
Tcl_Obj objPtr,
Tcl_Namespace **  nsPtrPtr 
)

Tcl_Command TclGetOriginalCommand ( Tcl_Command  command  ) 

void TclInitNamespaceSubsystem ( void   ) 

Definition at line 275 of file tclNamesp.c.

Referenced by TclInitSubsystems().

void TclPopStackFrame ( Tcl_Interp interp  ) 

int TclPushStackFrame ( Tcl_Interp interp,
Tcl_CallFrame **  framePtrPtr,
Tcl_Namespace namespacePtr,
int  isProcCallFrame 
)

Definition at line 516 of file tclNamesp.c.

References Tcl_PushCallFrame(), and TclStackAlloc().

Referenced by TclGetNamespaceForQualName(), and TclObjInvokeNamespace().


Variable Documentation

Initial value:

 {
    "ensembleCommand",          
    FreeEnsembleCmdRep,         
    DupEnsembleCmdRep,          
    StringOfEnsembleCmdRep,     
    NULL                        
}

Definition at line 249 of file tclNamesp.c.



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