TechnologiesLow-level, Kernel & Legacy

Tcl

iOSmacOStvOSwatchOSvisionOS

Tcl is a Swift overlay over the embedded Tcl scripting language C interpreter library, exposing its constants and bindings on macOS. Use it to create and drive an interpreter through Tcl_Interp, work with Tcl values and objects via Tcl_Obj, Tcl_ObjType, and Tcl_Value, and manage scripting state with structures such as Tcl_Namespace, Tcl_CallFrame, Tcl_HashTable, and Tcl_DString. The overlay also surfaces lower-level facilities including regular-expression matching (Tcl_RegExpInfo, Tcl_RegExpIndices), command parsing (Tcl_Token, Tcl_Parse), channels and filesystems (Tcl_ChannelType, Tcl_Filesystem, Tcl_GlobTypeData), and the stub tables (TclStubs, TclPlatStubs, TclTomMathStubs) that bind to the C library.

Interpreter and Commands 4

The core interpreter state and command-registration structures that drive Tcl script execution.

  • St
    Tcl_Interp
    A structure that represents a Tcl interpreter instance used to evaluate scripts and hold execution state.
  • St
    Tcl_CmdInfo
    A structure that describes a registered Tcl command, including its callbacks and client data.
  • St
    Tcl_SavedResult
    A structure that preserves and later restores an interpreter's result during nested evaluation.
  • St
    Tcl_Config
    A structure that describes a configuration key-value pair embedded in a package or module.

Values and Objects 5

Reference-counted Tcl value objects and the type descriptors and numeric values that back them.

  • St
    Tcl_Obj
    A reference-counted Tcl value object that holds a string representation and a typed internal representation.
  • St
    Tcl_ObjType
    A structure that describes a Tcl object type, including its conversion and lifecycle procedures.
  • St
    Tcl_Value
    A structure that holds a numeric value passed to or returned from a Tcl math function.
  • St
    Tcl_ValueType
    An enumeration of the numeric kinds a Tcl_Value can hold, such as integer, double, or wide integer.
  • St
    mp_int
    A multiple-precision integer structure used by Tcl's arbitrary-precision arithmetic support.

Namespaces and Call Frames 2

Structures that represent scripting scope, namespaces, and the procedure call stack.

  • St
    Tcl_Namespace
    A structure that represents a Tcl namespace and its commands, variables, and child namespaces.
  • St
    Tcl_CallFrame
    A structure that represents a single frame on the Tcl procedure call stack.

Hash Tables and Dictionaries 5

The associative-storage structures used for Tcl hash tables and dictionary iteration.

  • St
    Tcl_HashTable
    A structure that implements a Tcl hash table mapping keys to entries.
  • St
    Tcl_HashEntry
    A structure that represents a single key-value entry within a Tcl hash table.
  • St
    Tcl_HashKeyType
    A structure that describes how a hash table hashes, compares, and manages its keys.
  • St
    Tcl_HashSearch
    A structure that holds the state needed to iterate over the entries of a Tcl hash table.
  • St
    Tcl_DictSearch
    A structure that holds the state needed to iterate over the entries of a Tcl dictionary.

String Buffers 1

The dynamic string buffer used to accumulate and build text efficiently.

  • St
    Tcl_DString
    A dynamic string buffer that grows automatically as text is appended.

Script Parsing 2

Structures that describe parsed command tokens and parse results.

  • St
    Tcl_Token
    A structure that describes a single lexical token produced by parsing a Tcl command.
  • St
    Tcl_Parse
    A structure that holds the results of parsing a Tcl command into its tokens.

Regular Expressions 2

Structures that report regular-expression match results and subexpression indices.

  • St
    Tcl_RegExpInfo
    A structure that reports the results of a regular-expression match, including matched ranges.
  • St
    Tcl_RegExpIndices
    A structure that holds the start and end indices of a matched regular-expression subexpression.

Channels, Filesystems, and Encodings 5

