summaryrefslogtreecommitdiffstats
path: root/ds9/library/2mass.tcl
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-03-15 21:20:53 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-03-15 21:20:53 (GMT)
commite1f5a6a2b516116e280c01e383a73c4ca12df423 (patch)
treef4f8596de4396ad0b8d748a97e572ec1cd6401fd /ds9/library/2mass.tcl
parenteaf2f407ca2034a6bafc02e6a6755a63cd1f471c (diff)
downloadblt-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.tcl23
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} {