summaryrefslogtreecommitdiffstats
path: root/generic/tclRegexp.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-10-08 07:08:28 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-10-08 07:08:28 (GMT)
commit343851002d0cb0f2939aaf96a761357f0b7c972f (patch)
treec7e9685acd7f5ba07bbe44fff181052c0845391c /generic/tclRegexp.c
parent447dd177c9d85086c6d5cf98d3bf00b102b56c7e (diff)
parent0b1f6ed09a118b4d974ca8048adec672061662d1 (diff)
downloadtcl-343851002d0cb0f2939aaf96a761357f0b7c972f.zip
tcl-343851002d0cb0f2939aaf96a761357f0b7c972f.tar.gz
tcl-343851002d0cb0f2939aaf96a761357f0b7c972f.tar.bz2
Change "IntRep" to "InternalRep", as discussed in the Tcl Core mailing list
Diffstat (limited to 'generic/tclRegexp.c')
-rw-r--r--generic/tclRegexp.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/generic/tclRegexp.c b/generic/tclRegexp.c
index f161782..b7fbb81 100644
--- a/generic/tclRegexp.c
+++ b/generic/tclRegexp.c
@@ -109,19 +109,19 @@ const Tcl_ObjType tclRegexpType = {
SetRegexpFromAny /* setFromAnyProc */
};
-#define RegexpSetIntRep(objPtr, rePtr) \
+#define RegexpSetInternalRep(objPtr, rePtr) \
do { \
- Tcl_ObjIntRep ir; \
+ Tcl_ObjInternalRep ir; \
(rePtr)->refCount++; \
ir.twoPtrValue.ptr1 = (rePtr); \
ir.twoPtrValue.ptr2 = NULL; \
- Tcl_StoreIntRep((objPtr), &tclRegexpType, &ir); \
+ Tcl_StoreInternalRep((objPtr), &tclRegexpType, &ir); \
} while (0)
-#define RegexpGetIntRep(objPtr, rePtr) \
+#define RegexpGetInternalRep(objPtr, rePtr) \
do { \
- const Tcl_ObjIntRep *irPtr; \
- irPtr = TclFetchIntRep((objPtr), &tclRegexpType); \
+ const Tcl_ObjInternalRep *irPtr; \
+ irPtr = TclFetchInternalRep((objPtr), &tclRegexpType); \
(rePtr) = irPtr ? (TclRegexp *)irPtr->twoPtrValue.ptr1 : NULL; \
} while (0)
@@ -598,7 +598,7 @@ Tcl_GetRegExpFromObj(
TclRegexp *regexpPtr;
const char *pattern;
- RegexpGetIntRep(objPtr, regexpPtr);
+ RegexpGetInternalRep(objPtr, regexpPtr);
if ((regexpPtr == NULL) || (regexpPtr->flags != flags)) {
pattern = TclGetStringFromObj(objPtr, &length);
@@ -608,7 +608,7 @@ Tcl_GetRegExpFromObj(
return NULL;
}
- RegexpSetIntRep(objPtr, regexpPtr);
+ RegexpSetInternalRep(objPtr, regexpPtr);
}
return (Tcl_RegExp) regexpPtr;
}
@@ -757,7 +757,7 @@ FreeRegexpInternalRep(
{
TclRegexp *regexpRepPtr;
- RegexpGetIntRep(objPtr, regexpRepPtr);
+ RegexpGetInternalRep(objPtr, regexpRepPtr);
assert(regexpRepPtr != NULL);
@@ -794,11 +794,11 @@ DupRegexpInternalRep(
{
TclRegexp *regexpPtr;
- RegexpGetIntRep(srcPtr, regexpPtr);
+ RegexpGetInternalRep(srcPtr, regexpPtr);
assert(regexpPtr != NULL);
- RegexpSetIntRep(copyPtr, regexpPtr);
+ RegexpSetInternalRep(copyPtr, regexpPtr);
}
/*