I/O channel, virtual filesystem, path, glob, and text-encoding descriptors.

  • St
    Tcl_ChannelType
    A structure that defines the behavior of a Tcl I/O channel through its driver procedures.
  • St
    Tcl_Filesystem
    A structure that defines a virtual filesystem by providing its path and file operations.
  • St
    Tcl_PathType
    An enumeration that classifies a Tcl path as absolute, relative, or volume-relative.
  • St
    Tcl_GlobTypeData
    A structure that specifies the file types and attributes used to filter a glob match.
  • St
    Tcl_EncodingType
    A structure that describes a text encoding and its conversion procedures.

Events and Notification 4

The event-loop, timing, and notifier structures that drive asynchronous Tcl processing.

  • St
    Tcl_Event
    A structure that represents an event queued for processing in the Tcl event loop.
  • St
    Tcl_QueuePosition
    An enumeration that specifies where an event is inserted into the Tcl event queue.
  • St
    Tcl_Time
    A structure that represents a point in time with seconds and microseconds for Tcl timers.
  • St
    Tcl_NotifierProcs
    A structure that holds the procedures implementing a custom Tcl event notifier.

Stub Tables 4

The function-pointer stub tables that bind the overlay to the embedded Tcl C library.

  • St
    TclStubs
    A function-pointer table that exposes the core Tcl C library API to the overlay.
  • St
    TclPlatStubs
    A function-pointer table that exposes platform-specific Tcl C library functions.
  • St
    TclTomMathStubs
    A function-pointer table that exposes Tcl's bundled multiple-precision math library functions.
  • St
    TclStubHooks
    A structure that links the core Tcl stub table to its platform and math stub tables.

Type Aliases 127

  • Ty
    ClientData
  • Ty
    Tcl_WideInt
  • Ty
    Tcl_WideUInt
  • Ty
    Tcl_AsyncHandler
  • Ty
    Tcl_Channel
  • Ty
    Tcl_ChannelTypeVersion
  • Ty
    Tcl_Command
  • Ty
    Tcl_Condition
  • Ty
    Tcl_Dict
  • Ty
    Tcl_EncodingState
  • Ty
    Tcl_Encoding
  • Ty
    Tcl_InterpState
  • Ty
    Tcl_LoadHandle
  • Ty
    Tcl_Mutex
  • Ty
    Tcl_Pid
  • Ty
    Tcl_RegExp
