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/2mass.tcl | |
parent | eaf2f407ca2034a6bafc02e6a6755a63cd1f471c (diff) | |
download | blt-e1f5a6a2b516116e280c01e383a73c4ca12df423.zip blt-e1f5a6a2b516116e280c01e383a73c4ca12df423.tar.gz blt-e1f5a6a2b516116e280c01e383a73c4ca12df423.tar.bz2 |
update ds9 parsers
Diffstat (limited to 'ds9/library/2mass.tcl')
-rw-r--r-- | ds9/library/2mass.tcl | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/ds9/library/2mass.tcl b/ds9/library/2mass.tcl index 24b9644..aaf315f 100644 --- a/ds9/library/2mass.tcl +++ b/ds9/library/2mass.tcl @@ -129,22 +129,19 @@ Foundation. proc Process2MASSCmd {varname iname} { upvar $varname var - upvar $iname ii - - 2MASSDialog - - twomass::YY_FLUSH_BUFFER - twomass::yy_scan_string [lrange $var $ii end] - twomass::yyparse - incr ii [expr $twomass::yycnt-1] -} - -proc oProcess2MASSCmd {varname iname} { - upvar $varname var upvar $iname i 2MASSDialog - IMGSVRProcessCmd $varname $iname dtwomass + + global debug + if {$debug(tcl,parser)} { + twomass::YY_FLUSH_BUFFER + twomass::yy_scan_string [lrange $var $i end] + twomass::yyparse + incr i [expr $twomass::yycnt-1] + } else { + IMGSVRProcessCmd $varname $iname dtwomass + } } proc ProcessSend2MASSCmd {proc id param} { |