blob: 3fbddc0375e7711733fdacd8b14c9f7baba87835 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright (C) 1999-2018
# Smithsonian Astrophysical Observatory, Cambridge, MA, USA
# For conditions of distribution and use, see copyright notice in "copyright"
package provide DS9 1.0
proc ProcessShmCmd {varname iname ml} {
upvar $varname var
upvar $iname i
global parse
set parse(ml) $ml
shm::YY_FLUSH_BUFFER
shm::yy_scan_string [lrange $var $i end]
shm::yyparse
incr i [expr $shm::yycnt-1]
}
proc ShmCmdSet {loadtype filetype filemode sharedidtype sharedid filename {sharedhdr {}}} {
global loadparam
set loadparam(load,type) $loadtype
set loadparam(file,type) $filetype
set loadparam(file,mode) $filemode
set loadparam(shared,idtype) $sharedidtype
set loadparam(shared,id) $sharedid
set loadparam(file,name) $filename
set loadparam(shared,hdr) $sharedhdr
# mask not supported
set loadParam(load,layer) {}
ProcessLoad
}
proc ProcessSendShmCmd {proc id param {sock {}} {fn {}}} {
global current
if {$current(frame) != {}} {
$proc $id "[$current(frame) get fits file name full]\n"
}
}
|