summaryrefslogtreecommitdiffstats
path: root/ds9/library/rgbarray.tcl
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-05-29 21:27:31 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-05-29 21:27:31 (GMT)
commitb8395e8e32cccb75565a170160772857087901de (patch)
tree2494425c02897874ba1a957a51224522c4a2e10a /ds9/library/rgbarray.tcl
parent41505b4129a005e96c6afc3344ccf61097884fbd (diff)
downloadblt-b8395e8e32cccb75565a170160772857087901de.zip
blt-b8395e8e32cccb75565a170160772857087901de.tar.gz
blt-b8395e8e32cccb75565a170160772857087901de.tar.bz2
update parsers
Diffstat (limited to 'ds9/library/rgbarray.tcl')
-rw-r--r--ds9/library/rgbarray.tcl50
1 files changed, 7 insertions, 43 deletions
diff --git a/ds9/library/rgbarray.tcl b/ds9/library/rgbarray.tcl
index aff77a0..74239df 100644
--- a/ds9/library/rgbarray.tcl
+++ b/ds9/library/rgbarray.tcl
@@ -127,50 +127,14 @@ proc ProcessRGBArrayCmd {varname iname sock fn} {
upvar $varname var
upvar $iname i
- global debug
- if {$debug(tcl,parser)} {
- global parse
- set parse(sock) $sock
- set parse(fn) $fn
-
- rgbarray::YY_FLUSH_BUFFER
- rgbarray::yy_scan_string [lrange $var $i end]
- rgbarray::yyparse
- incr i [expr $rgbarray::yycnt-1]
- } else {
-
- switch -- [string tolower [lindex $var $i]] {
- new {
- incr i
- CreateRGBFrame
- }
- mask {
- incr i
- # not supported
- }
- slice {
- incr i
- # not supported
- }
- }
- set param [lindex $var $i]
+ global parse
+ set parse(sock) $sock
+ set parse(fn) $fn
- if {$sock != {}} {
- # xpa
- if {![ImportRGBArraySocket $sock $param]} {
- InitError xpa
- ImportRGBArrayFile $param
- }
- } else {
- # comm
- if {$fn != {}} {
- ImportRGBArrayAlloc $fn $param
- } else {
- ImportRGBArrayFile $param
- }
- }
- FinishLoad
-}
+ rgbarray::YY_FLUSH_BUFFER
+ rgbarray::yy_scan_string [lrange $var $i end]
+ rgbarray::yyparse
+ incr i [expr $rgbarray::yycnt-1]
}
proc RGBArrayCmdLoad {param} {