summaryrefslogtreecommitdiffstats
path: root/generic/tclOOInt.h
diff options
context:
space:
mode:
authorpooryorick <com.digitalsmarties@pooryorick.com>2019-11-15 13:50:39 (GMT)
committerpooryorick <com.digitalsmarties@pooryorick.com>2019-11-15 13:50:39 (GMT)
commite404d079599169631976ea93a1844a2187adce25 (patch)
tree3c21a5a3c38ef295dc57063bc6ebb88c2ea2644d /generic/tclOOInt.h
parentb99314020d3b01f6b4616e7d1f36a9d120b0d7ec (diff)
downloadtcl-e404d079599169631976ea93a1844a2187adce25.zip
tcl-e404d079599169631976ea93a1844a2187adce25.tar.gz
tcl-e404d079599169631976ea93a1844a2187adce25.tar.bz2
Add TclOOObjectDestroyed to make logic more explicit. Renamed Deleted() to
Destructing(). No functiontional changes.
Diffstat (limited to 'generic/tclOOInt.h')
-rw-r--r--generic/tclOOInt.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/generic/tclOOInt.h b/generic/tclOOInt.h
index 436acd6..0e4503a 100644
--- a/generic/tclOOInt.h
+++ b/generic/tclOOInt.h
@@ -189,14 +189,11 @@ typedef struct Object {
LIST_STATIC(Tcl_Obj *) variables;
} Object;
-#define OBJECT_DELETED 1 /* Flag to say that an object has been
- * destroyed. */
-#define DESTRUCTOR_CALLED 2 /* Flag to say that the destructor has been
- * called. */
-#define CLASS_GONE 4 /* Obsolete. Indicates that the class of this
- * object has been deleted, and so the object
- * should not attempt to remove itself from its
- * class. */
+#define OBJECT_DESTRUCTING 1 /* Indicates that an object is being or has
+ * been destroyed */
+#define DESTRUCTOR_CALLED 2 /* Indicates that evaluation of destructor script for the
+ object has began */
+#define OO_UNUSED_4 4 /* No longer used. */
#define ROOT_OBJECT 0x1000 /* Flag to say that this object is the root of
* the class hierarchy and should be treated
* specially during teardown. */
@@ -497,6 +494,7 @@ MODULE_SCOPE Object * TclNewObjectInstanceCommon(Tcl_Interp *interp,
const char *nameStr,
const char *nsNameStr);
MODULE_SCOPE int TclOODecrRefCount(Object *oPtr);
+MODULE_SCOPE int TclOOObjectDestroyed(Object *oPtr);
MODULE_SCOPE int TclOODefineSlots(Foundation *fPtr);
MODULE_SCOPE void TclOODeleteChain(CallChain *callPtr);
MODULE_SCOPE void TclOODeleteChainCache(Tcl_HashTable *tablePtr);