tclObj.c File Reference#include "tclInt.h" #include "tommath.h" #include <float.h> Go to the source code of this file.
Define Documentation
Value: if ((bignum).used > 0x7fff) { \ mp_int *temp = (void *) ckalloc((unsigned) sizeof(mp_int)); \ *temp = bignum; \ (objPtr)->internalRep.ptrAndLongRep.ptr = (void*) temp; \ (objPtr)->internalRep.ptrAndLongRep.value = (unsigned long)(-1); \ } else { \ if ((bignum).alloc > 0x7fff) { \ mp_shrink(&(bignum)); \ } \ (objPtr)->internalRep.ptrAndLongRep.ptr = (void*) (bignum).dp; \ (objPtr)->internalRep.ptrAndLongRep.value = ( ((bignum).sign << 30) \ | ((bignum).alloc << 15) | ((bignum).used)); \ } Definition at line 139 of file tclObj.c. Referenced by TclSetBignumIntRep().
Value: (objPtrVar) = (contextPtr)->deletionStack; \ (contextPtr)->deletionStack = (Tcl_Obj *) (objPtrVar)->bytes Definition at line 117 of file tclObj.c. Referenced by TclFreeObj().
Value: /* The string rep is already invalidated so we can use the bytes value \ * for our pointer chain: push onto the head of the stack. */ \ (objPtr)->bytes = (char *) ((contextPtr)->deletionStack); \ (contextPtr)->deletionStack = (objPtr) Definition at line 113 of file tclObj.c. Referenced by TclFreeObj().
Value: if ((objPtr)->internalRep.ptrAndLongRep.value == (unsigned long)(-1)) { \ (bignum) = *((mp_int *) ((objPtr)->internalRep.ptrAndLongRep.ptr)); \ } else { \ (bignum).dp = (mp_digit*) (objPtr)->internalRep.ptrAndLongRep.ptr; \ (bignum).sign = (objPtr)->internalRep.ptrAndLongRep.value >> 30; \ (bignum).alloc = \ ((objPtr)->internalRep.ptrAndLongRep.value >> 15) & 0x7fff; \ (bignum).used = (objPtr)->internalRep.ptrAndLongRep.value & 0x7fff; \ } Definition at line 154 of file tclObj.c. Referenced by Tcl_GetDoubleFromObj(), Tcl_GetLongFromObj(), Tcl_GetWideIntFromObj(), and TclGetNumberFromObj().
Function Documentation
Definition at line 478 of file tclObj.c. References TCL_ERROR, Tcl_FirstHashEntry(), Tcl_GetHashKey, Tcl_ListObjAppendElement(), Tcl_MutexLock, Tcl_MutexUnlock, Tcl_NewStringObj(), Tcl_NextHashEntry(), TCL_OK, and TclListObjLength.
Definition at line 565 of file tclObj.c. References Tcl_ObjType::name, Tcl_ObjType::setFromAnyProc, TCL_OK, Tcl_Panic(), and Tcl_Obj::typePtr. Referenced by Tcl_FSConvertToPathType(), Tcl_FSGetNormalizedPath(), and Tcl_GetBoolean().
Definition at line 3142 of file tclObj.c. References Tcl_DeleteHashEntry(), Tcl_FindHashEntry, Tcl_Panic(), TCL_TSD_INIT, TclFreeObj(), and TclInExit().
Definition at line 3077 of file tclObj.c. References Tcl_FindHashEntry, Tcl_Panic(), TCL_TSD_INIT, and TclInExit().
Definition at line 3214 of file tclObj.c. References Tcl_FindHashEntry, Tcl_MutexLock, Tcl_MutexUnlock, Tcl_Panic(), TCL_TSD_INIT, and TclInExit().
Definition at line 1006 of file tclObj.c. References Tcl_Obj::bytes, Tcl_ObjType::dupIntRepProc, Tcl_Obj::internalRep, TclInitStringRep, TclNewObj, and Tcl_Obj::typePtr.
Definition at line 2860 of file tclObj.c. Referenced by Tcl_AppendFormatToObj(), TclExecuteByteCode(), and TclIncrObj().
Definition at line 1297 of file tclObj.c. References TCL_ERROR, Tcl_GetDoubleFromObj(), TCL_OK, tclBignumType, tclBooleanType, tclDoubleType, tclIntType, TclParseNumber(), and tclWideIntType.
Definition at line 3488 of file tclObj.c. References CMD_IS_DELETED, ResolvedCmdName::cmdEpoch, Command::cmdEpoch, ResolvedCmdName::cmdPtr, Namespace::cmdRefEpoch, Command::flags, Namespace::interp, Namespace::nsId, Command::nsPtr, ResolvedCmdName::refNsCmdEpoch, ResolvedCmdName::refNsId, ResolvedCmdName::refNsPtr, Tcl_ObjType::setFromAnyProc, TCL_OK, and TclGetCurrentNamespace.
Definition at line 1683 of file tclObj.c. References TCL_ERROR, Tcl_NewStringObj(), TCL_OK, Tcl_SetObjResult(), TclBignumToDouble(), tclBignumType, tclDoubleType, tclIntType, TclIsNaN, tclWideIntType, and UNPACK_BIGNUM.
Definition at line 1895 of file tclObj.c. References CONST, TCL_ERROR, Tcl_NewStringObj(), TCL_OK, Tcl_SetErrorCode(), Tcl_SetObjResult(), and TclGetLongFromObj.
Definition at line 2156 of file tclObj.c. References DIGIT_BIT, MP_OKAY, mp_to_unsigned_bin_n, Tcl_AppendObjToObj(), Tcl_AppendToObj(), TCL_ERROR, Tcl_NewStringObj(), TCL_OK, TCL_PARSE_INTEGER_ONLY, Tcl_SetErrorCode(), Tcl_SetObjResult(), Tcl_WideAsLong, tclBignumType, tclDoubleType, tclIntType, TclNewLiteralStringObj, TclParseNumber(), tclWideIntType, UNPACK_BIGNUM, and mp_int::used.
Definition at line 529 of file tclObj.c. References Tcl_FindHashEntry, Tcl_GetHashValue, Tcl_MutexLock, and Tcl_MutexUnlock.
Definition at line 2470 of file tclObj.c. References DIGIT_BIT, MP_OKAY, mp_to_unsigned_bin_n, Tcl_AppendObjToObj(), Tcl_AppendToObj(), TCL_ERROR, Tcl_NewStringObj(), TCL_OK, TCL_PARSE_INTEGER_ONLY, Tcl_SetErrorCode(), Tcl_SetObjResult(), tclBignumType, tclDoubleType, tclIntType, TclNewLiteralStringObj, TclParseNumber(), tclWideIntType, UNPACK_BIGNUM, and mp_int::used.
Definition at line 3287 of file tclObj.c. References TCL_CUSTOM_PTR_KEYS, Tcl_InitCustomHashTable(), and tclObjHashKeyType.
Definition at line 2709 of file tclObj.c. References Tcl_SetBignumObj(), and TclNewObj. Referenced by Tcl_AppendFormatToObj(), Tcl_DbNewBignumObj(), Tcl_ExprLongObj(), and TclExecuteByteCode().
Definition at line 681 of file tclObj.c. References TclNewObj. Referenced by Tcl_AfterObjCmd(), Tcl_AppendFormatToObj(), Tcl_BinaryObjCmd(), Tcl_CreateInterp(), Tcl_DbNewObj(), Tcl_ExecObjCmd(), Tcl_ForeachObjCmd(), Tcl_Format(), Tcl_FSEvalFileEx(), Tcl_FSJoinPath(), Tcl_FSListVolumes(), Tcl_FSSplitPath(), Tcl_GetEncodingNames(), Tcl_GetReturnOptions(), Tcl_GetsObjCmd(), Tcl_InterpObjCmd(), Tcl_JoinObjCmd(), Tcl_JoinPath(), Tcl_ListMathFuncs(), Tcl_Main(), Tcl_ObjPrintf(), Tcl_ParseExpr(), Tcl_PidObjCmd(), Tcl_ReadObjCmd(), Tcl_RegexpObjCmd(), Tcl_SaveResult(), Tcl_ScanObjCmd(), Tcl_SetErrorCodeVA(), Tcl_SplitObjCmd(), Tcl_SubstObj(), Tcl_TraceObjCmd(), TclCleanupChildren(), TclClockOldscanObjCmd(), TclCompileExpr(), TclCompileReturnCmd(), TclCompileScript(), TclCompileUpvarCmd(), TclInfoVarsCmd(), TclLindexFlat(), TclMergeReturnOptions(), TclNewFSPathObj(), TclPathPart(), TclpFindExecutable(), TclpInitLibraryPath(), TclRenameCommand(), TclStringObjReverse(), and TclWordKnownAtCompileTime().
Definition at line 440 of file tclObj.c. References Tcl_ObjType::name, Tcl_CreateHashEntry, Tcl_MutexLock, Tcl_MutexUnlock, and Tcl_SetHashValue. Referenced by TclInitObjSubsystem().
Definition at line 2921 of file tclObj.c. References DIGIT_BIT, mp_clear, MP_OKAY, mp_to_unsigned_bin_n, Tcl_IsShared, Tcl_Panic(), TclFreeIntRep, TclInvalidateStringRep, TclSetBignumIntRep(), TclSetLongObj, TclSetWideIntObj, and mp_int::used. Referenced by Tcl_NewBignumObj(), Tcl_SetWideIntObj(), TclExecuteByteCode(), and TclIncrObj().
Definition at line 1266 of file tclObj.c. References Tcl_IsShared, Tcl_Panic(), and TclSetBooleanObj.
Definition at line 1651 of file tclObj.c. References Tcl_IsShared, Tcl_Panic(), and TclSetDoubleObj.
Definition at line 2423 of file tclObj.c. References Tcl_IsShared, Tcl_Panic(), Tcl_SetBignumObj(), TclBNInitBignumFromWideInt(), TclSetLongObj, and TclSetWideIntObj.
Definition at line 776 of file tclObj.c. References ckalloc, Tcl_Obj::internalRep, OBJS_TO_ALLOC_EACH_TIME, Tcl_Obj::otherValuePtr, and tclFreeObjList.
Definition at line 3346 of file tclObj.c. References CONST, Tcl_HashEntry::key, Tcl_Obj::length, Tcl_HashEntry::oneWordValue, and TclGetString.
Definition at line 401 of file tclObj.c. References Tcl_DeleteHashTable(), Tcl_MutexLock, Tcl_MutexUnlock, and tclFreeObjList. Referenced by Tcl_Finalize().
Definition at line 886 of file tclObj.c. References Tcl_ObjType::freeIntRepProc, ObjDeletePending, ObjDeletionLock, ObjDeletionUnlock, ObjInitDeletionContext, ObjOnStack, PopObjToDelete, PushObjToDelete, TCL_DTRACE_OBJ_FREE, TclFreeObjStorage, TclIncrObjsFreed, TclInvalidateStringRep, and Tcl_Obj::typePtr.
Definition at line 3408 of file tclObj.c. References ckfree, Tcl_HashEntry::key, Tcl_HashEntry::oneWordValue, and Tcl_DecrRefCount.
Definition at line 3013 of file tclObj.c. References Tcl_Obj::doubleValue, Tcl_Obj::internalRep, Tcl_Obj::longValue, TCL_ERROR, Tcl_GetThreadData(), TCL_NUMBER_BIG, TCL_NUMBER_DOUBLE, TCL_NUMBER_LONG, TCL_NUMBER_NAN, TCL_NUMBER_WIDE, TCL_OK, tclBignumType, tclDoubleType, tclIntType, TclIsNaN, TclParseNumber(), tclWideIntType, Tcl_Obj::typePtr, UNPACK_BIGNUM, and Tcl_Obj::wideValue. Referenced by Tcl_ExprDoubleObj(), and Tcl_ExprLongObj().
Definition at line 343 of file tclObj.c. References Tcl_InitHashTable(), Tcl_MutexLock, Tcl_MutexUnlock, Tcl_RegisterObjType(), TCL_STRING_KEYS, tclArraySearchType, tclByteArrayType, tclByteCodeType, tclDictType, tclDoubleType, tclEndOffsetType, tclIntType, tclListType, tclProcBodyType, tclRegexpType, tclStringType, and tclWideIntType. Referenced by TclInitSubsystems().
Definition at line 2983 of file tclObj.c. References mp_int::alloc, mp_int::dp, MP_NEG, PACK_BIGNUM, mp_int::sign, tclBignumType, Tcl_Obj::typePtr, and mp_int::used. Referenced by Tcl_SetBignumObj(), and TclParseNumber().
Definition at line 3568 of file tclObj.c. References ckalloc, Command::cmdEpoch, ResolvedCmdName::cmdEpoch, ResolvedCmdName::cmdPtr, Namespace::cmdRefEpoch, iPtr, Namespace::nsId, CallFrame::nsPtr, ResolvedCmdName::refCount, Command::refCount, ResolvedCmdName::refNsCmdEpoch, ResolvedCmdName::refNsId, ResolvedCmdName::refNsPtr, TclFreeIntRep, TclGetString, and Interp::varFramePtr.
Variable Documentation
Initial value: { TCL_HASH_KEY_TYPE_VERSION, 0, TclHashObjKey, TclCompareObjKeys, AllocObjEntry, TclFreeObjEntry }
Generated on Wed Mar 12 12:18:33 2008 by 1.5.1 |