diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-03-30 16:10:34 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2018-03-30 16:10:34 (GMT) |
commit | 7a3a5963cc140393fe5ad2cb55c3c64fd1d9b58b (patch) | |
tree | eefbc377ad7d8411d146d07602eb447445753af1 /ds9/parsers/blockparser.tac | |
parent | 19a70a461ed5cce6488b31d153e750923704f250 (diff) | |
download | blt-7a3a5963cc140393fe5ad2cb55c3c64fd1d9b58b.zip blt-7a3a5963cc140393fe5ad2cb55c3c64fd1d9b58b.tar.gz blt-7a3a5963cc140393fe5ad2cb55c3c64fd1d9b58b.tar.bz2 |
update ds9 block parser
Diffstat (limited to 'ds9/parsers/blockparser.tac')
-rw-r--r-- | ds9/parsers/blockparser.tac | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ds9/parsers/blockparser.tac b/ds9/parsers/blockparser.tac index b3d5eef..e46dd74 100644 --- a/ds9/parsers/blockparser.tac +++ b/ds9/parsers/blockparser.tac @@ -28,7 +28,7 @@ command : block block : OPEN_ {BlockDialog} | CLOSE_ {BlockDestroyDialog} | MATCH_ {MatchBlockCurrent} - | LOCK_ yesno {global block; set block(lock) $2; LockBlockCurrent} + | LOCK_ yesno {BlockCmdSet lock $2 LockBlockCurrent} | IN_ {Block .5 .5} | OUT_ {Block 2 2} | TO_ blockTo @@ -36,8 +36,8 @@ block : OPEN_ {BlockDialog} | numeric numeric {Block $1 $2} ; -blockTo : numeric {global block; set block(factor) "$1 $1"; ChangeBlock} - | numeric numeric {global block; set block(factor) "$1 $2"; ChangeBlock} +blockTo : numeric {BlockCmdSet factor "$1 $1" ChangeBlock} + | numeric numeric {BlockCmdSet factor "$1 $2" ChangeBlock} | FIT_ {BlockToFit} ; |