summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-07-03 13:28:34 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-07-03 13:28:34 (GMT)
commit8da29403d9cd497343e84c27e4202ac2cf126760 (patch)
tree8001d2650faf32131a2cb8fe7488a40e4acacc12
parentb2d91b862265c46ff0c659ab54b7cfe1b2c1cd6c (diff)
parent75178e5d212a58d2dc99fde38bcb8e902168c211 (diff)
downloadtcl-8da29403d9cd497343e84c27e4202ac2cf126760.zip
tcl-8da29403d9cd497343e84c27e4202ac2cf126760.tar.gz
tcl-8da29403d9cd497343e84c27e4202ac2cf126760.tar.bz2
Merge 8.7
-rw-r--r--generic/tclObj.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/generic/tclObj.c b/generic/tclObj.c
index af4754c..f9b19c2 100644
--- a/generic/tclObj.c
+++ b/generic/tclObj.c
@@ -78,20 +78,20 @@ typedef struct {
typedef struct {
Tcl_HashTable *lineCLPtr; /* This table remembers for each Tcl_Obj
- * generated by a call to the function
- * TclSubstTokens() from a literal text
- * where bs+nl sequences occurred in it, if
- * any. I.e. this table keeps track of
- * invisible and stripped continuation lines.
- * Its keys are Tcl_Obj pointers, the values
- * are ContLineLoc pointers. See the file
- * tclCompile.h for the definition of this
- * structure, and for references to all
- * related places in the core. */
+ * generated by a call to the function
+ * TclSubstTokens() from a literal text
+ * where bs+nl sequences occurred in it, if
+ * any. I.e. this table keeps track of
+ * invisible and stripped continuation lines.
+ * Its keys are Tcl_Obj pointers, the values
+ * are ContLineLoc pointers. See the file
+ * tclCompile.h for the definition of this
+ * structure, and for references to all
+ * related places in the core. */
#if TCL_THREADS && defined(TCL_MEM_DEBUG)
Tcl_HashTable *objThreadMap;/* Thread local table that is used to check
- * that a Tcl_Obj was not allocated by some
- * other thread. */
+ * that a Tcl_Obj was not allocated by some
+ * other thread. */
#endif /* TCL_MEM_DEBUG && TCL_THREADS */
} ThreadSpecificData;
@@ -178,14 +178,14 @@ static Tcl_ThreadDataKey pendingObjDataKey;
#define PACK_BIGNUM(bignum, objPtr) \
if ((bignum).used > 0x7FFF) { \
- mp_int *temp = (mp_int *)Tcl_Alloc(sizeof(mp_int)); \
+ mp_int *temp = (mp_int *)Tcl_Alloc(sizeof(mp_int)); \
*temp = bignum; \
(objPtr)->internalRep.twoPtrValue.ptr1 = temp; \
(objPtr)->internalRep.twoPtrValue.ptr2 = INT2PTR(-1); \
} else if (((bignum).alloc <= 0x7FFF) || (mp_shrink(&(bignum))) == MP_OKAY) { \
(objPtr)->internalRep.twoPtrValue.ptr1 = (bignum).dp; \
- (objPtr)->internalRep.twoPtrValue.ptr2 = INT2PTR( ((bignum).sign << 30) \
- | ((bignum).alloc << 15) | ((bignum).used)); \
+ (objPtr)->internalRep.twoPtrValue.ptr2 = INT2PTR(((bignum).sign << 30) \
+ | ((bignum).alloc << 15) | ((bignum).used)); \
}
/*
@@ -376,14 +376,14 @@ TclInitObjSubsystem(void)
Tcl_InitHashTable(&typeTable, TCL_STRING_KEYS);
Tcl_MutexUnlock(&tableMutex);
- Tcl_RegisterObjType(&tclDoubleType);
- Tcl_RegisterObjType(&tclStringType);
- Tcl_RegisterObjType(&tclListType);
- Tcl_RegisterObjType(&tclDictType);
Tcl_RegisterObjType(&tclByteCodeType);
Tcl_RegisterObjType(&tclCmdNameType);
- Tcl_RegisterObjType(&tclRegexpType);
+ Tcl_RegisterObjType(&tclDictType);
+ Tcl_RegisterObjType(&tclDoubleType);
+ Tcl_RegisterObjType(&tclListType);
Tcl_RegisterObjType(&tclProcBodyType);
+ Tcl_RegisterObjType(&tclRegexpType);
+ Tcl_RegisterObjType(&tclStringType);
#ifdef TCL_COMPILE_STATS
Tcl_MutexLock(&tclObjMutex);
@@ -2132,7 +2132,7 @@ TclSetBooleanFromAny(
badBoolean:
if (interp != NULL) {
Tcl_Size length;
- const char *str = Tcl_GetStringFromObj(objPtr, &length);
+ const char *str = TclGetStringFromObj(objPtr, &length);
Tcl_Obj *msg;
TclNewLiteralStringObj(msg, "expected boolean value but got \"");
@@ -2151,7 +2151,7 @@ ParseBoolean(
int newBool;
char lowerCase[6];
Tcl_Size i, length;
- const char *str = Tcl_GetStringFromObj(objPtr, &length);
+ const char *str = TclGetStringFromObj(objPtr, &length);
if ((length < 1) || (length > 5)) {
/*
@@ -4237,7 +4237,7 @@ TclHashObjKey(
{
Tcl_Obj *objPtr = (Tcl_Obj *)keyPtr;
Tcl_Size length;
- const char *string = Tcl_GetStringFromObj(objPtr, &length);
+ const char *string = TclGetStringFromObj(objPtr, &length);
size_t result = 0;
/*