diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-03-15 21:20:53 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-03-15 21:20:53 (GMT) |
commit | e1f5a6a2b516116e280c01e383a73c4ca12df423 (patch) | |
tree | f4f8596de4396ad0b8d748a97e572ec1cd6401fd /ds9/library/frame.tcl | |
parent | eaf2f407ca2034a6bafc02e6a6755a63cd1f471c (diff) | |
download | blt-e1f5a6a2b516116e280c01e383a73c4ca12df423.zip blt-e1f5a6a2b516116e280c01e383a73c4ca12df423.tar.gz blt-e1f5a6a2b516116e280c01e383a73c4ca12df423.tar.bz2 |
update ds9 parsers
Diffstat (limited to 'ds9/library/frame.tcl')
-rw-r--r-- | ds9/library/frame.tcl | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/ds9/library/frame.tcl b/ds9/library/frame.tcl index d36ac41..8c52282 100644 --- a/ds9/library/frame.tcl +++ b/ds9/library/frame.tcl @@ -2308,18 +2308,16 @@ proc ProcessSendSingleCmd {proc id param} { proc ProcessTileCmd {varname iname} { upvar $varname var - upvar $iname ii - - tile::YY_FLUSH_BUFFER - tile::yy_scan_string [lrange $var $ii end] - tile::yyparse - incr ii [expr $tile::yycnt-1] -} - -proc oProcessTileCmd {varname iname} { - upvar $varname var upvar $iname i + global debug + if {$debug(tcl,parser)} { + tile::YY_FLUSH_BUFFER + tile::yy_scan_string [lrange $var $i end] + tile::yyparse + incr i [expr $tile::yycnt-1] + } else { + global current global tile @@ -2387,6 +2385,7 @@ proc oProcessTileCmd {varname iname} { } DisplayMode } +} proc ProcessSendTileCmd {proc id param} { global current |