tclListObj.c File Reference#include "tclInt.h"
Go to the source code of this file.
|
Defines |
#define | LOCAL_SIZE 20 |
Functions |
Tcl_Obj * | Tcl_NewListObj (int objc, Tcl_Obj *CONST objv[]) |
Tcl_Obj * | Tcl_DbNewListObj (int objc, Tcl_Obj *CONST objv[], CONST char *file, int line) |
void | Tcl_SetListObj (Tcl_Obj *objPtr, int objc, Tcl_Obj *CONST objv[]) |
Tcl_Obj * | TclListObjCopy (Tcl_Interp *interp, Tcl_Obj *listPtr) |
int | Tcl_ListObjGetElements (Tcl_Interp *interp, register Tcl_Obj *listPtr, int *objcPtr, Tcl_Obj ***objvPtr) |
int | Tcl_ListObjAppendList (Tcl_Interp *interp, register Tcl_Obj *listPtr, Tcl_Obj *elemListPtr) |
int | Tcl_ListObjAppendElement (Tcl_Interp *interp, Tcl_Obj *listPtr, Tcl_Obj *objPtr) |
int | Tcl_ListObjIndex (Tcl_Interp *interp, register Tcl_Obj *listPtr, register int index, Tcl_Obj **objPtrPtr) |
int | Tcl_ListObjLength (Tcl_Interp *interp, register Tcl_Obj *listPtr, register int *intPtr) |
int | Tcl_ListObjReplace (Tcl_Interp *interp, Tcl_Obj *listPtr, int first, int count, int objc, Tcl_Obj *CONST objv[]) |
Tcl_Obj * | TclLindexList (Tcl_Interp *interp, Tcl_Obj *listPtr, Tcl_Obj *argPtr) |
Tcl_Obj * | TclLindexFlat (Tcl_Interp *interp, Tcl_Obj *listPtr, int indexCount, Tcl_Obj *const indexArray[]) |
Tcl_Obj * | TclLsetList (Tcl_Interp *interp, Tcl_Obj *listPtr, Tcl_Obj *indexArgPtr, Tcl_Obj *valuePtr) |
Tcl_Obj * | TclLsetFlat (Tcl_Interp *interp, Tcl_Obj *listPtr, int indexCount, Tcl_Obj *const indexArray[], Tcl_Obj *valuePtr) |
int | TclListObjSetElement (Tcl_Interp *interp, Tcl_Obj *listPtr, int index, Tcl_Obj *valuePtr) |
Variables |
Tcl_ObjType | tclListType |
Define Documentation
Function Documentation
Tcl_Obj* Tcl_DbNewListObj |
( |
int |
objc, |
|
|
Tcl_Obj *CONST |
objv[], |
|
|
CONST char * |
file, |
|
|
int |
line | |
|
) |
| | |
Definition at line 534 of file tclListObj.c.
References ckrealloc, List::elemCount, List::elements, Tcl_Obj::internalRep, List::maxElemCount, List::refCount, Tcl_IncrRefCount, Tcl_InvalidateStringRep(), Tcl_IsShared, TCL_OK, Tcl_Panic(), Tcl_SetListObj(), TclGetStringFromObj, tclListType, Tcl_Obj::twoPtrValue, and Tcl_Obj::typePtr.
Referenced by Tcl_AfterObjCmd(), Tcl_AppendAllObjTypes(), Tcl_AppendExportList(), Tcl_ArrayObjCmd(), Tcl_BinaryObjCmd(), Tcl_ErrorObjCmd(), Tcl_FSFileSystemInfo(), Tcl_FSJoinToPath(), Tcl_FSMatchInDirectory(), Tcl_FSSplitPath(), Tcl_GetChannelNamesEx(), Tcl_GetEncodingNames(), Tcl_InterpObjCmd(), Tcl_JoinPath(), Tcl_LinsertObjCmd(), Tcl_ListMathFuncs(), Tcl_Main(), Tcl_PidObjCmd(), Tcl_RegexpObjCmd(), Tcl_ScanObjCmd(), Tcl_SetErrorCodeVA(), Tcl_SplitObjCmd(), Tcl_SwitchObjCmd(), Tcl_TraceObjCmd(), TclClockOldscanObjCmd(), TclExecuteByteCode(), TclFileAttrsCmd(), TclGlob(), TclInfoGlobalsCmd(), TclInfoVarsCmd(), TclpInitLibraryPath(), TclpMatchInDirectory(), TclPtrSetVar(), and TclRegAbout().
int Tcl_ListObjLength |
( |
Tcl_Interp * |
interp, |
|
|
register Tcl_Obj * |
listPtr, |
|
|
register int * |
intPtr | |
|
) |
| | |
int Tcl_ListObjReplace |
( |
Tcl_Interp * |
interp, |
|
|
Tcl_Obj * |
listPtr, |
|
|
int |
first, |
|
|
int |
count, |
|
|
int |
objc, |
|
|
Tcl_Obj *CONST |
objv[] | |
|
) |
| | |
Definition at line 771 of file tclListObj.c.
References ckfree, List::elemCount, List::elements, Tcl_Obj::internalRep, List::maxElemCount, List::refCount, Tcl_IncrRefCount, Tcl_InvalidateStringRep(), Tcl_IsShared, TCL_OK, Tcl_Panic(), Tcl_SetListObj(), TclDecrRefCount, TclGetStringFromObj, tclListType, Tcl_Obj::twoPtrValue, and Tcl_Obj::typePtr.
Referenced by Tcl_LappendObjCmd(), Tcl_LinsertObjCmd(), Tcl_ListObjAppendList(), Tcl_LreplaceObjCmd(), Tcl_SetDefaultEncodingDir(), and TclGlob().
Definition at line 160 of file tclListObj.c.
References Tcl_Obj::internalRep, List::refCount, Tcl_InvalidateStringRep(), Tcl_Panic(), tclListType, TclNewObj, Tcl_Obj::twoPtrValue, and Tcl_Obj::typePtr.
Referenced by Tcl_DbNewListObj(), Tcl_EvalObjv(), Tcl_FSFileSystemInfo(), Tcl_FSJoinToPath(), Tcl_LassignObjCmd(), Tcl_ListObjCmd(), Tcl_LrangeObjCmd(), Tcl_LrepeatObjCmd(), Tcl_LreverseObjCmd(), Tcl_Main(), Tcl_RecordAndEvalObj(), Tcl_RegexpObjCmd(), Tcl_SwitchObjCmd(), Tcl_TimeObjCmd(), Tcl_TraceObjCmd(), TclExecuteByteCode(), TclFileAttrsCmd(), TclInfoGlobalsCmd(), TclInfoLocalsCmd(), TclInfoVarsCmd(), and TclObjInvoke().
void Tcl_SetListObj |
( |
Tcl_Obj * |
objPtr, |
|
|
int |
objc, |
|
|
Tcl_Obj *CONST |
objv[] | |
|
) |
| | |
Definition at line 305 of file tclListObj.c.
References Tcl_Obj::bytes, Tcl_Obj::internalRep, Tcl_Obj::length, List::refCount, Tcl_InvalidateStringRep(), Tcl_IsShared, Tcl_Panic(), tclEmptyStringRep, TclFreeIntRep, tclListType, Tcl_Obj::twoPtrValue, and Tcl_Obj::typePtr.
Referenced by Tcl_ListObjAppendElement(), Tcl_ListObjReplace(), and Tcl_ScanObjCmd().
Definition at line 367 of file tclListObj.c.
References TCL_OK, TclInvalidateStringRep, tclListType, TclNewObj, and Tcl_Obj::typePtr.
Referenced by Tcl_ForeachObjCmd(), Tcl_LassignObjCmd(), Tcl_LinsertObjCmd(), Tcl_LrangeObjCmd(), Tcl_LreplaceObjCmd(), TclArraySet(), TclEvalObjEx(), TclExecuteByteCode(), TclLindexFlat(), TclLindexList(), and TclLsetList().
Definition at line 1458 of file tclListObj.c.
References List::canonicalFlag, List::elemCount, List::elements, Tcl_Obj::internalRep, List::maxElemCount, List::refCount, Tcl_DecrRefCount, TCL_ERROR, Tcl_IncrRefCount, Tcl_IsShared, Tcl_NewStringObj(), TCL_OK, Tcl_Panic(), Tcl_SetObjResult(), TclGetStringFromObj, tclListType, Tcl_Obj::twoPtrValue, and Tcl_Obj::typePtr.
Referenced by TclLsetFlat().
Definition at line 1257 of file tclListObj.c.
References Tcl_Obj::internalRep, Tcl_DecrRefCount, Tcl_DuplicateObj(), TCL_ERROR, Tcl_IncrRefCount, Tcl_InvalidateStringRep(), Tcl_IsShared, Tcl_NewStringObj(), TCL_OK, Tcl_SetObjResult(), TclGetIntForIndexM, TclListObjGetElements, TclListObjSetElement(), and Tcl_Obj::twoPtrValue.
Referenced by Tcl_LsetObjCmd(), TclExecuteByteCode(), and TclLsetList().
Variable Documentation
Initial value: {
"list",
FreeListInternalRep,
DupListInternalRep,
UpdateStringOfList,
SetListFromAny
}
Definition at line 41 of file tclListObj.c.
Generated on Wed Mar 12 12:18:32 2008 by
1.5.1
|