Skip to content

Commit ffd83b7

Browse files
committed
Accommodate Tcl TIP 543
Remove Tcl::INTERP_DESTROYED constant Add method InterpDeleted()
1 parent f651b1c commit ffd83b7

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

Tcl.pm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,10 @@ behaves as in I<SetVar> above.
375375
Unsets the element VARNAME1(VARNAME2) of a Tcl array.
376376
The optional argument FLAGS behaves as in I<SetVar> above.
377377
378+
=item $interp->InterpDeleted ()
379+
380+
See Tcl C API documentation for I<Tcl_InterpDeleted>().
381+
378382
=back
379383
380384
=head2 Linking Perl and Tcl variables

Tcl.xs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1706,6 +1706,10 @@ Tcl_UnsetVar2(interp, varname1, varname2, flags = 0)
17061706
OUTPUT:
17071707
RETVAL
17081708

1709+
int
1710+
Tcl_InterpDeleted(interp)
1711+
Tcl interp
1712+
17091713

17101714
MODULE = Tcl PACKAGE = Tcl::List
17111715

@@ -1865,7 +1869,6 @@ BOOT:
18651869
newCONSTSUB(stash, "TRACE_WRITES", newSViv(TCL_TRACE_WRITES));
18661870
newCONSTSUB(stash, "TRACE_UNSETS", newSViv(TCL_TRACE_UNSETS));
18671871
newCONSTSUB(stash, "TRACE_DESTROYED", newSViv(TCL_TRACE_DESTROYED));
1868-
newCONSTSUB(stash, "INTERP_DESTROYED", newSViv(TCL_INTERP_DESTROYED));
18691872
newCONSTSUB(stash, "LEAVE_ERR_MSG", newSViv(TCL_LEAVE_ERR_MSG));
18701873
newCONSTSUB(stash, "TRACE_ARRAY", newSViv(TCL_TRACE_ARRAY));
18711874

t/constants.t

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ ok(Tcl::GLOBAL_ONLY |
1919
Tcl::TRACE_WRITES |
2020
Tcl::TRACE_UNSETS |
2121
Tcl::TRACE_DESTROYED |
22-
Tcl::INTERP_DESTROYED |
2322
Tcl::LEAVE_ERR_MSG |
2423
Tcl::TRACE_ARRAY,
25-
0xBFF);
24+
0xAFF);

0 commit comments

Comments
 (0)