Skip to content

Commit

Permalink
Adapt Itcl to TIP #673: Remove deprecated [trace] subcommands
Browse files Browse the repository at this point in the history
  • Loading branch information
jan.nijtmans committed Aug 4, 2023
1 parent 6c3ce2a commit 5cddcde
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion generic/itclBase.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static const char safeInitScript[] =
" set ptr [uplevel [list $class $name] $args]\n"
" uplevel [list set itcl-local-$ptr $ptr]\n"
" set cmd [uplevel namespace which -command $ptr]\n"
" uplevel [list trace variable itcl-local-$ptr u \"::itcl::delete object $cmd; list\"]\n"
" uplevel [list trace add variable itcl-local-$ptr unset \"::itcl::delete object $cmd; list\"]\n"
" return $ptr\n"
"}";

Expand Down
2 changes: 1 addition & 1 deletion library/itcl.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ proc ::itcl::local {class name args} {
set ptr [uplevel [list $class $name] $args]
uplevel [list set itcl-local-$ptr $ptr]
set cmd [uplevel namespace which -command $ptr]
uplevel [list trace variable itcl-local-$ptr u \
uplevel [list trace add variable itcl-local-$ptr unset \
"::itcl::delete_helper $cmd"]
return $ptr
}
Expand Down
2 changes: 1 addition & 1 deletion win/rules.vc
Original file line number Diff line number Diff line change
Expand Up @@ -1369,7 +1369,7 @@ INCLUDE_INSTALL_DIR = $(_INSTALLDIR)\..\include
# and switches are specific to it.
# The following macros are defined, names are for historical compatibility:
# OPTDEFINES - /Dxxx C macro flags based on user-specified OPTS
# COMPILERFLAGS - /Dxxx C macro flags independent of any configuration opttions
# COMPILERFLAGS - /Dxxx C macro flags independent of any configuration options
# crt - Compiler switch that selects the appropriate C runtime
# cdebug - Compiler switches related to debug AND optimizations
# cwarn - Compiler switches that set warning levels
Expand Down

0 comments on commit 5cddcde

Please sign in to comment.