Show 111 more
  • Ty
    Tcl_ThreadDataKey
  • Ty
    Tcl_ThreadId
  • Ty
    Tcl_TimerToken
  • Ty
    Tcl_Trace
  • Ty
    Tcl_Var
  • Ty
    Tcl_ThreadCreateProc
  • Ty
    Tcl_Stat_
  • Ty
    Tcl_OldStat_
  • Ty
    Tcl_AppInitProc
  • Ty
    Tcl_AsyncProc
  • Ty
    Tcl_ChannelProc
  • Ty
    Tcl_CloseProc
  • Ty
    Tcl_CmdDeleteProc
  • Ty
    Tcl_CmdProc
  • Ty
    Tcl_CmdTraceProc
  • Ty
    Tcl_CmdObjTraceProc
  • Ty
    Tcl_CmdObjTraceDeleteProc
  • Ty
    Tcl_DupInternalRepProc
  • Ty
    Tcl_EncodingConvertProc
  • Ty
    Tcl_EncodingFreeProc
  • Ty
    Tcl_EventProc
  • Ty
    Tcl_EventCheckProc
  • Ty
    Tcl_EventDeleteProc
  • Ty
    Tcl_EventSetupProc
  • Ty
    Tcl_ExitProc
  • Ty
    Tcl_FileProc
  • Ty
    Tcl_FileFreeProc
  • Ty
    Tcl_FreeInternalRepProc
  • Ty
    Tcl_FreeProc
  • Ty
    Tcl_IdleProc
  • Ty
    Tcl_InterpDeleteProc
  • Ty
    Tcl_MathProc
  • Ty
    Tcl_NamespaceDeleteProc
  • Ty
    Tcl_ObjCmdProc
  • Ty
    Tcl_PackageInitProc
  • Ty
    Tcl_PackageUnloadProc
  • Ty
    Tcl_TcpAcceptProc
  • Ty
    Tcl_TimerProc
  • Ty
    Tcl_SetFromAnyProc
  • Ty
    Tcl_UpdateStringProc
  • Ty
    Tcl_VarTraceProc
  • Ty
    Tcl_CommandTraceProc
  • Ty
    Tcl_CreateFileHandlerProc
  • Ty
    Tcl_DeleteFileHandlerProc
  • Ty
    Tcl_AlertNotifierProc
  • Ty
    Tcl_ServiceModeHookProc
  • Ty
    Tcl_InitNotifierProc
  • Ty
    Tcl_FinalizeNotifierProc
  • Ty
    Tcl_MainLoopProc
  • Ty
    Tcl_HashKeyProc
  • Ty
    Tcl_CompareHashKeysProc
  • Ty
    Tcl_AllocHashEntryProc
  • Ty
    Tcl_FreeHashEntryProc
  • Ty
    Tcl_SetTimerProc
  • Ty
    Tcl_WaitForEventProc
  • Ty
    Tcl_GetTimeProc
  • Ty
    Tcl_ScaleTimeProc
  • Ty
    Tcl_DriverBlockModeProc
  • Ty
    Tcl_DriverCloseProc
  • Ty
    Tcl_DriverClose2Proc
  • Ty
    Tcl_DriverInputProc
  • Ty
    Tcl_DriverOutputProc
  • Ty
    Tcl_DriverSeekProc
  • Ty
    Tcl_DriverSetOptionProc
  • Ty
    Tcl_DriverGetOptionProc
  • Ty
    Tcl_DriverWatchProc
  • Ty
    Tcl_DriverGetHandleProc
  • Ty
    Tcl_DriverFlushProc
  • Ty
    Tcl_DriverHandlerProc
  • Ty
    Tcl_DriverWideSeekProc
  • Ty
    Tcl_DriverThreadActionProc
  • Ty
    Tcl_DriverTruncateProc
  • Ty
    Tcl_FSStatProc
  • Ty
    Tcl_FSAccessProc
  • Ty
    Tcl_FSOpenFileChannelProc
  • Ty
    Tcl_FSMatchInDirectoryProc
  • Ty
    Tcl_FSGetCwdProc
  • Ty
    Tcl_FSChdirProc
  • Ty
    Tcl_FSLstatProc
  • Ty
    Tcl_FSCreateDirectoryProc
  • Ty
    Tcl_FSDeleteFileProc
  • Ty
    Tcl_FSCopyDirectoryProc
  • Ty
    Tcl_FSCopyFileProc
  • Ty
    Tcl_FSRemoveDirectoryProc
  • Ty
    Tcl_FSRenameFileProc
  • Ty
    Tcl_FSUnloadFileProc
  • Ty
    Tcl_FSListVolumesProc
  • Ty
    Tcl_FSUtimeProc
  • Ty
    Tcl_FSNormalizePathProc
  • Ty
    Tcl_FSFileAttrsGetProc
  • Ty
    Tcl_FSFileAttrStringsProc
  • Ty
    Tcl_FSFileAttrsSetProc
  • Ty
    Tcl_FSLinkProc
  • Ty
    Tcl_FSLoadFileProc
  • Ty
    Tcl_FSPathInFilesystemProc
  • Ty
    Tcl_FSFilesystemPathTypeProc
  • Ty
    Tcl_FSFilesystemSeparatorProc
  • Ty
    Tcl_FSFreeInternalRepProc
  • Ty
    Tcl_FSDupInternalRepProc
  • Ty
    Tcl_FSInternalToNormalizedProc
  • Ty
    Tcl_FSCreateInternalRepProc
  • Ty
    Tcl_FSVersion
  • Ty
    Tcl_UniChar
  • Ty
    Tcl_LimitHandlerProc
  • Ty
    Tcl_LimitHandlerDeleteProc
  • Ty
    mp_digit
  • Ty
    ulong64
  • Ty
    long64
  • Ty
    mp_word
  • Ty
    mp_err
  • Ty
    ltm_prime_callback
← Low-level, Kernel & Legacy